Skip to content
Snippets Groups Projects
Commit c2e2371a authored by Alfonso Tierno's avatar Alfonso Tierno
Browse files

fixing issue in validate_descriptor


Change-Id: I3d87c21f2beba29784d1f30fb4e0249c06bf3af0
Signed-off-by: default avatartierno <alfonso.tiernosepulveda@telefonica.com>
parent 02ad4b00
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ if __name__=="__main__":
if external_interface.get("virtual-interface", {}).get("type") == "OM-MGMT":
raise KeyError(
"Wrong 'Virtual-interface type': Deprecated 'OM-MGMT' value. Please, use 'PARAVIRT' instead")
interface_list = vdu.pop("interface", ())
interface_list = vdu.get("interface", ())
for interface in interface_list:
if interface.get("virtual-interface", {}).get("type") == "OM-MGMT":
raise KeyError(
......
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