X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fopenvim.git;a=blobdiff_plain;f=osm_openvim%2Fhost_thread.py;h=bf7a6da09c2b3816e59f4b07ac14a6951990f914;hp=80d99864672fb3d66b2d5187969aba9b312151d0;hb=e3cf1f716be59fe0f3271a44589c1f31b10567ec;hpb=47fa483a5a13bbfaf1dd5461b08a4402c4d3df03 diff --git a/osm_openvim/host_thread.py b/osm_openvim/host_thread.py index 80d9986..bf7a6da 100644 --- a/osm_openvim/host_thread.py +++ b/osm_openvim/host_thread.py @@ -813,7 +813,7 @@ class host_thread(threading.Thread): self.db_lock.acquire() result, content = self.db.get_table( FROM='ports', - WHERE={'p.type': 'instance:ovs', 'p.net_id': net_uuid} + WHERE={'type': 'instance:ovs', 'net_id': net_uuid} ) self.db_lock.release() @@ -1215,6 +1215,11 @@ class host_thread(threading.Thread): (_, stdout, _) = self.ssh_conn.exec_command(command) content = stdout.read() + command = 'sudo ip netns exec ' + net_namespace + ' ip link set dev lo up' + self.logger.debug("command: " + command) + (_, stdout, _) = self.ssh_conn.exec_command(command) + content = stdout.read() + command = 'sudo ip netns exec ' + net_namespace + ' ' + ' ifconfig ' + namespace_interface \ + ' ' + ip_listen_address + ' netmask ' + netmask self.logger.debug("command: " + command)