Merge branch 'master' of github.com:mpeuster/son-emu
[osm/vim-emu.git] / emuvim / example_topology.py
index fce0698..91285f8 100644 (file)
@@ -17,10 +17,11 @@ The original Mininet API has to be completely hidden and not be used by this
 script.
 """
 import logging
+from mininet.log import setLogLevel
 from dcemulator.net import DCNetwork
 from api.zerorpcapi import ZeroRpcApiEndpoint
 
-logging.basicConfig(level=logging.DEBUG)
+logging.basicConfig(level=logging.INFO)
 
 
 def create_topology1():
@@ -57,7 +58,7 @@ def create_topology1():
 
     """
     5. We want to access and control our data centers from the outside,
-       e.g., we want to connect an orchestrate to start/stop compute
+       e.g., we want to connect an orchestrator to start/stop compute
        resources aka. VNFs (represented by Docker containers in the emulated)
 
        So we need to instantiate API endpoints (e.g. a zerorpc or REST
@@ -75,7 +76,7 @@ def create_topology1():
 
     """
     5.1. For our example, we create a second endpoint to illustrate that
-         this is support by our design. This feature allows us to have
+         this is supported by our design. This feature allows us to have
          one API endpoint for each data center. This makes the emulation
          environment more realistic because you can easily create one
          OpenStack-like REST API endpoint for *each* data center.
@@ -101,6 +102,7 @@ def create_topology1():
 
 
 def main():
+    setLogLevel('info')  # set Mininet loglevel
     create_topology1()