Hello,
I am getting an "Invalid value" error while trying to fetch the openconfig-interfaces state information from a NCS55xx box running 6.3.3.
I see that the box is sending "ACTIVE" in "STATUS" element for an IPv6 address on the Loopback interface which is invalid according to the openconfig-if-ip.yang model.
Invalid value "active" in "status" element. Path: /openconfig-interfaces:interfaces/interface[name='Loopback0']/subinterfaces/subinterface[index='0']/openconfig-if-ip:ipv6/addresses/address[ip='2a02:c78::53']/state/status
Snippet from the openconfig-if-ip model
grouping ipv6-address-state {
description
"Per-address operational state data for IPv6 interfaces";
leaf origin {
type ip-address-origin;
description
"The origin of this address, e.g., static, dhcp, etc.";
}
leaf status {
type enumeration {
enum PREFERRED {
description
"This is a valid address that can appear as the
destination or source address of a packet.";
}
enum DEPRECATED {
description
"This is a valid but deprecated address that should
no longer be used as a source address in new
communications, but packets addressed to such an
address are processed as expected.";
}
enum INVALID {
description
"This isn't a valid address, and it shouldn't appear
as the destination or source address of a packet.";
}
enum INACCESSIBLE {
description
"The address is not accessible because the interface
to which this address is assigned is not
operational.";
}
enum UNKNOWN {
description
"The status cannot be determined for some reason.";
}
enum TENTATIVE {
description
"The uniqueness of the address on the link is being
verified. Addresses in this state should not be
used for general communication and should only be
used to determine the uniqueness of the address.";
}
enum DUPLICATE {
description
"The address has been determined to be non-unique on
the link and so must not be used.";
}
enum OPTIMISTIC {
description
"The address is available for use, subject to
restrictions, while its uniqueness on a link is
being verified.";
}
}
description
"The status of an address. Most of the states correspond
to states from the IPv6 Stateless Address
Autoconfiguration protocol.";
reference
"RFC 4293: Management Information Base for the
Internet Protocol (IP)
- IpAddressStatusTC
RFC 4862: IPv6 Stateless Address Autoconfiguration";
}
}
I am pretty sure that ydk-py validation is working fine but the box is sending incorrect information