diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-11-18 17:52:49 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-11-18 17:52:49 +0100 |
commit | 355d403b3b492b07bfc405b7d7dfa0051a2ab7c2 (patch) | |
tree | 50709093c50525ae789c4c3b5e0a3fe10e5a5bb2 /templates/interfaces/tunnel/node.def | |
parent | 29287219854913b9f1ab6661d8af786b0fd68434 (diff) | |
download | vyatta-cfg-system-355d403b3b492b07bfc405b7d7dfa0051a2ab7c2.tar.gz vyatta-cfg-system-355d403b3b492b07bfc405b7d7dfa0051a2ab7c2.zip |
T1000: partially fix the broken 6rd implementation.
Diffstat (limited to 'templates/interfaces/tunnel/node.def')
-rw-r--r-- | templates/interfaces/tunnel/node.def | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def index c6e3b447..de5431a3 100644 --- a/templates/interfaces/tunnel/node.def +++ b/templates/interfaces/tunnel/node.def @@ -16,7 +16,13 @@ commit:expression: exec " if [ $VAR(./encapsulation/@) = gre ] && [ ! -n \"$VAR(./remote-ip/)\" ]; then \ echo \"No remote-ip configured for $VAR(@), tunnel can only be used for mGRE.\"; \ - fi; \ + fi; \ + if [ -n \"$VAR(./6rd-prefix/)\" ]; then \ + if [ $VAR(./encapsulation/@) != sit ]; then \ + echo \"6rd-prefix can only be set for SIT tunnels\"; \ + exit 1; \ + fi \ + fi; \ if [ $VAR(./encapsulation/@) != gre ] && [ ! -n \"$VAR(./remote-ip/)\" ]; then \ echo \"Must configure the tunnel remote-ip for $VAR(@)\"; \ exit 1; \ |