From bde8afbe567b2edd4bdd18a768ac23558d3c5700 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 18:35:59 +0100 Subject: op-mode: T3178: add basic "show ipv6 ospfv3" commands - show ipv6 ospfv3 area - show ipv6 ospfv3 border-routers - show ipv6 ospfv3 interface - show ipv6 ospfv3 linkstate - show ipv6 ospfv3 neighbor - show ipv6 ospfv3 redistribute - show ipv6 ospfv3 route --- Makefile | 12 +- op-mode-definitions/show-ipv6-ospfv3.xml | 322 +++++++++++++++++++++++++++++++ 2 files changed, 328 insertions(+), 6 deletions(-) create mode 100644 op-mode-definitions/show-ipv6-ospfv3.xml diff --git a/Makefile b/Makefile index 9c99b37cc..588595e42 100644 --- a/Makefile +++ b/Makefile @@ -69,17 +69,17 @@ op_mode_definitions: # XXX: delete top level op mode node.def's that now live in other packages rm -f $(OP_TMPL_DIR)/add/node.def - rm -f $(OP_TMPL_DIR)/clear/node.def rm -f $(OP_TMPL_DIR)/clear/interfaces/node.def + rm -f $(OP_TMPL_DIR)/clear/node.def + rm -f $(OP_TMPL_DIR)/delete/node.def + rm -f $(OP_TMPL_DIR)/generate/node.def + rm -f $(OP_TMPL_DIR)/monitor/node.def + rm -f $(OP_TMPL_DIR)/reset/vpn/node.def rm -f $(OP_TMPL_DIR)/set/node.def - rm -f $(OP_TMPL_DIR)/show/node.def rm -f $(OP_TMPL_DIR)/show/interfaces/node.def - rm -f $(OP_TMPL_DIR)/monitor/node.def - rm -f $(OP_TMPL_DIR)/generate/node.def + rm -f $(OP_TMPL_DIR)/show/node.def rm -f $(OP_TMPL_DIR)/show/system/node.def rm -f $(OP_TMPL_DIR)/show/vpn/node.def - rm -f $(OP_TMPL_DIR)/delete/node.def - rm -f $(OP_TMPL_DIR)/reset/vpn/node.def # XXX: ping must be able to recursivly call itself as the # options are provided from the script itself diff --git a/op-mode-definitions/show-ipv6-ospfv3.xml b/op-mode-definitions/show-ipv6-ospfv3.xml new file mode 100644 index 000000000..2b48067ec --- /dev/null +++ b/op-mode-definitions/show-ipv6-ospfv3.xml @@ -0,0 +1,322 @@ + + + + + + + Show IPv6 routing information + + + + + Show IPv6 Open Shortest Path First (OSPF) + + vtysh -c "show ipv6 ospf6" + + + + Show Shortest Path First tree information + + vtysh -c "show ipv6 ospf6 spf tree" + + + + Area ID (as an IPv4 notation) + + protocols ospfv3 area + + + vtysh -c "show ipv6 ospf6 area $4 spf tree" + + + + Simulate view point (Router ID) + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 simulate spf-tree $7 $4 $5" + + + + + + Show OSPFv3 border-router (ABR and ASBR) information + + vtysh -c "show ipv6 ospf6 border-routers" + + + + Show OSPFv3 detailed border-router information + + vtysh -c "show ipv6 ospf6 border-routers detail" + + + + + + Border router ID + + <x.x.x.x> + + + vtysh -c "show ipv6 ospf6 border-routers $5" + + + + Show OSPFv3 interface information + + vtysh -c "show ipv6 ospf6 interface" + + + + Show connected prefixes to advertise + + vtysh -c "show ipv6 ospf6 interface prefix" + + + + More detailed interface prefix information + + vtysh -c "show ipv6 ospf6 interface prefix detail" + + + + + + Show interface prefix route specific information + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 ospf6 interface prefix $6" + + + + More detailed information + + vtysh -c "show ipv6 ospf6 interface prefix $6 detail" + + + + Matched interface prefix information + + vtysh -c "show ipv6 ospf6 interface prefix $6 match" + + + + + + + + Specific insterface to examine + + + + + vtysh -c "show ipv6 ospf6 interface $5" + + + + Show connected prefixes to advertise + + vtysh -c "show ipv6 ospf6 interface $5 prefix" + + + + More detailed interface prefix information + + vtysh -c "show ipv6 ospf6 interface $5 prefix detail" + + + + + + Show interface prefix route specific information + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 ospf6 interface $5 prefix $7" + + + + More detailed information + + vtysh -c "show ipv6 ospf6 interface $5 prefix $7 detail" + + + + Matched interface prefix information + + vtysh -c "show ipv6 ospf6 interface $5 prefix $7 match" + + + + + + + + Show OSPFv3 linkstate routing information + + + + + Show detailed linkstate information + + vtysh -c "show ipv6 ospf6 linkstate detail" + + + + Show linkstate Network information + + vtysh -c "show ipv6 ospf6 linkstate network" + + + + Show linkstate Router information + + vtysh -c "show ipv6 ospf6 linkstate router" + + + + + + Show OSPFv3 neighbor information + + vtysh -c "show ipv6 ospf6 neighbor" + + + + Show detailed neighbor information + + vtysh -c "show ipv6 ospf6 neighbor detail" + + + + Show neighbor DR choice information + + vtysh -c "show ipv6 ospf6 neighbor drchoice" + + + + + + Show OSPFv3 redistribute external information + + vtysh -c "show ipv6 ospf6 redistribute" + + + + Show OSPFv3 routing table information + + vtysh -c "show ipv6 ospf6 route" + + + + Show Type-1 External route information + + vtysh -c "show ipv6 ospf6 route external-1" + + + + Show detailed Type-1 External route information + + vtysh -c "show ipv6 ospf6 route external-1 detail" + + + + + + Show Type-2 External route information + + vtysh -c "show ipv6 ospf6 route external-2" + + + + Show detailed Type-2 External route information + + vtysh -c "show ipv6 ospf6 route external-2 detail" + + + + + + Show Inter-Area route information + + vtysh -c "show ipv6 ospf6 route inter-area" + + + + Show detailed Inter-Area route information + + vtysh -c "show ipv6 ospf6 route inter-area detail" + + + + + + Show Intra-Area route information + + vtysh -c "show ipv6 ospf6 route intra-area" + + + + Show detailed Intra-Area route information + + vtysh -c "show ipv6 ospf6 route intra-area detail" + + + + + + Show detailed route information + + vtysh -c "show ipv6 ospf6 route detail" + + + + Show route table summary + + vtysh -c "show ipv6 ospf6 route summary" + + + + + + Show specified route/prefix information + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + vtysh -c "show ipv6 ospf6 route $5" + + + + Show routes longer than specified prefix + + vtysh -c "show ipv6 ospf6 route $5 longer" + + + + Show routes matching specified prefix + + vtysh -c "show ipv6 ospf6 route $5 match" + + + + Detailed information + + vtysh -c "show ipv6 ospf6 route $5 match detail" + + + + + + + + + + + + -- cgit v1.2.3