vtysh 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vtysh/diff.rb +6 -1
- data/lib/vtysh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ed942b5f955b7ded1197ac751c727cdbb147e398a686404f8a5a8fdbdeddf4c
|
|
4
|
+
data.tar.gz: 8482829a628cc5a749b239a7f85e7772457e948e30176a07307c82fea1478f8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44fd6c72180ea3fa3ad2c0f3f1cd0e3b3e459a7215b67e12c443d8f31a53f1e2b5cea95d2da33a60e9a95c42bb432ad79dc3918f37b8bf7e26c70e84f9ad16bb
|
|
7
|
+
data.tar.gz: ef5462c970d6cc8de9f33236c1392c2037b8032cb8efa607ec29628f27e7403c109423c7c16ccf3bf74db55c505de53e7d89cc022a71fee05880dec38d2a5d62
|
data/lib/vtysh/diff.rb
CHANGED
|
@@ -199,7 +199,12 @@ module Vtysh
|
|
|
199
199
|
config.each_line do |line|
|
|
200
200
|
line = line.strip
|
|
201
201
|
next if line.empty? || line.start_with?('#', '!')
|
|
202
|
-
next if line.start_with?('ip route ')
|
|
202
|
+
next if line.start_with?('ip route ') # managed by config_db STATIC_ROUTE
|
|
203
|
+
next if line.start_with?('hostname ') # managed by system hostname
|
|
204
|
+
next if line == 'ip nht resolve-via-default' # bgpcfgd managed
|
|
205
|
+
next if line == 'ipv6 nht resolve-via-default' # bgpcfgd managed
|
|
206
|
+
next if line == 'ip protocol bgp route-map RM_SET_SRC' # bgpcfgd managed
|
|
207
|
+
next if line =~ /^(no )?set src / # bgpcfgd managed (inside RM_SET_SRC)
|
|
203
208
|
next if line =~ /^frr (version|defaults)/ || line == 'no service integrated-vtysh-config' || line.start_with?('agentx')
|
|
204
209
|
|
|
205
210
|
if line =~ /^exit(-address-family|-vrf)?$/
|
data/lib/vtysh/version.rb
CHANGED