emane_docker package¶
Submodules¶
emane_docker.constant module¶
-
class
emane_docker.constant.Constant[source]¶ Bases:
object-
BGP_CP= 'bgp'¶
-
CP_CONFIG_DIRECTORY= 'container_helpers/configs'¶
-
ISIS_CP= 'isis'¶
-
OLSR_CP= 'olsr'¶
-
OLSRv2_CP= 'olsrv2'¶
-
OSPF_CP= 'ospf'¶
-
PLATFORM_DOCKER= 'docker'¶
-
REDIS_WAIT_TIME= 5.0¶
-
RIP_CP= 'rip'¶
-
SDN_CP= 'sdn'¶
-
SUPPORTED_CONTROL_PLANES= ['sdn', 'ospf', 'olsr', 'olsrv2', 'bgp', 'isis', 'rip']¶
-
SUPPORTED_PLATFORMS= ['docker']¶
-
TEMPLATE_DIRECTORY= 'templates'¶
-
emane_docker.distribution module¶
emane_docker.event_generator module¶
emane_docker.log module¶
emane_docker.main module¶
emane_docker.result_report module¶
emane_docker.topology module¶
-
class
emane_docker.topology.EmaneTopology(config)[source]¶ Bases:
object-
generate_cp_config(config_path, node, control_plane)[source]¶ Generates control plane configurations. User can override the default values by specifying it at EMANE-Docker configuration file. See the config.default.yaml for details.
Parameters: - config_path – Configuration path
- node – The node
- control_plane – The CP plane (OLSR, OLSRv2, OSPF, BGP, IS-IS and RIP)
-
load_topology()[source]¶ Loads the topology file specified by the user (either in configuration file or as a command line parameter.
-
run_threadpool(method, params)[source]¶ Runs a threadpool for given methods and params. Used when starting/stopping/configuring nodes. It blocks until the threadpool finishes.
Parameters: - method – The method to run
- params – Method parameters
-
-
class
emane_docker.topology.Link(node1, node2, mask1=24, mask2=24, lid=None, ip1=None, ip2=None)[source]¶ Bases:
objectContains the information related to a link between two nodes (nodes).
Parameters: - node1 –
- node2 –
- mask1 –
- mask2 –
- lid –
- ip1 –
- ip2 –
-
DOWN= 0¶
-
LINK_COUNT= 0¶
-
UP= 1¶
-
class
emane_docker.topology.Node(domain, node, index, as_id)[source]¶ Bases:
objectIt contains information related to each “emulated” node. Each node runs as a separate Docker container. The names node and node are used interchangeably throughout this project.
Parameters: - domain – The domain that node belongs to.
- node – The node dictionary, see the configuration examples for details.