[VS/DPB] Introducing port_breakout_config_db.json #6034
Merged
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.
Introducing port_breakout_config_db.json, which will be used when you…breakout port with -l option
Signed-off-by: Vasant [email protected]
- Why I did it
To provide default config for new created ports as part of breakout
- How I did it
port_breakout_config_db.json will have configuration of ports that will be loaded on creating a port as part of dynamic port breakout. To make use of this feature you have run the breakout CLI command with -l option.
Example: SONiC$ config interface breakout Ethernet0 4x25G[10G] -l -y
In the above example, Ethernet0 will be deleted and Ethernet0, Ethernet1, Ethernet2, and Ethernet3 will be craeted. If there is any configuration related these four ports is present in port_breakout_config_db.json, it'll be automatically configured. For example, adding port to VLAN, ACL or configuring an interface IP.
The file that we are checking in here is the one required for DPB VS test cases to exercise/test -l option.
- How to verify it
By running VS test cases
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)