From 3c705d76063e3da6b369b1eb2ac68aea653cc0ec Mon Sep 17 00:00:00 2001 From: Roopa Prabhu Date: Thu, 11 Aug 2016 16:35:01 -0700 Subject: [PATCH] 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 --- addons/vxlan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/vxlan.py b/addons/vxlan.py index 059b50b..954e931 100644 --- a/addons/vxlan.py +++ b/addons/vxlan.py @@ -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)