[_sonic_yang_ext.py]: Added support to allow or deny extra tables. #34
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 change will have corresponding changes in sonic-utilities.
Note: these changes in sonic-buildimage are safe to merge even without
sonic-utilities changes.
- What I did
[_sonic_yang_ext.py]: Added support to allow or deny extra tables.
- How I did it
Add extra parameter in load_data and cropConfigDB API, to control whether to allow or deny extra tables.
- How to verify it
Do not allow extra tables:
Final list of ports to be deleted :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}
Final list of ports to be added :
{
"Ethernet2": "50000",
"Ethernet0": "50000"
}
Loaded below Yang Models
['sonic-acl', 'sonic-head', 'sonic-interface', 'sonic-port', 'sonic-portchannel', 'sonic-vlan']
Reading data from Redis configDb
Data Loading Failed
No Yang Model Exist for BREAKOUT_CFG
Failed to break out Port. Error: Failed to load the config. Error: configMgmt Class creation failed
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)