From c9c37a56cdee45dfa7d4b2e677e88a19afde8ac7 Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Tue, 27 Aug 2024 13:50:16 +0300 Subject: openfabric: T6652: Add support for OpenFabric protocol OpenFabric is a routing protocol providing link-state routing with efficient flooding for topologies like spine-leaf networks. FRR implements OpenFabric in a daemon called fabricd --- .../include/show-route-openfabric.xml.i | 8 ++++ op-mode-definitions/monitor-log.xml.in | 6 +++ op-mode-definitions/restart-frr.xml.in | 6 +++ op-mode-definitions/show-ip-route.xml.in | 1 + op-mode-definitions/show-ipv6-route.xml.in | 1 + op-mode-definitions/show-log.xml.in | 6 +++ op-mode-definitions/show-openfabric.xml.in | 51 ++++++++++++++++++++++ 7 files changed, 79 insertions(+) create mode 100644 op-mode-definitions/include/show-route-openfabric.xml.i create mode 100644 op-mode-definitions/show-openfabric.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/include/show-route-openfabric.xml.i b/op-mode-definitions/include/show-route-openfabric.xml.i new file mode 100644 index 000000000..ae1ef380e --- /dev/null +++ b/op-mode-definitions/include/show-route-openfabric.xml.i @@ -0,0 +1,8 @@ + + + + OpenFabric routes + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index a2d5d924a..6a2b7e53b 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -237,6 +237,12 @@ journalctl --follow --no-hostname --boot /usr/lib/frr/isisd + + + Monitor log for OpenFabric + + journalctl --follow --no-hostname --boot /usr/lib/frr/fabricd + Monitor log for NHRP diff --git a/op-mode-definitions/restart-frr.xml.in b/op-mode-definitions/restart-frr.xml.in index 2c9d4b1cc..4772e8dd2 100644 --- a/op-mode-definitions/restart-frr.xml.in +++ b/op-mode-definitions/restart-frr.xml.in @@ -56,6 +56,12 @@ sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon isisd + + + Restart OpenFabric routing daemon + + sudo ${vyos_op_scripts_dir}/restart_frr.py --action restart --daemon fabricd + Restart IPv6 Protocol Independent Multicast (PIM) daemon diff --git a/op-mode-definitions/show-ip-route.xml.in b/op-mode-definitions/show-ip-route.xml.in index c878bf712..37279d3d2 100644 --- a/op-mode-definitions/show-ip-route.xml.in +++ b/op-mode-definitions/show-ip-route.xml.in @@ -46,6 +46,7 @@ ip -s route list $5 #include + #include #include #include #include diff --git a/op-mode-definitions/show-ipv6-route.xml.in b/op-mode-definitions/show-ipv6-route.xml.in index d73fb46b4..f68a94971 100644 --- a/op-mode-definitions/show-ipv6-route.xml.in +++ b/op-mode-definitions/show-ipv6-route.xml.in @@ -46,6 +46,7 @@ ip -s -f inet6 route list $5 #include + #include #include #include #include diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index 7ae3b890b..f0fad63d2 100644 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -642,6 +642,12 @@ journalctl --boot /usr/lib/frr/isisd + + + Show log for OpenFabric + + journalctl --boot /usr/lib/frr/fabricd + Show log for NHRP diff --git a/op-mode-definitions/show-openfabric.xml.in b/op-mode-definitions/show-openfabric.xml.in new file mode 100644 index 000000000..2f489866e --- /dev/null +++ b/op-mode-definitions/show-openfabric.xml.in @@ -0,0 +1,51 @@ + + + + + + + Show OpenFabric routing protocol + + + + + Show OpenFabric link state database + + + #include + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show OpenFabric interfaces + + + + + + #include + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + Show OpenFabric neighbor adjacencies + + + #include + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show OpenFabric information summary + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + -- cgit v1.2.3