migration to python3 (#1)
[osm/vim-emu.git] / src / emuvim / api / sonata / dummygatekeeper.py
index 59b1900..f9af3b6 100755 (executable)
@@ -87,7 +87,7 @@ def generate_subnets(prefix, base, subnet_size=50, mask=24):
     r = list()
     for net in range(base, base + subnet_size):
         subnet = "{0}.{1}.0/{2}".format(prefix, net, mask)
-        r.append(ipaddress.ip_network(unicode(subnet)))
+        r.append(ipaddress.ip_network(subnet))
     return r
 
 
@@ -330,8 +330,7 @@ class Service(object):
             cpu_period, cpu_quota = self._calculate_cpu_cfs_values(
                 float(cpu_bw))
 
-            # check if we need to deploy the management ports (defined as
-            # type:management both on in the vnfd and nsd)
+            # check if we need to deploy the management ports
             intfs = vnfd.get("connection_points", [])
             mgmt_intf_names = []
             if USE_DOCKER_MGMT: