From da961052291515f2e31bb4eca4d9091fad8c4d3c Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 5 Jul 2022 10:39:32 +0200 Subject: op-mode: bgp: T4494: add "reset bgp" op-mode tree --- op-mode-definitions/reset-bgp.xml.in | 258 +++++++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 op-mode-definitions/reset-bgp.xml.in (limited to 'op-mode-definitions/reset-bgp.xml.in') diff --git a/op-mode-definitions/reset-bgp.xml.in b/op-mode-definitions/reset-bgp.xml.in new file mode 100644 index 000000000..a1d42d4a3 --- /dev/null +++ b/op-mode-definitions/reset-bgp.xml.in @@ -0,0 +1,258 @@ + + + + + + + Border Gateway Protocol (BGP) information + + + + + Clear all peers + + vtysh -c "clear bgp *" + + #include + #include + + + Clear bestpath and re-advertise + + <x.x.x.x/x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + IPv4 Address Family + + + + + Clear all peers + + vtysh -c "clear bgp ipv4 *" + + #include + #include + + + + + IPv4 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + IPv6 Address Family + + + + + Clear all peers + + vtysh -c "clear bgp ipv6 *" + + #include + #include + + + + + IPv6 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + Layer 2 Virtual Private Network Address Family + + + + + Ethernet Virtual Private Network + + + + + Clear all peers + + vtysh -c "clear bgp l2vpn evpn *" + + #include + #include + + + + + BGP IPv4/IPv6 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + + + Virtual Routing and Forwarding (VRF) + + vrf name + + + + + + IPv4/IPv6 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + Clear all peers + + vtysh -c "clear bgp vrf $4 *" + + #include + #include + + + Clear bestpath and re-advertise + + <x.x.x.x/x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + IPv4 Address Family + + + + + Clear all peers + + vtysh -c "clear bgp vrf $4 ipv4 *" + + #include + #include + + + + + IPv4 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + IPv6 Address Family + + + + + Clear all peers + + vtysh -c "clear bgp vrf $4 ipv6 *" + + #include + #include + + + + + IPv6 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + Layer 2 Virtual Private Network Address Family + + + + + Ethernet Virtual Private Network + + + + + Clear all peers + + vtysh -c "clear bgp vrf $4 l2vpn evpn *" + + #include + #include + + + + + BGP IPv4/IPv6 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + + + + + + + BGP IPv4/IPv6 neighbor to clear + + + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + -- cgit v1.2.3