Naming

Naming

AutoNetkit.algorithms.naming.domain(device)[source]

Returns domain for device

AutoNetkit.algorithms.naming.fqdn(network, node)[source]

Returns formatted domain name for node r in graph graph.

AutoNetkit.algorithms.naming.rtr_folder_name(network, node)[source]

Returns file system safe name for device, used for folders.

AutoNetkit.algorithms.naming.hostname(node)[source]

Returns name with spaces, underscores and other illegal characters removed. Useful for Bind/DNS

AutoNetkit.algorithms.naming.interface_id(platform, olive_qemu_patched=False)[source]

Returns appropriate naming function based on target olive_qemu_patched means can do int 0->6

AutoNetkit.algorithms.naming.tap_interface_id(network, node)[source]

Returns the next free interface number for the tap interface

AutoNetkit.algorithms.naming.junos_logical_int_id(int_id)[source]

For routing protocols, refer to logical int id:

>>> junos_logical_int_id("ge-0/0/1")
'ge-0/0/1.0'
>>> junos_logical_int_id("em0")
'em0.0'
AutoNetkit.algorithms.naming.junos_int_id_em(numeric_id)[source]

Returns Junos format interface ID for an AutoNetkit interface ID eg em1

AutoNetkit.algorithms.naming.default_route(node)[source]

Returns default router for a server

AutoNetkit.algorithms.naming.server_ip(node)[source]

Servers don’t have a loopback IP

AutoNetkit.algorithms.naming.server_interface_id(node)[source]

Servers don’t have a loopback interface