Commit a97f52e4 authored by Sigmund Augdal's avatar Sigmund Augdal

Fix issue in clean stale where no nics would be considered to be in the...

Fix issue in clean stale where no nics would be considered to be in the correct network since it was comparing a uuid to a string
parent 5d77bd62
......@@ -5,6 +5,7 @@ import argparse
from nova_router import neighbors
from scvmm_client import odata
import logging
import uuid
try:
from configparser import SafeConfigParser # pylint: disable=F0401
except ImportError:
......@@ -42,7 +43,7 @@ def main():
for nic in vmm_client.query_collection("VirtualNetworkAdapters"):
mac = nic.properties["MACAddress"]
vmnet = nic.properties["VMNetworkId"]
if mac is not None and vmnet == "5cc21a4c-a5b9-413d-b607-3ce7020c8b98":
if mac is not None and vmnet == uuid.UUID("5cc21a4c-a5b9-413d-b607-3ce7020c8b98"):
nics.add(mac.lower())
for entry in etcd_client.list("/nova/iaas/instances"):
if not entry.dir:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment