noc.sa.interfaces.igetinterfaces

Module Contents

class noc.sa.interfaces.igetinterfaces.IGetInterfaces

Bases: noc.core.interface.base.BaseInterface

IGetInterfaces.

Common usage scenarios

forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” mac = interface mac address subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“IPv4”, “IPv6”] ipv4_addresses = list of IPv4 addresses ipv6_addresses = list of IPv6 addresses
forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” mac = interface mac address subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“IPv4”] ip_unnumbered_subinterface = subinterface name to borrow an address
forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” mac = interface mac address subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“BRIDGE”] untagged_vlan = VLANID
forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” mac = interface mac address subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“BRIDGE”] tagged_vlans = VLANS (list)
forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” mac = interface mac address subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“ES”] input_vlan_map = [{

stack: 0 | 1 | 2 # Untagged | 802.1Q | Q-in-Q macs: […mac addresses list…] inner_vlans: […vlans list…] outer_vlans: […vlans list…] rewrite: [

{
op: “pop” | “push” | “swap”, vlan: vlan id

]

}] output_vlan_map = … like input_vlan_map …

  • Untagged port in vlan 100
input_vlan_map = [{

stack: 0, rewrite: [{

op: “push”, vlan: 100

}]

}] output_vlan_map = [{

stack: 1, inner_vlans: [100] rewrite: [{

op: “pop”

}]

}] * Tagged vlans 100-200, untagged vlan 5 input_vlan_map = [

{

stack: 0, rewrite: [{

op: “push”, vlan: 5

}]

}, {

stack: 1, inner_vlans: [100, .., 200]

}

] output_vlan_map = [

{

stack: 1, inner_vlans: [5], rewrite: [{

op: “pop”

}]

}, {

stack: 1, inner_vlans: [100, .., 200]

}

] * Tagged 100-200, push outer vlan 10 input_vlan_map = [{

stack: 1, inner_vlans: [100, .., 200], rewrite: [{

op: “push”, vlan: 10

}]

}] output_vlan_map = [{

stack: 2, outer_vlans: [10], inner_vlans: [100, .., 200], rewrite: [{

op: “pop”

}]

}]

forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” mac = interface mac address subinterfaces:

name = interface name.VLAN1 (for most platforms) vlan_ids = [VLAN1] enabled_afi = [“IPv4”] ipv4_addresses = [list of VLAN1 addresses]

name = interface name.VLAN2 (for most platforms) vlan_ids = [VLAN2] enabled_afi = [“IPv4”] ipv4_addresses = [list of VLAN2 addresses]

forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = if1 type = “aggregated” subinterfaces:

name = interface name (same as parent for most platforms) enabled_afi = [“IPv4”] ipv4_addresses = list of IPv4 addresses

name = if2 type = “physical” enabled_protoocols = [“LACP”] aggregated_interface = “if1”

name = if3 type = “physical” enabled_protoocols = [“LACP”] aggregated_interface = “if1”

forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = if1 type = “aggregated” subinterfaces:

name = interface name (same as parent for most platforms) enabled_afi = [“BRIDGE”] tagged_vlans = list of tagged vlans

name = if2 type = “physical” enabled_protocols = [“LACP”] aggregated_interface = “if1”

name = if3 type = “physical” aggregated_interface = “if1”

forwarding_instance:

forwarding_instance = “default” type = “ip” interfaces:

name = interface name type = “physical” subinterfaces:

name = interface name.VLAN1 (for most platforms) vlan_ids = [VLAN1] enabled_afi = [“IPv4”] ipv4_addresses = List of VLAN1 addresses

forwarding_instance = “VRF1” type = “vrf” @todo RD interfaces:

name = interface name type = “physical” subinterfaces:

name = interface name.VLAN2 (for most platforms) vlan_ids = [VLAN2] enabled_afi = [“IPv4”] ipv4_addresses = List of VLAN2 addresses in VRF1

forwarding_instance: forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“IPv4”, “IPv6”, “ATM”] ipv4_addresses = list of IPv4 addresses ipv6_addresses = list of IPv6 addresses vpi = port vpi vci = port vci

forwarding_instance: forwarding_instance = “default” type = “ip” interfaces:

name = physical port name type = “physical” subinterfaces:

name = interface name (same as physical name for most platforms) enabled_afi = [“BRIDGE”, “ATM”] untagged_vlan = untagged vlan, if any tagged_vlans = list of tagged vlans, if any vpi = port vpi vci = port vci
returns