Compiler

class autonetkit.compiler.CiscoCompiler(nidb, anm, host)[source]

Platform compiler for Cisco

static interface_ids_ios2_slot_port()[source]

Allocate with slot and port iterating

class autonetkit.compiler.DynagenCompiler(nidb, anm, host)[source]

Dynagen Platform Compiler

static console_ports()[source]

Interator for console ports

static interface_ids()[source]

Allocate with slot and port iterating

class autonetkit.compiler.IosBaseCompiler(nidb, anm)[source]

Base IOS compiler

class autonetkit.compiler.JunosphereCompiler(nidb, anm, host)[source]

Junosphere Platform Compiler

class autonetkit.compiler.NetkitCompiler(nidb, anm, host)[source]

Netkit Platform Compiler

class autonetkit.compiler.PlatformCompiler(nidb, anm, host)[source]

Base Platform Compiler

class autonetkit.compiler.QuaggaCompiler(nidb, anm)[source]

Base Quagga compiler

interfaces(node)[source]

Quagga interface compiler

isis(node)[source]

Sets ISIS links

ospf(node)[source]

Quagga ospf compiler

class autonetkit.compiler.RouterCompiler(nidb, anm)[source]

Base router compiler

lo_interface_prefix = 'lo'

Base Router compiler

ospf(node)[source]

Returns OSPF links, also sets process_id

autonetkit.compiler.address_prefixlen_to_network(address, prefixlen)[source]

Workaround for creating an IPNetwork from an address and a prefixlen TODO: check if this is part of netaddr module

autonetkit.compiler.dot_to_underscore(instring)[source]

Replace dots with underscores