Topology

Layer 3 Topology

Returns Layer 3 links.

Lists all Layer 3 edges in the network.

Inputs

Name

Description

Type

Optional

Default Value

nodes

Include edges whose first node matches this name or regex.

NodeSpec

True

.*

remoteNodes

Include edges whose second node matches this name or regex.

NodeSpec

True

.*

Invocation

[6]:
result = bfq.layer3Edges().answer().frame()

Return Value

Name

Description

Type

Interface

Interface from which the edge originates

Interface

IPs

IPs

Set of str

Remote_Interface

Interface at which the edge terminates

Interface

Remote_IPs

Remote IPs

Set of str

Print the first 5 rows of the returned Dataframe

[7]:
result.head(5)
[7]:
Interface IPs Remote_Interface Remote_IPs
0 as2border2[GigabitEthernet2/0] ['2.12.21.1'] as2core1[GigabitEthernet1/0] ['2.12.21.2']
1 as2dept1[GigabitEthernet0/0] ['2.34.101.4'] as2dist1[GigabitEthernet2/0] ['2.34.101.3']
2 as3border1[GigabitEthernet0/0] ['3.0.1.1'] as3core1[GigabitEthernet1/0] ['3.0.1.2']
3 as2border2[GigabitEthernet1/0] ['2.12.22.1'] as2core2[GigabitEthernet0/0] ['2.12.22.2']
4 as3border2[GigabitEthernet0/0] ['10.13.22.3'] as1border2[GigabitEthernet0/0] ['10.13.22.1']

Print the first row of the returned Dataframe

[8]:
result.iloc[0]
[8]:
Interface           as2border2[GigabitEthernet2/0]
IPs                 ['2.12.21.1']
Remote_Interface    as2core1[GigabitEthernet1/0]
Remote_IPs          ['2.12.21.2']
Name: 0, dtype: object