Using absolute import path
authorcgeoffroy <geoffroy.chollon@thalesgroup.com>
Thu, 3 Mar 2016 17:24:15 +0000 (18:24 +0100)
committercgeoffroy <geoffroy.chollon@thalesgroup.com>
Thu, 3 Mar 2016 18:01:13 +0000 (19:01 +0100)
src/emuvim/__init__.py [new file with mode: 0644]
src/emuvim/cli/son_emu_cli.py
src/emuvim/dcemulator/net.py
src/emuvim/example_topology.py
src/emuvim/test/test_emulator.py

diff --git a/src/emuvim/__init__.py b/src/emuvim/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
index 61cbd43..195fe06 100755 (executable)
 """
 
 import sys
-import compute
-import network
-import datacenter
-import monitor
+from emuvim.cli import compute
+from emuvim.cli import network
+from emuvim.cli import datacenter
+from emuvim.cli import monitor
 
 def main():
     if len(sys.argv) < 2:
index 20ab33a..e01e950 100755 (executable)
@@ -14,9 +14,9 @@ from mininet.cli import CLI
 from mininet.log import setLogLevel, info, debug
 from mininet.link import TCLink, Link
 import networkx as nx
-from monitoring import DCNetworkMonitor
+from emuvim.dcemulator.monitoring import DCNetworkMonitor
 
-from node import Datacenter, EmulatorCompute
+from emuvim.dcemulator.node import Datacenter, EmulatorCompute
 
 
 class DCNetwork(Dockernet):
index eba751c..a63bd7f 100755 (executable)
@@ -18,7 +18,7 @@ script.
 """
 import logging
 from mininet.log import setLogLevel
-from dcemulator.net import DCNetwork
+from emuvim.dcemulator.net import DCNetwork
 from api.zerorpcapi import ZeroRpcApiEndpoint
 from api.zerorpcapi_DCNetwork import ZeroRpcApiEndpointDCNetwork
 
index ef22a22..06e2da3 100755 (executable)
@@ -11,8 +11,8 @@ import os
 import time
 import subprocess
 import docker
-from dcemulator.net import DCNetwork
-from dcemulator.node import EmulatorCompute
+from emuvim.dcemulator.net import DCNetwork
+from emuvim.dcemulator.node import EmulatorCompute
 from mininet.node import Host, Controller, OVSSwitch, Docker
 from mininet.link import TCLink
 from mininet.topo import SingleSwitchTopo, LinearTopo