summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-12-31 20:04:29 +0100
committerDaniil Baturin <daniil@baturin.org>2018-12-31 20:05:09 +0100
commitecbc1cb9506e816658cf6d8715cf00b65e75cd9e (patch)
treef99dd637cceb207b0795d337fe79d195ba2af539
parent1539c1c882a70436659966594b1d7aeedc487a43 (diff)
downloadvyatta-cfg-system-ecbc1cb9506e816658cf6d8715cf00b65e75cd9e.tar.gz
vyatta-cfg-system-ecbc1cb9506e816658cf6d8715cf00b65e75cd9e.zip
T1043: fail commit when multicast VXLAN is configured without the link option.
-rw-r--r--templates/interfaces/vxlan/node.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/interfaces/vxlan/node.def b/templates/interfaces/vxlan/node.def
index e8b625e1..70deef60 100644
--- a/templates/interfaces/vxlan/node.def
+++ b/templates/interfaces/vxlan/node.def
@@ -29,6 +29,10 @@ create:
if [ ! $VAR(./group/) == "" ]; then
VXLAN_GROUP="group $VAR(./group/@)"
+ if [ -z "$VXLAN_DEV" ]; then
+ echo "For multicast VXLAN, link (network interface) must be configured"
+ exit 1
+ fi
fi
if [ ! $VAR(./remote/) == "" ]; then