mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vxlan: fix ifquery running to not proceed when vxlan-id is not
available Ticket: CM-12378 Reviewed By: julien, nikhil Testing Done: tested ifquery running with examples in the bug Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -214,6 +214,9 @@ class vxlan(moduleBase):
|
||||
attrval = vxlanattrs.get('vxlanid')
|
||||
if attrval:
|
||||
ifaceobjrunning.update_config('vxlan-id', vxlanattrs.get('vxlanid'))
|
||||
else:
|
||||
# if there is no vxlan id, this is not a vxlan port
|
||||
return
|
||||
attrval = vxlanattrs.get('local')
|
||||
if attrval:
|
||||
ifaceobjrunning.update_config('vxlan-local-tunnelip', attrval)
|
||||
|
Reference in New Issue
Block a user