You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next hops in static routes are another example of IP addresses that cannot be prefixes and cannot take int or bool values. Looks like we have to differentiate between 'subnet_address' (which can be int or bool) and 'address' (which must be a string but without the prefix length).
I will try to change all current validation definitions to use 'subnet_address', and use 'address' for real IP addresses. This seems cleaner than inventing another 'really_an_address' keyword.
The text was updated successfully, but these errors were encountered:
We are using native python types (and libraries) behind the scenes, but we also have to do data structure validation, and because I didn't want to go full-YANG, I wrote my own validator.
That thing can validate (among other things) IPv4 and IPv6 addresses and prefixes, but you have to specify how you plan to use them -- prefixes can't have host bits, addresses can't have all-zero or all-one host bits. Then there's the option of having unnumbered interface addresses and specifying interface IP address as int (offset in subnet), whereas these same options are not valid for an IPv4/IPv6 address used as a next hop in a static route.
Next hops in static routes are another example of IP addresses that cannot be prefixes and cannot take int or bool values. Looks like we have to differentiate between 'subnet_address' (which can be int or bool) and 'address' (which must be a string but without the prefix length).
I will try to change all current validation definitions to use 'subnet_address', and use 'address' for real IP addresses. This seems cleaner than inventing another 'really_an_address' keyword.
The text was updated successfully, but these errors were encountered: