Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Link role is not set to 'external' on inter-AS IRB VLAN links #1859

Open
ipspace opened this issue Jan 28, 2025 · 1 comment
Open

[BUG] Link role is not set to 'external' on inter-AS IRB VLAN links #1859

ipspace opened this issue Jan 28, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ipspace
Copy link
Owner

ipspace commented Jan 28, 2025

When two routers from different AS are connected over an IRB VLAN (using SVI interfaces), the "role: external" attribute is not set on the SVI interface, potentially resulting in an IGP running over the same link.

A simple fix (propagation of 'role' attribute) would probably address the "direct connection" scenario but not the "intermediate L2 switch" scenario.

Lab topology: direct connection

---
defaults.device: eos
provider: clab

vlans:
  core:

groups:
  pe:
    members: [ pe1, pe2 ]
    module: [ ospf, bgp, vlan ]

nodes:
  pe1:
    bgp.as: 65001
  pe2:
    bgp.as: 65002

links:
- pe1:
  pe2:
  vlan.trunk: [ core ]

Output

$ netlab inspect --node pe1 interfaces[1]
bridge_group: 1
ifindex: 40000
ifname: Vlan1000
ipv4: 172.16.0.1/24
name: VLAN core (1000) -> [pe2]
neighbors:
- ifname: Vlan1000
  ipv4: 172.16.0.2/24
  node: pe2
ospf:
  area: 0.0.0.0
  network_type: point-to-point
  passive: false
type: svi
virtual_interface: true
vlan:
  mode: irb
  name: core

The role attribute is not set and there's OSPF running on that link.

@ipspace ipspace added the bug Something isn't working label Jan 28, 2025
ipspace added a commit that referenced this issue Jan 28, 2025
@ipspace
Copy link
Owner Author

ipspace commented Jan 28, 2025

Workaround (role: external on VLAN) documented as a warning in d58d837.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant