projects
/
osm
/
openvim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix minor bugs related with dhcp
[osm/openvim.git]
/
osm_openvim
/
host_thread.py
diff --git
a/osm_openvim/host_thread.py
b/osm_openvim/host_thread.py
index
80d9986
..
bf7a6da
100644
(file)
--- 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',
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()
)
self.db_lock.release()
@@
-1215,6
+1215,11
@@
class host_thread(threading.Thread):
(_, stdout, _) = self.ssh_conn.exec_command(command)
content = stdout.read()
(_, 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)
command = 'sudo ip netns exec ' + net_namespace + ' ' + ' ifconfig ' + namespace_interface \
+ ' ' + ip_listen_address + ' netmask ' + netmask
self.logger.debug("command: " + command)