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():
"""
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
"""
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.
def main():
+ setLogLevel('info') # set Mininet loglevel
create_topology1()