From 1e3de0926517fe7b7b1bd14aa1bd9d74fc021505 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 10 Jan 2021 10:25:41 +0100 Subject: op-mode: T3178: migrate most of the OSPFv3 parts to re-includable snippets This eases CLI maintenance and also migration from legacy code. --- .../include/ospfv3-adv-router-id-node-tag.xml.i | 16 ++++++++++++++++ op-mode-definitions/include/ospfv3-adv-router.xml.i | 13 +++++++++++++ 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 +++++++++ op-mode-definitions/include/ospfv3-linkstate-id.xml.i | 15 +++++++++++++++ op-mode-definitions/include/ospfv3-self-originated.xml.i | 13 +++++++++++++ 7 files changed, 84 insertions(+) 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.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 new file mode 100644 index 000000000..b6a64c52a --- /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> + + + vtysh -c "show ipv6 ospf6 database * $6 $7" + + #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..6330c0a72 --- /dev/null +++ b/op-mode-definitions/include/ospfv3-adv-router.xml.i @@ -0,0 +1,13 @@ + + + + Search by Advertising Router ID + + <x.x.x.x> + + + + #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..76096fbc8 --- /dev/null +++ b/op-mode-definitions/include/ospfv3-detail.xml.i @@ -0,0 +1,9 @@ + + + + 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 new file mode 100644 index 000000000..4271aec53 --- /dev/null +++ b/op-mode-definitions/include/ospfv3-dump.xml.i @@ -0,0 +1,9 @@ + + + + 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 new file mode 100644 index 000000000..8b45e86c1 --- /dev/null +++ b/op-mode-definitions/include/ospfv3-internal.xml.i @@ -0,0 +1,9 @@ + + + + Show internal LSA information + + + vtysh -c "show ipv6 ospf6 ${@:4}" + + 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..eab5916f1 --- /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..76054757b --- /dev/null +++ b/op-mode-definitions/include/ospfv3-self-originated.xml.i @@ -0,0 +1,13 @@ + + + + Show Self-originated LSAs + + vtysh -c "show ipv6 ospf6 database as-external $6 self-originated" + + #include + #include + #include + + + -- cgit v1.2.3