X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fexample_topology.py;h=91285f8e347e0d47d6d08e89b4af1e77aebe367c;hb=7303abc38b4751466953c8db55815c63df6687ac;hp=fce0698ff7e324fd4da23c58b8b669c025aa1027;hpb=e4e89d363f122f86e8cfe5ed430d316ab4c938aa;p=osm%2Fvim-emu.git diff --git a/emuvim/example_topology.py b/emuvim/example_topology.py index fce0698..91285f8 100644 --- a/emuvim/example_topology.py +++ b/emuvim/example_topology.py @@ -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()