summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 21:07:22 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 21:07:22 +0200
commit8b6f34f8a134875c5eeeaa14688104a697973eea (patch)
treea69fb2443f8dee0a7916d98cde25d46c484ad656
parent8e1678974f6341c991ea0582aa15a8b470de79ef (diff)
downloadvyos-1x-8b6f34f8a134875c5eeeaa14688104a697973eea.tar.gz
vyos-1x-8b6f34f8a134875c5eeeaa14688104a697973eea.zip
isis: T3417: add CLI node to enable "log-adjacency-changes"
-rw-r--r--data/templates/frr/isis.frr.tmpl3
-rw-r--r--interface-definitions/include/isis/protocol-common-config.xml.i6
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_isis.py2
3 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/frr/isis.frr.tmpl b/data/templates/frr/isis.frr.tmpl
index f000830b0..bd7be85f4 100644
--- a/data/templates/frr/isis.frr.tmpl
+++ b/data/templates/frr/isis.frr.tmpl
@@ -20,6 +20,9 @@ router isis VyOS {{ 'vrf ' + vrf if vrf is defined and vrf is not none }}
domain-password clear {{ domain_password.plaintext_password }}
{% endif %}
{% endif %}
+{% if log_adjacency_changes is defined %}
+ log-adjacency-changes
+{% endif %}
{% if lsp_gen_interval is defined and lsp_gen_interval is not none %}
lsp-gen-interval {{ lsp_gen_interval }}
{% endif %}
diff --git a/interface-definitions/include/isis/protocol-common-config.xml.i b/interface-definitions/include/isis/protocol-common-config.xml.i
index 3ed0b0607..6a8f3eb24 100644
--- a/interface-definitions/include/isis/protocol-common-config.xml.i
+++ b/interface-definitions/include/isis/protocol-common-config.xml.i
@@ -108,6 +108,12 @@
</constraint>
</properties>
</leafNode>
+<leafNode name="log-adjacency-changes">
+ <properties>
+ <help>Log adjacency state changes</help>
+ <valueless/>
+ </properties>
+</leafNode>
<leafNode name="lsp-gen-interval">
<properties>
<help>Minimum interval between regenerating same LSP</help>
diff --git a/smoketest/scripts/cli/test_protocols_isis.py b/smoketest/scripts/cli/test_protocols_isis.py
index f6c13991b..69db58465 100755
--- a/smoketest/scripts/cli/test_protocols_isis.py
+++ b/smoketest/scripts/cli/test_protocols_isis.py
@@ -66,6 +66,7 @@ class TestProtocolsISIS(VyOSUnitTestSHIM.TestCase):
self.isis_base_config()
self.cli_set(base_path + ['redistribute', 'ipv4', 'connected', 'level-2', 'route-map', route_map])
+ self.cli_set(base_path + ['log-adjacency-changes'])
# Commit all changes
self.cli_commit()
@@ -73,6 +74,7 @@ class TestProtocolsISIS(VyOSUnitTestSHIM.TestCase):
# Verify all changes
tmp = self.getFRRconfig(f'router isis {domain}')
self.assertIn(f' net {net}', tmp)
+ self.assertIn(f' log-adjacency-changes', tmp)
self.assertIn(f' redistribute ipv4 connected level-2 route-map {route_map}', tmp)
for interface in self._interfaces: