[config] Added/updated vlan commands. #956
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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)