From b4ecc04de84d8742b23e7f6d7aef355558fe58a7 Mon Sep 17 00:00:00 2001 From: sever-sever Date: Tue, 26 May 2020 12:11:59 +0000 Subject: [op-mode]: T2512: New XML format for show ip --- ...show-ip-access-paths-prefix-community-lists.xml | 116 +++++ op-mode-definitions/show-ip-ospf.xml | 579 +++++++++++++++++++++ op-mode-definitions/show-ip-rip.xml | 28 + op-mode-definitions/show-ip-route.xml | 130 +++++ 4 files changed, 853 insertions(+) create mode 100644 op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml create mode 100644 op-mode-definitions/show-ip-ospf.xml create mode 100644 op-mode-definitions/show-ip-rip.xml create mode 100644 op-mode-definitions/show-ip-route.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml b/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml new file mode 100644 index 000000000..a5ec65c94 --- /dev/null +++ b/op-mode-definitions/show-ip-access-paths-prefix-community-lists.xml @@ -0,0 +1,116 @@ + + + + + + + Show IPv4 routing information + + + + + Show all IP access-lists + + /usr/bin/vtysh -c "show ip access-list" + + + + Show all IP access-lists + + policy access-list + + + /usr/bin/vtysh -c "show ip access-list $4" + + + + Show all as-path-access-lists + + /usr/bin/vtysh -c "show ip as-path-access-list" + + + + Show all as-path-access-lists + + policy as-path-list + + + /usr/bin/vtysh -c "show ip as-path-access-list $4" + + + + Show IP community-lists + + /usr/bin/vtysh -c "show bgp community-list" + + + + Show IP community-lists + + policy community-list + + + /usr/bin/vtysh -c "show bgp community-list $4 detail" + + + + Show extended IP community-lists + + /usr/bin/vtysh -c "show bgp extcommunity-list" + + + + Show extended IP community-lists + + policy extcommunity-list + + + /usr/bin/vtysh -c "show bgp extcommunity-list $4 detail" + + + + Show IP forwarding status + + /usr/bin/vtysh -c "show ip forwarding" + + + + Show IP large-community-lists + + /usr/bin/vtysh -c "show bgp large-community-list" + + + + Show IP large-community-lists + + policy large-community-list + + + /usr/bin/vtysh -c "show bgp large-community-list $4 detail" + + + + Show all IP prefix-lists + + /usr/bin/vtysh -c "show ip prefix-list" + + + + Show all IP prefix-lists + + policy prefix-list + + + /usr/bin/vtysh -c "show ip prefix-list $4" + + + + Show IP route-maps per protocol + + /usr/bin/vtysh -c "show ip protocol" + + + + + + diff --git a/op-mode-definitions/show-ip-ospf.xml b/op-mode-definitions/show-ip-ospf.xml new file mode 100644 index 000000000..99441d185 --- /dev/null +++ b/op-mode-definitions/show-ip-ospf.xml @@ -0,0 +1,579 @@ + + + + + + + Show IPv4 routing information + + + + + Show IPv4 Open Shortest Path First (OSPF) routing information + + /usr/bin/vtysh -c "show ip ospf" + + + + Show IPv4 OSPF border-routers information + + /usr/bin/vtysh -c "show ip ospf border-routers" + + + + Show IPv4 OSPF database information + + /usr/bin/vtysh -c "show ip ospf database" + + + + Show IPv4 OSPF ASBR summary database + + /usr/bin/vtysh -c "show ip ospf database asbr-summary" + + + + Show IPv4 OSPF ASBR summary database for given address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database asbr-summary adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database asbr-summary" + + + + Show advertising router link states + + + + + Show IPv4 OSPF ASBR summary database of given address for given advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database asbr-summary $6 adv-router $8" + + + + Show summary of self-originate IPv4 OSPF ASBR database + + show ip ospf database asbr-summary $6 self-originate + + + + + + Show IPv4 OSPF external database + + /usr/bin/vtysh -c "show ip ospf database external" + + + + Show IPv4 OSPF external database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database external adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database external" + + + + Show advertising router link states + + + + + Show IPv4 OSPF external database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database external $6 adv-router $8" + + + + Show self-originate IPv4 OSPF external database + + show ip ospf database external $6 self-originate + + + + + + Show IPv4 OSPF max-age database + + /usr/bin/vtysh -c "show ip ospf database max-age" + + + + Show IPv4 OSPF network database + + /usr/bin/vtysh -c "show ip ospf database network" + + + + Show IPv4 OSPF network database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database network adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database network" + + + + Show advertising router link states + + + + + Show IPv4 OSPF network database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database network $6 adv-router $8" + + + + Show self-originate IPv4 OSPF network database + + show ip ospf database network $6 self-originate + + + + + + Show IPv4 OSPF NSSA external database + + /usr/bin/vtysh -c "show ip ospf database nssa-external" + + + + Show IPv4 OSPF NSSA external database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database nssa-external adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database nssa-external" + + + + Show advertising router link states + + + + + Show IPv4 OSPF NSSA external database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database nssa-external $6 adv-router $8" + + + + Show self-originate IPv4 OSPF NSSA external database + + show ip ospf database nssa-external $6 self-originate + + + + + + Show IPv4 OSPF opaque-area database + + /usr/bin/vtysh -c "show ip ospf database opaque-area" + + + + Show IPv4 OSPF opaque-area database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database opaque-area adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database opaque-area" + + + + Show advertising router link states + + + + + Show IPv4 OSPF opaque-area database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database opaque-area $6 adv-router $8" + + + + Show self-originate IPv4 OSPF opaque-area database + + show ip ospf database opaque-area $6 self-originate + + + + + + Show IPv4 OSPF opaque-as database + + /usr/bin/vtysh -c "show ip ospf database opaque-as" + + + + Show IPv4 OSPF opaque-as database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database opaque-as adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database opaque-as" + + + + Show advertising router link states + + + + + Show IPv4 OSPF opaque-as database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database opaque-as $6 adv-router $8" + + + + Show self-originate IPv4 OSPF opaque-as database + + show ip ospf database opaque-as $6 self-originate + + + + + + Show IPv4 OSPF opaque-link database + + /usr/bin/vtysh -c "show ip ospf database opaque-link" + + + + Show IPv4 OSPF opaque-link database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database opaque-link adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database opaque-link" + + + + Show advertising router link states + + + + + Show IPv4 OSPF opaque-link database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database opaque-link $6 adv-router $8" + + + + Show self-originate IPv4 OSPF opaque-link database + + show ip ospf database opaque-link $6 self-originate + + + + + + Show IPv4 OSPF router database + + /usr/bin/vtysh -c "show ip ospf database router" + + + + Show IPv4 OSPF router database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database router adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database router" + + + + Show advertising router link states + + + + + Show IPv4 OSPF router database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database router $6 adv-router $8" + + + + Show self-originate IPv4 OSPF router database + + show ip ospf database router $6 self-originate + + + + + + Show IPv4 OSPF self-originate database + + /usr/bin/vtysh -c "show ip ospf database self-originate" + + + + Show summary of IPv4 OSPF database + + /usr/bin/vtysh -c "show ip ospf database summary" + + + + Show IPv4 OSPF summary database for specified IP address of advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database summary adv-router $7" + + + + 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> + + + /usr/bin/vtysh -c "show ip ospf database summary" + + + + Show advertising router link states + + + + + Show IPv4 OSPF summary database of specified IP address for specified advertised router + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf database summary $6 adv-router $8" + + + + Show self-originate IPv4 OSPF summary database + + show ip ospf database summary $6 self-originate + + + + + + + + Show IPv4 OSPF interface information + + /usr/bin/vtysh -c "show ip ospf interface" + + + + Show IPv4 OSPF information for specified interface + + + + + /usr/bin/vtysh -c "show ip ospf interface $5" + + + + Show IPv4 OSPF neighbor information + + /usr/bin/vtysh -c "show ip ospf neighbor" + + + + Show IPv4 OSPF neighbor information for specified IP address + + <x.x.x.x> + + + /usr/bin/vtysh -c "show ip ospf neighbor $6" + + + + Show detailed IPv4 OSPF neighbor information + + /usr/bin/vtysh -c "show ip ospf neighbor detail" + + + + + + Show IPv4 OSPF neighbor information for specified IP address or interface + + <x.x.x.x> + + + + /usr/bin/vtysh -c "show ip ospf neighbor $5" + + + + Show IPv4 OSPF route information + + /usr/bin/vtysh -c "show ip ospf route" + + + + + + + + diff --git a/op-mode-definitions/show-ip-rip.xml b/op-mode-definitions/show-ip-rip.xml new file mode 100644 index 000000000..b61ab10a7 --- /dev/null +++ b/op-mode-definitions/show-ip-rip.xml @@ -0,0 +1,28 @@ + + + + + + + Show IPv4 routing information + + + + + Show Routing Information Protocol (RIP) information + + /usr/bin/vtysh -c "show ip rip" + + + + Show RIP protocol status + + /usr/bin/vtysh -c "show ip rip status" + + + + + + + + diff --git a/op-mode-definitions/show-ip-route.xml b/op-mode-definitions/show-ip-route.xml new file mode 100644 index 000000000..2379b3aae --- /dev/null +++ b/op-mode-definitions/show-ip-route.xml @@ -0,0 +1,130 @@ + + + + + + + Show IPv4 routing information + + + + + Show IP routes + + /usr/bin/vtysh -c "show ip route" + + + + Show IP BGP routes + + /usr/bin/vtysh -c "show ip route bgp" + + + + Show IP connected routes + + /usr/bin/vtysh -c "show ip route connected" + + + + Show IP kernel routes + + /usr/bin/vtysh -c "show ip route kernel" + + + + Show IP OSPF routes + + /usr/bin/vtysh -c "show ip route ospf" + + + + Show IP RIP routes + + /usr/bin/vtysh -c "show ip route rip" + + + + Show IP static routes + + /usr/bin/vtysh -c "show ip route static" + + + + Show IP routes summary + + /usr/bin/vtysh -c "show ip route summary" + + + + Show IP supernet routes + + /usr/bin/vtysh -c "show ip route supernets-only" + + + + Show IP routes in policy table + + + + + Show IP routes in policy table + + <1-200> + + + /usr/bin/vtysh -c "show ip route table $5" + + + + Show only routes with tag + + + + + Tag value + + <1-4294967295> + + + /usr/bin/vtysh -c "show ip route tag $5" + + + + Show IP routes in VRF + + + + + Show IP routes in VRF + + <vrf> + vrf name + + + /usr/bin/vtysh -c "show ip route vrf $5" + + + + + + Show IP routes of specified IP address or prefix + + <x.x.x.x> <x.x.x.x/x> + + + /usr/bin/vtysh -c "show ip route $4" + + + + Show longer prefixes of routes for specified IP address or prefix + + /usr/bin/vtysh -c "show ip route $4" + + + + + + + + -- cgit v1.2.3