From 52830ddfad973ff8acac48cc1ce57af655d9ed5a Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 21 Jul 2023 21:23:18 +0200 Subject: ospf: T5377: add op-mode commands to display GR status --- op-mode-definitions/include/ospf-common.xml.i | 559 --------------------- op-mode-definitions/include/ospf/common.xml.i | 559 +++++++++++++++++++++ .../include/ospf/graceful-restart.xml.i | 13 + op-mode-definitions/show-ip-ospf.xml.in | 4 +- op-mode-definitions/show-ipv6-ospfv3.xml.in | 2 + 5 files changed, 576 insertions(+), 561 deletions(-) delete mode 100644 op-mode-definitions/include/ospf-common.xml.i create mode 100644 op-mode-definitions/include/ospf/common.xml.i create mode 100644 op-mode-definitions/include/ospf/graceful-restart.xml.i (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/include/ospf-common.xml.i b/op-mode-definitions/include/ospf-common.xml.i deleted file mode 100644 index 979ffb07e..000000000 --- a/op-mode-definitions/include/ospf-common.xml.i +++ /dev/null @@ -1,559 +0,0 @@ - - - - Show IPv4 OSPF border-routers information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF database information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF ASBR summary database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF ASBR summary database for given address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF ASBR summary database for given address of advertised router - - - - - - - Show IPv4 OSPF ASBR summary database information of given address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF ASBR summary database of given address for given advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show summary of self-originate IPv4 OSPF ASBR database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF external database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF external database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF external database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF external database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF external database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF external database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF max-age database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF network database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF network database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF network database for given address of advertised router - - - - - - - Show IPv4 OSPF network database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF network database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF network database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF NSSA external database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF NSSA external database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF NSSA external database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF NSSA external database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF NSSA external database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF NSSA external database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF opaque-area database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF opaque-area database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF opaque-area database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF opaque-area database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF opaque-area database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF opaque-area database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF opaque-as database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF opaque-as database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF opaque-as database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF opaque-as database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF opaque-as database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF opaque-as database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF opaque-link database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF opaque-link database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF opaque-link database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF opaque-link database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF opaque-link database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF opaque-link database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF router database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF router database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF router database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF router database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF router database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF router database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF self-originate database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show summary of IPv4 OSPF database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF summary database for specified IP address of advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF summary database for specified IP address of advertised router - - - - - - - Show IPv4 OSPF summary database information of specified IP address - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show advertising router link states - - - - - Show IPv4 OSPF summary database of specified IP address for specified advertised router - - <x.x.x.x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show self-originate IPv4 OSPF summary database - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - - - Show IPv4 OSPF interface information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - -#include - - - Show MPLS information - - - #include - - - - - Show IPv4 OSPF neighbor information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show detailed IPv4 OSPF neighbor information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - - Show IPv4 OSPF neighbor information for specified IP address or interface - - <x.x.x.x> - - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show IPv4 OSPF route information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show detailed IPv4 OSPF route information - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - - diff --git a/op-mode-definitions/include/ospf/common.xml.i b/op-mode-definitions/include/ospf/common.xml.i new file mode 100644 index 000000000..c8341bd3e --- /dev/null +++ b/op-mode-definitions/include/ospf/common.xml.i @@ -0,0 +1,559 @@ + + + + Show IPv4 OSPF border-routers information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF database information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF ASBR summary database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF ASBR summary database for given address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF ASBR summary database for given address of advertised router + + + + + + + Show IPv4 OSPF ASBR summary database information of given address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF ASBR summary database of given address for given advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show summary of self-originate IPv4 OSPF ASBR database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF external database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF external database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF external database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF external database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF external database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF external database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF max-age database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF network database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF network database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF network database for given address of advertised router + + + + + + + Show IPv4 OSPF network database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF network database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF network database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF NSSA external database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF NSSA external database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF NSSA external database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF NSSA external database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF NSSA external database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF NSSA external database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF opaque-area database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF opaque-area database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF opaque-area database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF opaque-area database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF opaque-area database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF opaque-area database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF opaque-as database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF opaque-as database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF opaque-as database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF opaque-as database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF opaque-as database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF opaque-as database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF opaque-link database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF opaque-link database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF opaque-link database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF opaque-link database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF opaque-link database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF opaque-link database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF router database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF router database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF router database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF router database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF router database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF router database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF self-originate database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show summary of IPv4 OSPF database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF summary database for specified IP address of advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF summary database for specified IP address of advertised router + + + + + + + Show IPv4 OSPF summary database information of specified IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show advertising router link states + + + + + Show IPv4 OSPF summary database of specified IP address for specified advertised router + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show self-originate IPv4 OSPF summary database + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + +#include + + + Show IPv4 OSPF interface information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + +#include + + + Show MPLS information + + + #include + + + + + Show IPv4 OSPF neighbor information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show detailed IPv4 OSPF neighbor information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Show IPv4 OSPF neighbor information for specified IP address or interface + + <x.x.x.x> + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show IPv4 OSPF route information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show detailed IPv4 OSPF route information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + diff --git a/op-mode-definitions/include/ospf/graceful-restart.xml.i b/op-mode-definitions/include/ospf/graceful-restart.xml.i new file mode 100644 index 000000000..736d8f951 --- /dev/null +++ b/op-mode-definitions/include/ospf/graceful-restart.xml.i @@ -0,0 +1,13 @@ + + + Show IPv4 OSPF Graceful Restart + + + + + OSPF Graceful Restart helper details + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + diff --git a/op-mode-definitions/show-ip-ospf.xml.in b/op-mode-definitions/show-ip-ospf.xml.in index 704ed984f..f3b9da90c 100644 --- a/op-mode-definitions/show-ip-ospf.xml.in +++ b/op-mode-definitions/show-ip-ospf.xml.in @@ -13,7 +13,7 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - #include + #include Show OSPF routing protocol for given VRF @@ -24,7 +24,7 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - #include + #include diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml.in b/op-mode-definitions/show-ipv6-ospfv3.xml.in index a63465472..e1fcf470f 100644 --- a/op-mode-definitions/show-ipv6-ospfv3.xml.in +++ b/op-mode-definitions/show-ipv6-ospfv3.xml.in @@ -41,6 +41,7 @@ #include #include + #include #include #include #include @@ -94,6 +95,7 @@ #include #include + #include #include #include #include -- cgit v1.2.3