Commit 44df4597 authored by Jiri Benc's avatar Jiri Benc Committed by Stephen Hemminger

vxlan: 'external' implies 'nolearning'

It doesn't make sense to use external control plane and fill internal FDB at
the same time. It's even an illegal combination for VXLAN-GPE.

Just switch off learning when 'external' is specified.
Signed-off-by: default avatarJiri Benc <jbenc@redhat.com>
parent 39afc4b0
......@@ -234,6 +234,7 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
remcsumrx = 0;
} else if (!matches(*argv, "external")) {
metadata = 1;
learning = 0;
} else if (!matches(*argv, "noexternal")) {
metadata = 0;
} else if (!matches(*argv, "gbp")) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment