Configuring gre/gretap tunnels fails
BarbarossaTM opened this issue · comments
Configuring gre/gretap tunnels currently fails as the mode
or type
is not the first parameter when configuring the tunnel. The following code works around that issues but feels hacky. I guess a rewrite of the tunnel
executor is called for.
MODE_TYPE="mode"
case "$IF_TUNNEL_MODE" in
gretap)
COMMAND="link"
MODE_TYPE="type"
;;
vti6|ipip6|ip6*)
FAMILY="-6"
;;
esac
TUNNEL_MODE="$IF_TUNNEL_MODE"
unset IF_TUNNEL_MODE
The workaround seems fine, but I am not sure where $MODE_TYPE
comes into play?