X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=emuvim%2Fexample_topology.py;h=91285f8e347e0d47d6d08e89b4af1e77aebe367c;hb=3b996c0c6abe69f81bb418c575d222a606a4dc8e;hp=109808cbfdc6de6c118655ffb146c60c450c35e3;hpb=5b844a1abb3fa789d1d72f74c86d8e47c28b2dac;p=osm%2Fvim-emu.git diff --git a/emuvim/example_topology.py b/emuvim/example_topology.py index 109808c..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(): @@ -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()