]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
vxlan: 'external' implies 'nolearning'
authorJiri Benc <jbenc@redhat.com>
Thu, 7 Apr 2016 12:36:27 +0000 (14:36 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 11 Apr 2016 22:15:49 +0000 (22:15 +0000)
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: Jiri Benc <jbenc@redhat.com>
ip/iplink_vxlan.c

index e3bbea0031df69d57a07ccddcb695a82b665b59b..e9d64b451677b58691b0b62a047ba20980030adc 100644 (file)
@@ -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")) {