IOU integration.

Improvements on module management.
File upload support.
Config file for the server.
This commit is contained in:
grossmj
2014-03-11 15:45:04 -06:00
parent 89888ae7bf
commit 0f75dbc68a
27 changed files with 2509 additions and 59 deletions

View File

@ -211,11 +211,16 @@ class Hypervisor(DynamipsHypervisor):
if self.is_running():
DynamipsHypervisor.stop(self)
log.info("stopping Dynamips PID={}".format(self._process.pid))
# give some time for the hypervisor to properly stop.
# time to delete UNIX NIOs for instance.
time.sleep(0.01)
self._process.kill()
self._process.wait()
try:
# give some time for the hypervisor to properly stop.
# time to delete UNIX NIOs for instance.
time.sleep(0.01)
self._process.terminate()
self._process.wait(1)
except subprocess.TimeoutExpired:
self._process.kill()
if self._process.poll() == None:
log.warn("Dynamips process {} is still running".format(self._process.pid))
def read_stdout(self):
"""