Skip to content
Snippets Groups Projects
Commit a1c29cd8 authored by lloretgalleg's avatar lloretgalleg
Browse files

Corrected bug: If vlan provided is None raise an error


Change-Id: Ide943ed5a2ae5e03028b90c266144a8051e616c7
Signed-off-by: default avatarlloretgalleg <illoret@indra.es>
parent e8348eca
No related branches found
Tags v7.1.0 v7.1.0rc6
No related merge requests found
......@@ -398,6 +398,8 @@ class JuniperContrail(SdnConnectorBase):
if len(vlans) == 1:
vlan = vlans.pop()
self.logger.debug("Provided vlan: {}".format(vlan))
if not vlan:
raise SdnConnectorError("No vlan provided")
else:
raise SdnConnectorError("Provided more than one vlan")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment