NETCONF Configuration Guide
YANG API Reference
mgmt-interface
9 min
asternos model for mgmt interface groups yang tree diagram yang tree diagram module asternos mgmt interface + rw mgmt interfaces + rw mgmt interface \[name] + rw name string + rw address \[ip prefix] \| + rw ip prefix inet\ ip prefix \| + rw gwaddr? inet\ ip address no zone + rw vrf enable? boolean rpcs + x show interface mgmt + w input \| + w vrf? string + ro output + ro data? \<anydata> resources resources resource list resource list path access /mgmt interfaces read write /mgmt interfaces/mgmt interface read write /mgmt interfaces/mgmt interface/name read write /mgmt interfaces/mgmt interface/address read write /mgmt interfaces/mgmt interface/address/ip prefix read write /mgmt interfaces/mgmt interface/address/gwaddr read write /mgmt interfaces/mgmt interface/vrf enable read write detailed nodes detailed nodes /mgmt interfaces /mgmt interfaces path /mgmt interfaces node type container description the mgmt interfaces struct containing all attributes of mgmt interfaces data set access read write /mgmt interfaces/mgmt interface /mgmt interfaces/mgmt interface path /mgmt interfaces/mgmt interface node type list access read write /mgmt interfaces/mgmt interface/name /mgmt interfaces/mgmt interface/name path /mgmt interfaces/mgmt interface/name node type leaf access read write data type \<yang type string> /mgmt interfaces/mgmt interface/address /mgmt interfaces/mgmt interface/address path /mgmt interfaces/mgmt interface/address node type list description the type of ip prefix must be same as the type of gw access read write /mgmt interfaces/mgmt interface/address/ip prefix /mgmt interfaces/mgmt interface/address/ip prefix path /mgmt interfaces/mgmt interface/address/ip prefix node type leaf access read write data type \<yang type ip prefix> constraints multiple constraints must condition (contains(current(), ' ') and contains( /gwaddr, ' ')) or (contains(current(), ' ') and contains( /gwaddr, ' ')) the ipv6 prefix type represents an ipv6 prefix the prefix length is given by the number following the slash character and must be less than or equal to 128 a prefix length value of n corresponds to an ip address mask that has n contiguous 1 bits from the most significant bit (msb) and all other bits set to 0 the canonical format of an ipv6 prefix has all bits of the ipv6 address set to zero that are not part of the ipv6 prefix furthermore, the ipv6 address is represented as defined in section 4 of rfc 5952 the definition of ipv6 prefix does not require that bits, which are not part of the prefix, are set to zero however, implementations have to return values in canonical format, which requires non prefix bits to be set to zero this means that 2001\ db8 1/64 must be accepted as a valid value but it will be converted into the canonical format 2001\ db8 /64 the ipv4 prefix type represents an ipv4 prefix the prefix length is given by the number following the slash character and must be less than or equal to 32 a prefix length value of n corresponds to an ip address mask that has n contiguous 1 bits from the most significant bit (msb) and all other bits set to 0 the canonical format of an ipv4 prefix has all bits of the ipv4 address set to zero that are not part of the ipv4 prefix the definition of ipv4 prefix does not require that bits, which are not part of the prefix, are set to zero however, implementations have to return values in canonical format, which requires non prefix bits to be set to zero this means that 192 0 2 1/24 must be accepted as a valid value but it will be converted into the canonical format 192 0 2 0/24 /mgmt interfaces/mgmt interface/address/gwaddr /mgmt interfaces/mgmt interface/address/gwaddr path /mgmt interfaces/mgmt interface/address/gwaddr node type leaf access read write data type \<yang type ip address no zone> constraints multiple constraints an ipv6 address without a zone index this type, derived from the type ipv6 address, may be used in situations where the zone is known from the context and no zone index is needed must condition (contains(current(), ' ') and contains( /ip prefix, ' ')) or (contains(current(), ' ') and contains( /ip prefix, ' ')) an ipv4 address without a zone index this type, derived from the type ipv4 address, may be used in situations where the zone is known from the context and no zone index is needed /mgmt interfaces/mgmt interface/vrf enable /mgmt interfaces/mgmt interface/vrf enable path /mgmt interfaces/mgmt interface/vrf enable node type leaf access read write data type \<yang type boolean> constraints valid in \[true, false]
