Closed pheller closed 3 years ago
In reviewing the structure here (uses / grouping, when), I wonder if this might be the same as described in https://github.com/clicon/clixon/issues/218.
Confirmed, that ipv6-unicast clause should not exist when address is IPV4_UNICAST. Problem is, default values are generated without considering WHEN statement. More closely I see that WHEN statements are only considered when child to augment and uses, not when (as is the case here) for containers.
Fix appears to work as intended. Thanks!
Hello,
I have loaded the OpenConfig BGP model into Clixon and it works mostly fine.
However, while working on adding in a backend statedata callback, I noticed that when a particular
afi-safi
is configured, all specific family details are shown even though there is awhen
within each family-specific container.It then occurred to me that I may not have added all the necessary configuration to satisfy the
when
.Here's a good example of what I add, the odd validation failure, and what I see in the config:
An excerpt from the candidate configuration showing that it's picking up defaults from every address family:
And, from the yang model, you can see that these different address families should be conditioned on the afi-safi-name matching: (from
public/release/models/bgp/openconfig-bgp-common-multiprotocol.yang
)Let me know if I can provide any more data that might be helpful.