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

Interface allows non existent VLAN to be tagged #120

Open
fzakfeld opened this issue Sep 22, 2023 · 0 comments
Open

Interface allows non existent VLAN to be tagged #120

fzakfeld opened this issue Sep 22, 2023 · 0 comments

Comments

@fzakfeld
Copy link

fzakfeld commented Sep 22, 2023

It is possible to tag a VLAN or VLAN range on an interface without the VLAN actually existing. When you create the VLAN afterwards, it is not working and needs to be added again.

  1. Tag a non existent VLAN on an interface, e.g.
interface PortChannel10
 switchport trunk allowed Vlan add 12
!
  1. Create the VLAN afterwards (e.g. interface Vlan12)
  2. Now the VLAN is not working, even though we tagged it:
sonic# show Vlan 12
Q: A - Access (Untagged), T - Tagged
NUM        Status      Q Ports            Autostate   Dynamic
12         Inactive                        Enable
  1. Repeat step 1 and afterwards repeat step 3 to see it now working.

I think the KLISH CLI should throw an error when you try to tag a VLAN that is not yet created. This will avoid both the situation described above, and will clarify for users that VLANs need to be created first.

Edit: This might also effect the 'all' tagging option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant