Skip to content

[BUG] Cumulus templates do not bring up L2-only interfaces #1863

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

Closed
jbemmel opened this issue Jan 30, 2025 · 5 comments
Closed

[BUG] Cumulus templates do not bring up L2-only interfaces #1863

jbemmel opened this issue Jan 30, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@jbemmel
Copy link
Collaborator

jbemmel commented Jan 30, 2025

When extending 31-vlan-bridge-trunk.yml with untagged ports:

links:
- s1:
  s2:
  vlan.trunk: [ red, blue ]

- s1:
    ipv4: False
  h5:
  prefix:
    ipv4: 172.31.1.0/24
- s2:
    ipv4: False
  h6:
  prefix:
    ipv4: 172.31.1.0/24

swp2 on each Cumulus device doesn't come up

Fix: move

{% if l.ipv4 is defined %}
a few lines down, just before if l.ipv4 == True

We'd probably also want to disable ipv6 on l2-only interfaces

@jbemmel jbemmel added the bug Something isn't working label Jan 30, 2025
@jbemmel
Copy link
Collaborator Author

jbemmel commented Jan 30, 2025

Note that FRR does not have this issue due to

It might be better to uncomment

- it does make a difference, as 'no shutdown' brings the interface up (but still doesn't configure the MTU)

@ipspace
Copy link
Owner

ipspace commented Jan 30, 2025

I agree that it's not nice that the interfaces are not brought up, but as you didn't configure anything on them, it's not a big problem anyway ;)

@ipspace
Copy link
Owner

ipspace commented Jan 30, 2025

Also, the minimum topology to reproduce the problem has nothing to do with VLANs or trunks:

---
nodes:
  s1:
    device: cumulus
  h:
    device: linux

links:
- s1:
    ipv4: False
  h:

@jbemmel
Copy link
Collaborator Author

jbemmel commented Jan 30, 2025

I agree that it's not nice that the interfaces are not brought up, but as you didn't configure anything on them, it's not a big problem anyway ;)

In this case it was, because the test passes if the ping fails - and with the interface down, the ping will fail regardless if there is an issue with untagged packets being forwarded on the trunk

@ipspace
Copy link
Owner

ipspace commented Feb 8, 2025

2f4a6a1 documents that you need extra configuration to make use of the L2-only interfaces without VLAN module. This became a WAD

@ipspace ipspace closed this as completed Feb 8, 2025
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

2 participants