Skip to content

[config] Added/updated vlan commands. #956

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
wants to merge 2 commits into from
Closed

[config] Added/updated vlan commands. #956

wants to merge 2 commits into from

Conversation

rajkumar38
Copy link
Contributor

@rajkumar38 rajkumar38 commented Jun 22, 2020

  1. list add/del support for vlan.
  2. Enhanced "config vlan add" command to take optional param "type" with values "management/control". The same added in list support as well. Purpose is to identify the vlan type.
    This is optional configuration. If not set, it will treated as regular vlan (current behavior).
    config_db.json:
    ===============
    "Vlan215": {
    "vlanid": "215"
    },
    "Vlan101": {
    "vlan_type": "control",
    "vlanid": "101"
    },
    "Vlan2156": {
    "members": [
    "Ethenret0",
    "Ethenret1"
    ],
    "vlan_type": "management",
    "vlanid": "2156"
    }

Signed-off-by: Rajkumar Pennadam Ramamoorthy [email protected]

- What I did

  1. list add/del support for vlan.
  2. Enhanced "config vlan add" command to take optional param "type" with values "management/control". The same added in list support as well. Purpose is to identify the vlan type.
    This is optional configuration. If not set, it will treated as regular vlan (current behavior).
    - How I did it
    config vlan add 215
    config vlan add 2156 -t mgmt
    config vlan add 2156 --type ctrl
    config vlan add 2157 --type ctrl
    config vlan list add 1500 1501 101 --type ctrl
    config vlan list add -t mgmt 1510
    config vlan list del 215 1510 1500

- How to verify it
Check the out in show running config and verify the "vlan_type"
"Vlan215": {
"vlanid": "215"
},
"Vlan101": {
"vlan_type": "control",
"vlanid": "101"
},
"Vlan2156": {
"members": [
"Ethenret0",
"Ethenret1"
],
"vlan_type": "management",
"vlanid": "2156"
}
- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

1) list add/del support for vlan.
2) Enhanced "config vlan add" command to take optional param "type" with values "management/control".
   The same added in list support as well. Purpose is to identify the vlan type.
   This is optional configuration. If not set, it will treated as regular vlan (current behavior).
config_db.json:
===============
    "Vlan215": {
        "vlanid": "215"
    },
    "Vlan101": {
        "vlan_type": "control",
        "vlanid": "101"
    },
    "Vlan2156": {
        "members": [
            "Ethenret0",
        "Ethenret1"
        ],
        "vlan_type": "management",
        "vlanid": "2156"
    }

Signed-off-by: Rajkumar Pennadam Ramamoorthy <[email protected]>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 18, 2022
These changes are included in this PR:

07e1f79 [syncd] Add workaround for warm boot new objects (sonic-net#959)
50fd353 Fix the option missing in kernel config issue (sonic-net#956)
e77503c [syncd] Comparison logic workaround for empty buffer profile (sonic-net#906) (sonic-net#941)
@rajkumar38 rajkumar38 closed this by deleting the head repository Apr 11, 2023
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

Successfully merging this pull request may close these issues.

1 participant