mgmt-interface
AsterNOS Model for mgmt interface groups
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
Section titled “Resources”Resource List
Section titled “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
Section titled “Detailed Nodes”/mgmt-interfaces
Section titled “/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
Section titled “/mgmt-interfaces/mgmt-interface”Path
/mgmt-interfaces/mgmt-interface
Node Type
list
Access
Read-Write
/mgmt-interfaces/mgmt-interface/name
Section titled “/mgmt-interfaces/mgmt-interface/name”Path
/mgmt-interfaces/mgmt-interface/name
Node Type
leaf
Access
Read-Write
Data Type
/mgmt-interfaces/mgmt-interface/address
Section titled “/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
Section titled “/mgmt-interfaces/mgmt-interface/address/ip-prefix”Path
/mgmt-interfaces/mgmt-interface/address/ip-prefix
Node Type
leaf
Access
Read-Write
Data Type
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
Section titled “/mgmt-interfaces/mgmt-interface/address/gwaddr”Path
/mgmt-interfaces/mgmt-interface/address/gwaddr
Node Type
leaf
Access
Read-Write
Data Type
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
Section titled “/mgmt-interfaces/mgmt-interface/vrf-enable”Path
/mgmt-interfaces/mgmt-interface/vrf-enable
Node Type
leaf
Access
Read-Write
Data Type
Constraints
Valid in [true, false]