Dynagen compiler

Generate dynagen configuration files for a network

Config options

autonetkit.cfg:

[Dynagen]
    image = /dev/null
    working dir = /home/autonetkit/
    model = 7200
    interfaces = "FastEthernet0/0", "FastEthernet0/1", "FastEthernet1/0", "FastEthernet1/1", "FastEthernet2/0", "FastEthernet2/1"
    [[Slots]]
        slot1 = PA-2FE-TX
        slot2 = PA-2FE-TX
    [[Options]]
        idlepc = 0x6085af60
        ram = 128
    [[Hypervisor]]
        server = 127.0.0.1
        port = 7202

lab.net:

[[7202]]
    image = /dev/null
    ghostios = True
    chassis = 7200   
            idlepc = 0x6085af60
            ram = 128
            slot1 = PA-2FE-TX
            slot2 = PA-2FE-TX  

can put any key = val line into the options section of the config file. Same for slots, so S0/0 = r2 s0/0 is also valid.

class AutoNetkit.compiler.dynagencompiler.dynagenCompiler(network, igp, services, image, hypervisor_server, hypervisor_port)[source]

Compiler main

configure_dynagen()[source]

Generates dynagen specific configuration files.

configure_igp(router, igp_graph, ebgp_graph)[source]

igp configuration

configure_ios()[source]

Configures IOS

dynagen_interface_name(interface_id)[source]

FastEthernet1/0 -> f1/0

initialise()[source]

Creates lab folder structure

AutoNetkit.compiler.dynagencompiler.router_conf_file(network, router)[source]

Returns filename for config file for router

AutoNetkit.compiler.dynagencompiler.router_conf_path(network, router)[source]

Returns full path to router config file