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 --- .../include/bgp/reset-bgp-afi-common.xml.i | 20 +++++++++ .../include/bgp/reset-bgp-neighbor-options.xml.i | 48 ++++++++++++++++++++++ .../include/bgp/reset-bgp-peer-group-vrf.xml.i | 14 +++++++ .../include/bgp/reset-bgp-peer-group.xml.i | 14 +++++++ 4 files changed, 96 insertions(+) create mode 100644 op-mode-definitions/include/bgp/reset-bgp-afi-common.xml.i create mode 100644 op-mode-definitions/include/bgp/reset-bgp-neighbor-options.xml.i create mode 100644 op-mode-definitions/include/bgp/reset-bgp-peer-group-vrf.xml.i create mode 100644 op-mode-definitions/include/bgp/reset-bgp-peer-group.xml.i (limited to 'op-mode-definitions/include') diff --git a/op-mode-definitions/include/bgp/reset-bgp-afi-common.xml.i b/op-mode-definitions/include/bgp/reset-bgp-afi-common.xml.i new file mode 100644 index 000000000..2f88daad3 --- /dev/null +++ b/op-mode-definitions/include/bgp/reset-bgp-afi-common.xml.i @@ -0,0 +1,20 @@ + + + + Reset all external peers + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + + + Reset peers with the AS number + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + diff --git a/op-mode-definitions/include/bgp/reset-bgp-neighbor-options.xml.i b/op-mode-definitions/include/bgp/reset-bgp-neighbor-options.xml.i new file mode 100644 index 000000000..d9feee18a --- /dev/null +++ b/op-mode-definitions/include/bgp/reset-bgp-neighbor-options.xml.i @@ -0,0 +1,48 @@ + + + + Send route-refresh unless using 'soft-reconfiguration inbound' + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Push out prefix-list ORF and do inbound soft reconfig + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + + + Reset message statistics + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Resend all outbound updates + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Soft reconfig inbound and outbound updates + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Send route-refresh unless using 'soft-reconfiguration inbound' + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Resend all outbound updates + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + diff --git a/op-mode-definitions/include/bgp/reset-bgp-peer-group-vrf.xml.i b/op-mode-definitions/include/bgp/reset-bgp-peer-group-vrf.xml.i new file mode 100644 index 000000000..c1a24bae2 --- /dev/null +++ b/op-mode-definitions/include/bgp/reset-bgp-peer-group-vrf.xml.i @@ -0,0 +1,14 @@ + + + + Reset all members of peer-group + + vrf name ${COMP_WORDS[4]} protocols bgp peer-group + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + diff --git a/op-mode-definitions/include/bgp/reset-bgp-peer-group.xml.i b/op-mode-definitions/include/bgp/reset-bgp-peer-group.xml.i new file mode 100644 index 000000000..c26e47b47 --- /dev/null +++ b/op-mode-definitions/include/bgp/reset-bgp-peer-group.xml.i @@ -0,0 +1,14 @@ + + + + Reset all members of peer-group + + protocols bgp peer-group + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + #include + + + -- cgit v1.2.3