summaryrefslogtreecommitdiff
path: root/src/op_mode/vtysh_wrapper.sh
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-05 10:39:32 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-05 12:21:45 +0200
commitda961052291515f2e31bb4eca4d9091fad8c4d3c (patch)
tree3f6968bdbf434e3d02d001cee9ef15d731475fcf /src/op_mode/vtysh_wrapper.sh
parent4d405cc696b777c3ed96f2d22c7c82ca40c39a88 (diff)
downloadvyos-1x-da961052291515f2e31bb4eca4d9091fad8c4d3c.tar.gz
vyos-1x-da961052291515f2e31bb4eca4d9091fad8c4d3c.zip
op-mode: bgp: T4494: add "reset bgp" op-mode tree
Diffstat (limited to 'src/op_mode/vtysh_wrapper.sh')
-rwxr-xr-xsrc/op_mode/vtysh_wrapper.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/op_mode/vtysh_wrapper.sh b/src/op_mode/vtysh_wrapper.sh
index 09980e14f..bc7814a7c 100755
--- a/src/op_mode/vtysh_wrapper.sh
+++ b/src/op_mode/vtysh_wrapper.sh
@@ -1,5 +1,6 @@
#!/bin/sh
declare -a tmp
-# FRR uses ospf6 where we use ospfv3, thus alter the command
-tmp=$(echo $@ | sed -e "s/ospfv3/ospf6/")
+# FRR uses ospf6 where we use ospfv3, and we use reset over clear for BGP,
+# thus alter the commands
+tmp=$(echo $@ | sed -e "s/ospfv3/ospf6/" | sed -e "s/^reset bgp/clear bgp/")
vtysh -c "$tmp"