Skip to content

Interface allows non existent VLAN to be tagged #120

Open

Description

@fzakfeld

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions