From cf998c040c371be20be8035895989fcee3c06429 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 27 Apr 2021 22:12:11 +0200 Subject: op-mode: ospfv3: T3335: re-use common vtysh_wrapper.sh wrapper Instead of renaming the OSPFv3 commands for every individual XML invocation, also re-use the common helper shell script. One source, one truth! --- .../include/ospfv3-adv-router-id-node-tag.xml.i | 17 ----------------- op-mode-definitions/include/ospfv3-adv-router.xml.i | 16 ---------------- op-mode-definitions/include/ospfv3-detail.xml.i | 9 --------- op-mode-definitions/include/ospfv3-dump.xml.i | 9 --------- op-mode-definitions/include/ospfv3-internal.xml.i | 9 --------- .../include/ospfv3-linkstate-id-node-tag.xml.i | 18 ------------------ op-mode-definitions/include/ospfv3-linkstate-id.xml.i | 15 --------------- .../include/ospfv3-self-originated.xml.i | 14 -------------- .../include/ospfv3/adv-router-id-node-tag.xml.i | 16 ++++++++++++++++ op-mode-definitions/include/ospfv3/adv-router.xml.i | 16 ++++++++++++++++ op-mode-definitions/include/ospfv3/detail.xml.i | 8 ++++++++ op-mode-definitions/include/ospfv3/dump.xml.i | 8 ++++++++ op-mode-definitions/include/ospfv3/internal.xml.i | 8 ++++++++ .../include/ospfv3/linkstate-id-node-tag.xml.i | 17 +++++++++++++++++ op-mode-definitions/include/ospfv3/linkstate-id.xml.i | 15 +++++++++++++++ .../include/ospfv3/self-originated.xml.i | 13 +++++++++++++ 16 files changed, 101 insertions(+), 107 deletions(-) delete mode 100644 op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-adv-router.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-detail.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-dump.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-internal.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-linkstate-id.xml.i delete mode 100644 op-mode-definitions/include/ospfv3-self-originated.xml.i create mode 100644 op-mode-definitions/include/ospfv3/adv-router-id-node-tag.xml.i create mode 100644 op-mode-definitions/include/ospfv3/adv-router.xml.i create mode 100644 op-mode-definitions/include/ospfv3/detail.xml.i create mode 100644 op-mode-definitions/include/ospfv3/dump.xml.i create mode 100644 op-mode-definitions/include/ospfv3/internal.xml.i create mode 100644 op-mode-definitions/include/ospfv3/linkstate-id-node-tag.xml.i create mode 100644 op-mode-definitions/include/ospfv3/linkstate-id.xml.i create mode 100644 op-mode-definitions/include/ospfv3/self-originated.xml.i (limited to 'op-mode-definitions/include') diff --git a/op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i b/op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i deleted file mode 100644 index 312ce2a4f..000000000 --- a/op-mode-definitions/include/ospfv3-adv-router-id-node-tag.xml.i +++ /dev/null @@ -1,17 +0,0 @@ - - - - Search by Advertising Router ID - - <x.x.x.x> - - - - vtysh -c "show ipv6 ospf6 ${@:4}" - - #include - #include - #include - - - diff --git a/op-mode-definitions/include/ospfv3-adv-router.xml.i b/op-mode-definitions/include/ospfv3-adv-router.xml.i deleted file mode 100644 index d17538d4d..000000000 --- a/op-mode-definitions/include/ospfv3-adv-router.xml.i +++ /dev/null @@ -1,16 +0,0 @@ - - - - Search by Advertising Router ID - - <x.x.x.x> - - - - #include - #include - #include - #include - - - diff --git a/op-mode-definitions/include/ospfv3-detail.xml.i b/op-mode-definitions/include/ospfv3-detail.xml.i deleted file mode 100644 index 76096fbc8..000000000 --- a/op-mode-definitions/include/ospfv3-detail.xml.i +++ /dev/null @@ -1,9 +0,0 @@ - - - - Show detailed information - - - vtysh -c "show ipv6 ospf6 ${@:4}" - - diff --git a/op-mode-definitions/include/ospfv3-dump.xml.i b/op-mode-definitions/include/ospfv3-dump.xml.i deleted file mode 100644 index 4271aec53..000000000 --- a/op-mode-definitions/include/ospfv3-dump.xml.i +++ /dev/null @@ -1,9 +0,0 @@ - - - - Show dump of LSAs - - - vtysh -c "show ipv6 ospf6 ${@:4}" - - diff --git a/op-mode-definitions/include/ospfv3-internal.xml.i b/op-mode-definitions/include/ospfv3-internal.xml.i deleted file mode 100644 index 8b45e86c1..000000000 --- a/op-mode-definitions/include/ospfv3-internal.xml.i +++ /dev/null @@ -1,9 +0,0 @@ - - - - Show internal LSA information - - - vtysh -c "show ipv6 ospf6 ${@:4}" - - diff --git a/op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i b/op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i deleted file mode 100644 index 24b549d28..000000000 --- a/op-mode-definitions/include/ospfv3-linkstate-id-node-tag.xml.i +++ /dev/null @@ -1,18 +0,0 @@ - - - - Search by Link state ID - - <x.x.x.x> - - - - vtysh -c "show ipv6 ospf6 ${@:4}" - - #include - #include - #include - #include - - - diff --git a/op-mode-definitions/include/ospfv3-linkstate-id.xml.i b/op-mode-definitions/include/ospfv3-linkstate-id.xml.i deleted file mode 100644 index eab5916f1..000000000 --- a/op-mode-definitions/include/ospfv3-linkstate-id.xml.i +++ /dev/null @@ -1,15 +0,0 @@ - - - - Search by Link state ID - - <x.x.x.x> - - - - #include - #include - #include - - - diff --git a/op-mode-definitions/include/ospfv3-self-originated.xml.i b/op-mode-definitions/include/ospfv3-self-originated.xml.i deleted file mode 100644 index 180bca6f6..000000000 --- a/op-mode-definitions/include/ospfv3-self-originated.xml.i +++ /dev/null @@ -1,14 +0,0 @@ - - - - Show Self-originated LSAs - - - vtysh -c "show ipv6 ospf6 ${@:4}" - - #include - #include - #include - - - diff --git a/op-mode-definitions/include/ospfv3/adv-router-id-node-tag.xml.i b/op-mode-definitions/include/ospfv3/adv-router-id-node-tag.xml.i new file mode 100644 index 000000000..a1bd67a90 --- /dev/null +++ b/op-mode-definitions/include/ospfv3/adv-router-id-node-tag.xml.i @@ -0,0 +1,16 @@ + + + + Search by Advertising Router ID + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + #include + #include + + + diff --git a/op-mode-definitions/include/ospfv3/adv-router.xml.i b/op-mode-definitions/include/ospfv3/adv-router.xml.i new file mode 100644 index 000000000..a14fc39db --- /dev/null +++ b/op-mode-definitions/include/ospfv3/adv-router.xml.i @@ -0,0 +1,16 @@ + + + + Search by Advertising Router ID + + <x.x.x.x> + + + + #include + #include + #include + #include + + + diff --git a/op-mode-definitions/include/ospfv3/detail.xml.i b/op-mode-definitions/include/ospfv3/detail.xml.i new file mode 100644 index 000000000..4e3c91268 --- /dev/null +++ b/op-mode-definitions/include/ospfv3/detail.xml.i @@ -0,0 +1,8 @@ + + + + Show detailed information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/ospfv3/dump.xml.i b/op-mode-definitions/include/ospfv3/dump.xml.i new file mode 100644 index 000000000..55e10a5ee --- /dev/null +++ b/op-mode-definitions/include/ospfv3/dump.xml.i @@ -0,0 +1,8 @@ + + + + Show dump of LSAs + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/ospfv3/internal.xml.i b/op-mode-definitions/include/ospfv3/internal.xml.i new file mode 100644 index 000000000..ac7c61e6f --- /dev/null +++ b/op-mode-definitions/include/ospfv3/internal.xml.i @@ -0,0 +1,8 @@ + + + + Show internal LSA information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/ospfv3/linkstate-id-node-tag.xml.i b/op-mode-definitions/include/ospfv3/linkstate-id-node-tag.xml.i new file mode 100644 index 000000000..ee3863b35 --- /dev/null +++ b/op-mode-definitions/include/ospfv3/linkstate-id-node-tag.xml.i @@ -0,0 +1,17 @@ + + + + Search by Link state ID + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + #include + #include + #include + + + diff --git a/op-mode-definitions/include/ospfv3/linkstate-id.xml.i b/op-mode-definitions/include/ospfv3/linkstate-id.xml.i new file mode 100644 index 000000000..9ead17c20 --- /dev/null +++ b/op-mode-definitions/include/ospfv3/linkstate-id.xml.i @@ -0,0 +1,15 @@ + + + + Search by Link state ID + + <x.x.x.x> + + + + #include + #include + #include + + + diff --git a/op-mode-definitions/include/ospfv3/self-originated.xml.i b/op-mode-definitions/include/ospfv3/self-originated.xml.i new file mode 100644 index 000000000..734f3f8ad --- /dev/null +++ b/op-mode-definitions/include/ospfv3/self-originated.xml.i @@ -0,0 +1,13 @@ + + + + Show Self-originated LSAs + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + #include + #include + + + -- cgit v1.2.3