diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-12-31 20:04:29 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-12-31 20:04:29 +0100 |
commit | 7e785e989dfdf304150cc4fc0fe7d86f2a956341 (patch) | |
tree | f99dd637cceb207b0795d337fe79d195ba2af539 /templates/interfaces | |
parent | c1008389a525994feebfb059d1e7bedb785e2804 (diff) | |
download | vyatta-cfg-system-7e785e989dfdf304150cc4fc0fe7d86f2a956341.tar.gz vyatta-cfg-system-7e785e989dfdf304150cc4fc0fe7d86f2a956341.zip |
T1043: fail commit when multicast VXLAN is configured without the link option.
Diffstat (limited to 'templates/interfaces')
-rw-r--r-- | templates/interfaces/vxlan/node.def | 4 |
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 |