-
Notifications
You must be signed in to change notification settings - Fork 3
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
Yang model modifications #12
Yang model modifications #12
Conversation
…CL yang models. [sonic-vlan.yang]: modify vlan table key from vlanid(int) to vlan_name(string). [yangModelTesting.py] Fix Test Code and JSON input.
@@ -38,11 +38,11 @@ module sonic-vlan { | |||
|
|||
list VLAN_INTERFACE_LIST { | |||
|
|||
key "vlanid ip-prefix"; | |||
key "vlan_name ip-prefix"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to remove vlanid from the vlan interface list, and replace key from vlanid to vlan_name?
@@ -81,7 +81,13 @@ module sonic-vlan { | |||
|
|||
list VLAN_LIST { | |||
|
|||
key "vlanid"; | |||
key "vlan_name"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to remove vlanid?
@@ -170,7 +170,7 @@ module sonic-acl { | |||
choice icmp { | |||
|
|||
case icmp4 { | |||
when "boolean(IP_TYPE[.='ANY' or .='IP' or .='IPV4' or .='IPV4ANY' or .='ARP'])"; | |||
when "boolean(IP_TYPE[.='ANY' or .='IP' or .='IPV4' or .='IPv4ANY' or .='IPV4ANY' or .='ARP'])"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the aclorch.cpp backend code, all fields and values are converted to upper case. I think we should convert that too before yang model's validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I debugged and found, sonic-cfggen\configDB class converts everything to UPPER. So I will convert every string to UPPER while Translation. And we can keep only UPPER in Yang Models.
* [sonic-head.yang]: Minor modification for enumeration of ip-type in ACL yang models. [sonic-vlan.yang]: modify vlan table key from vlanid(int) to vlan_name(string). [yangModelTesting.py] Fix Test Code and JSON input. * [sonic-acl.yang]: Present Enumeration similar to config DB. * [sonic-head.yang]: Minor update in enumeration
* src/sonic-telemetry fa8d498...3bd7ca3 (4): > Update gnmi deps (zhenggen-xu#40) > [testdata] Update SFP keys to align with new standard (zhenggen-xu#39) > Fixed the parameters for subscribe APIs (zhenggen-xu#38) > Azure ro mode (zhenggen-xu#34) * src/sonic-mgmt-common 444aa9a...cc01ce4 (4): > Make gnmi dep version the same as in telemetry repo (zhenggen-xu#17) > Cleanup translib and cvl go test cases (zhenggen-xu#13) > Package update and enhancements/fixes in YGOT, and Request Binder (zhenggen-xu#12) > Translib phase I changes (zhenggen-xu#11) Note: sonic-telemetry submodule update is dependent upon sonic-mgmt-common submodule update, thus updating both in this patch
Updated the hw-mgmt pointer to include some bugfixes related to power supply voltages.
- What I did
- How I did it
Minor modification for enumeration of ip-type in ACL yang models.
modify vlan table key from vlanid(int) to vlan_name(string).
Fix Test Code and JSON input.
Note: I need to block Current PLY Tests because they do not pass with new YANG Models.
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)