Is it platform specific
generic
Importance or Severity
Critical
Description of the bug
Any yang model which has a leaf-list inside a grouping (thus referenced by a uses clause), or when the refine clause is specified with a uses is not properly recognized.
The most obvious way this can be seen is when trying to use a route map within bgp which will cause a yang validation failure due to it ignoring the leaf-list.
The sonic-yang-mgmt code needs to be refactored to fully support uses clause evaluation.
Steps to Reproduce
Having route maps in BGP NEIGHBORS will fail yang validation
"BGP_NEIGHBOR_AF": {
"default|192.168.1.1|ipv4_unicast": {
"route_map_in": [ "map1" ],
"route_map_out": [ "map1" ]
}
}
Actual Behavior and Expected Behavior
yang validation should succeed.
Relevant log output
Output of show version, show techsupport
Attach files (if any)
Implementation
Is it platform specific
generic
Importance or Severity
Critical
Description of the bug
Any yang model which has a leaf-list inside a grouping (thus referenced by a uses clause), or when the refine clause is specified with a uses is not properly recognized.
The most obvious way this can be seen is when trying to use a route map within bgp which will cause a yang validation failure due to it ignoring the leaf-list.
The sonic-yang-mgmt code needs to be refactored to fully support uses clause evaluation.
Steps to Reproduce
Having route maps in BGP NEIGHBORS will fail yang validation
Actual Behavior and Expected Behavior
yang validation should succeed.
Relevant log output
Output of
show version,show techsupportAttach files (if any)
Implementation