From 6efdab7cccdd697b4479c9af9f000369c3729011 Mon Sep 17 00:00:00 2001 From: Tobias Fiebig Date: Fri, 10 Mar 2023 12:48:09 +0100 Subject: T5078: Added filtered-routes BGP command --- op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i | 6 ++++++ op-mode-definitions/include/bgp/show-ip-bgp-common.xml.i | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'op-mode-definitions/include/bgp') diff --git a/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i b/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i index 7dbc4fde5..820d507fd 100644 --- a/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i +++ b/op-mode-definitions/include/bgp/afi-ipv4-ipv6-common.xml.i @@ -195,6 +195,12 @@ + + + Show filtered routes from BGP neighbor + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + Show received routes from BGP neighbor diff --git a/op-mode-definitions/include/bgp/show-ip-bgp-common.xml.i b/op-mode-definitions/include/bgp/show-ip-bgp-common.xml.i index 36cc9a3fa..db9021f3e 100644 --- a/op-mode-definitions/include/bgp/show-ip-bgp-common.xml.i +++ b/op-mode-definitions/include/bgp/show-ip-bgp-common.xml.i @@ -93,6 +93,12 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + Show the filtered routes from neighbor + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + Show the received routes from neighbor -- cgit v1.2.3 From a6499ea9d95d2b66d7977cea1d43f96d0116d4c3 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 17 Apr 2023 22:36:04 +0200 Subject: op-mode: bgp: T1315: add VNI related commands This extends commit 3fa1092930c (op-mode: bgp: support VRF related "show bgp vrf" commands). vyos@vyos:~$ show bgp vni Possible completions: 1-16777215 VXLAN network identifier (VNI) number all vyos@vyos:~$ show bgp vni 1 type Possible completions: 1 EAD (Type-1) route 2 MAC-IP (Type-2) route 3 Multicast (Type-3) route ead EAD (Type-1) route macip MAC-IP (Type-2) route multicast Multicast (Type-3) route vyos@vyos:~$ show bgp vni 1 vtep Possible completions: Remote VTEP IP address --- op-mode-definitions/include/bgp/evpn-type-1.xml.i | 8 +++ op-mode-definitions/include/bgp/evpn-type-2.xml.i | 8 +++ op-mode-definitions/include/bgp/evpn-type-3.xml.i | 8 +++ op-mode-definitions/include/bgp/evpn-type-4.xml.i | 8 +++ op-mode-definitions/include/bgp/evpn-type-5.xml.i | 8 +++ .../include/bgp/evpn-type-ead.xml.i | 8 +++ op-mode-definitions/include/bgp/evpn-type-es.xml.i | 8 +++ .../include/bgp/evpn-type-macip.xml.i | 8 +++ .../include/bgp/evpn-type-multicast.xml.i | 8 +++ .../include/bgp/evpn-type-prefix.xml.i | 8 +++ .../include/bgp/show-bgp-common.xml.i | 70 ++++------------------ op-mode-definitions/show-bgp.xml.in | 27 +++++++++ 12 files changed, 117 insertions(+), 60 deletions(-) create mode 100644 op-mode-definitions/include/bgp/evpn-type-1.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-2.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-3.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-4.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-5.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-ead.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-es.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-macip.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-multicast.xml.i create mode 100644 op-mode-definitions/include/bgp/evpn-type-prefix.xml.i (limited to 'op-mode-definitions/include/bgp') diff --git a/op-mode-definitions/include/bgp/evpn-type-1.xml.i b/op-mode-definitions/include/bgp/evpn-type-1.xml.i new file mode 100644 index 000000000..b5097c8b1 --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-1.xml.i @@ -0,0 +1,8 @@ + + + + EAD (Type-1) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-2.xml.i b/op-mode-definitions/include/bgp/evpn-type-2.xml.i new file mode 100644 index 000000000..827298d62 --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-2.xml.i @@ -0,0 +1,8 @@ + + + + MAC-IP (Type-2) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-3.xml.i b/op-mode-definitions/include/bgp/evpn-type-3.xml.i new file mode 100644 index 000000000..ae90b2e5c --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-3.xml.i @@ -0,0 +1,8 @@ + + + + Multicast (Type-3) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-4.xml.i b/op-mode-definitions/include/bgp/evpn-type-4.xml.i new file mode 100644 index 000000000..7248b4753 --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-4.xml.i @@ -0,0 +1,8 @@ + + + + Ethernet Segment (Type-4) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-5.xml.i b/op-mode-definitions/include/bgp/evpn-type-5.xml.i new file mode 100644 index 000000000..e3a72168a --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-5.xml.i @@ -0,0 +1,8 @@ + + + + Prefix (Type-5) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-ead.xml.i b/op-mode-definitions/include/bgp/evpn-type-ead.xml.i new file mode 100644 index 000000000..452de2f9a --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-ead.xml.i @@ -0,0 +1,8 @@ + + + + EAD (Type-1) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-es.xml.i b/op-mode-definitions/include/bgp/evpn-type-es.xml.i new file mode 100644 index 000000000..50c40151a --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-es.xml.i @@ -0,0 +1,8 @@ + + + + Ethernet Segment (Type-4) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-macip.xml.i b/op-mode-definitions/include/bgp/evpn-type-macip.xml.i new file mode 100644 index 000000000..6f601eb3f --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-macip.xml.i @@ -0,0 +1,8 @@ + + + + MAC-IP (Type-2) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-multicast.xml.i b/op-mode-definitions/include/bgp/evpn-type-multicast.xml.i new file mode 100644 index 000000000..5194dbb56 --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-multicast.xml.i @@ -0,0 +1,8 @@ + + + + Multicast (Type-3) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/evpn-type-prefix.xml.i b/op-mode-definitions/include/bgp/evpn-type-prefix.xml.i new file mode 100644 index 000000000..d5054d86b --- /dev/null +++ b/op-mode-definitions/include/bgp/evpn-type-prefix.xml.i @@ -0,0 +1,8 @@ + + + + Prefix (Type-5) route + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + diff --git a/op-mode-definitions/include/bgp/show-bgp-common.xml.i b/op-mode-definitions/include/bgp/show-bgp-common.xml.i index c9a112fca..de794a879 100644 --- a/op-mode-definitions/include/bgp/show-bgp-common.xml.i +++ b/op-mode-definitions/include/bgp/show-bgp-common.xml.i @@ -171,66 +171,16 @@ Specify Route type - - - EAD (Type-1) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - MAC-IP (Type-2) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Multicast (Type-3) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Ethernet Segment (Type-4) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Prefix (Type-5) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - EAD (Type-1) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Ethernet Segment (Type-4) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - MAC-IP (Type-2) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Multicast (Type-3) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Prefix (Type-5) route - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - + #include + #include + #include + #include + #include + #include + #include + #include + #include + #include #include diff --git a/op-mode-definitions/show-bgp.xml.in b/op-mode-definitions/show-bgp.xml.in index 974147621..3c212614c 100644 --- a/op-mode-definitions/show-bgp.xml.in +++ b/op-mode-definitions/show-bgp.xml.in @@ -51,6 +51,33 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + #include + + + + + Remote VTEP IP address + + <x.x.x.x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Display number of prefixes for all afi/safi + + + #include + #include + #include + #include + #include + #include + + + + Show BGP VRF information -- cgit v1.2.3