summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-27 22:12:11 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-27 22:25:18 +0200
commitcf998c040c371be20be8035895989fcee3c06429 (patch)
tree3632589b8e6f15e4fd7c1816b9458af495ca8992 /src/op_mode
parentc76389156c41414a3a4e381535151607a42fb06f (diff)
downloadvyos-1x-cf998c040c371be20be8035895989fcee3c06429.tar.gz
vyos-1x-cf998c040c371be20be8035895989fcee3c06429.zip
op-mode: ospfv3: T3335: re-use common vtysh_wrapper.sh wrapper
Instead of renaming the OSPFv3 commands for every individual XML invocation, also re-use the common helper shell script. One source, one truth!
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/vtysh_wrapper.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/op_mode/vtysh_wrapper.sh b/src/op_mode/vtysh_wrapper.sh
index 47d88330b..09980e14f 100755
--- a/src/op_mode/vtysh_wrapper.sh
+++ b/src/op_mode/vtysh_wrapper.sh
@@ -1,4 +1,5 @@
#!/bin/sh
declare -a tmp
-tmp=$@
+# FRR uses ospf6 where we use ospfv3, thus alter the command
+tmp=$(echo $@ | sed -e "s/ospfv3/ospf6/")
vtysh -c "$tmp"