---
title: mgmt-interface
slug: enterprise-v6p1/mgmt-interface
createdAt: 2025-12-17T08:18:12.519Z
---

AsterNOS Model for mgmt interface groups

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
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>
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **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 |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/mgmt-interfaces</font>

**Path**

/mgmt-interfaces

**Node Type**

container

**Description**

The mgmt-interfaces struct containing all attributes of mgmt-interfaces data set.

**Access**

Read-Write

### <font color="#1d50a2">/mgmt-interfaces/mgmt-interface</font>

**Path**

/mgmt-interfaces/mgmt-interface

**Node Type**

list

**Access**

Read-Write

### <font color="#1d50a2">/mgmt-interfaces/mgmt-interface/name</font>

**Path**

/mgmt-interfaces/mgmt-interface/name

**Node Type**

leaf

**Access**

Read-Write

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/mgmt-interfaces/mgmt-interface/address</font>

**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

### <font color="#1d50a2">/mgmt-interfaces/mgmt-interface/address/ip-prefix</font>

**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.

### <font color="#1d50a2">/mgmt-interfaces/mgmt-interface/address/gwaddr</font>

**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.

### <font color="#1d50a2">/mgmt-interfaces/mgmt-interface/vrf-enable</font>

**Path**

/mgmt-interfaces/mgmt-interface/vrf-enable

**Node Type**

leaf

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

