1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

iproute2: svd: convert vnifilter attr to boolean to cover all case

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2021-06-09 16:13:25 +02:00
parent 9ca87c5e8b
commit 9b23b7c684

View File

@@ -302,7 +302,7 @@ class IPRoute2(Cache, Requirements):
# when changing local ip, if we specify vnifilter we get:
# Error: vxlan: cannot change flag.
# So we are only setting this attribute on vxlan creation
if vnifilter and vnifilter == "on":
if vnifilter and utils.get_boolean_from_string(vnifilter):
cmd.append("vnifilter")
if ip: