Skip to content
Ask AI

dhcp-relay

AsterNOS YANG Model for dhcp relay.

module: asternos-dhcp-relay
+--rw dhcp-relay
+--rw dhcp-relay-agent* [name ip-type]
| +--rw name string
| +--rw ip-type enumeration
| +--rw downlink-interfaces* cmn:vlan-name
| +--rw uplink-interfaces* union
| +--rw loopback-interface? cmn:loopback-interface-name
| +--rw option82-disabled? boolean
| +--rw server-ips* inet:ip-address-no-zone
| +--rw source-ip? inet:ipv4-address-no-zone
+--rw interfaces* [name]
+--rw name cmn:vlan-name
+--rw option82-remote-id? string
+--rw dhcp-agent-ip? inet:ipv4-address-no-zone
PathAccess
/dhcp-relayRead-Write
/dhcp-relay/dhcp-relay-agentRead-Write
/dhcp-relay/dhcp-relay-agent/nameRead-Write
/dhcp-relay/dhcp-relay-agent/ip-typeRead-Write
/dhcp-relay/dhcp-relay-agent/downlink-interfacesRead-Write
/dhcp-relay/dhcp-relay-agent/uplink-interfacesRead-Write
/dhcp-relay/dhcp-relay-agent/loopback-interfaceRead-Write
/dhcp-relay/dhcp-relay-agent/option82-disabledRead-Write
/dhcp-relay/dhcp-relay-agent/server-ipsRead-Write
/dhcp-relay/dhcp-relay-agent/source-ipRead-Write
/dhcp-relay/interfacesRead-Write
/dhcp-relay/interfaces/nameRead-Write
/dhcp-relay/interfaces/option82-remote-idRead-Write
/dhcp-relay/interfaces/dhcp-agent-ipRead-Write

Path

/dhcp-relay

Node Type

container

Description

DHCP relay.

Access

Read-Write

Path

/dhcp-relay/dhcp-relay-agent

Node Type

list

Description

The list of dhcp relay agent.

Access

Read-Write

Path

/dhcp-relay/dhcp-relay-agent/name

Node Type

leaf

Description

DHCP relay name.

Access

Read-Write

Data Type

<YANG type string>

Path

/dhcp-relay/dhcp-relay-agent/ip-type

Node Type

leaf

Description

DHCP relay IP family type.

Access

Read-Write

Data Type

<YANG type enumeration>

Constraints

Enumeration with options:

  • v4
  • v6
Section titled “/dhcp-relay/dhcp-relay-agent/downlink-interfaces”

Path

/dhcp-relay/dhcp-relay-agent/downlink-interfaces

Node Type

leaf-list

Description

Downlink vlan interface

Access

Read-Write

Data Type

<YANG type vlan-name>

Section titled “/dhcp-relay/dhcp-relay-agent/uplink-interfaces”

Path

/dhcp-relay/dhcp-relay-agent/uplink-interfaces

Node Type

leaf-list

Description

Uplink interface

Access

Read-Write

Data Type

<YANG type union>

/dhcp-relay/dhcp-relay-agent/loopback-interface

Section titled “/dhcp-relay/dhcp-relay-agent/loopback-interface”

Path

/dhcp-relay/dhcp-relay-agent/loopback-interface

Node Type

leaf

Description

Set loopback interface as DHCP relay gateway.

Access

Read-Write

Data Type

<YANG type loopback-interface-name>

Constraints

When condition: ../ip-type = ‘v4’

/dhcp-relay/dhcp-relay-agent/option82-disabled

Section titled “/dhcp-relay/dhcp-relay-agent/option82-disabled”

Path

/dhcp-relay/dhcp-relay-agent/option82-disabled

Node Type

leaf

Description

Set DHCP Option82 enabled or disabled.

Access

Read-Write

Data Type

<YANG type boolean>

Constraints

Multiple constraints:

  • Valid in [true, false]
  • When condition: ../ip-type = ‘v4’

Path

/dhcp-relay/dhcp-relay-agent/server-ips

Node Type

leaf-list

Description

The IP address of DHCP server.

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

Path

/dhcp-relay/dhcp-relay-agent/source-ip

Node Type

leaf

Description

The IP address of DHCP relay agent.

Access

Read-Write

Data Type

<YANG type ipv4-address-no-zone>

Constraints

Multiple constraints:

  • When condition: ../ip-type = ‘v4’
  • 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.

Path

/dhcp-relay/interfaces

Node Type

list

Description

List of Vlan interfaces configuration to the DHCP relay agent

Access

Read-Write

Path

/dhcp-relay/interfaces/name

Node Type

leaf

Description

The VLAN interface name

Access

Read-Write

Data Type

<YANG type vlan-name>

Path

/dhcp-relay/interfaces/option82-remote-id

Node Type

leaf

Description

The remote-id value of DHCP Option82 for DHCP relay agent.

Access

Read-Write

Data Type

<YANG type string>

Path

/dhcp-relay/interfaces/dhcp-agent-ip

Node Type

leaf

Description

The IP address of DHCP relay agent.

Access

Read-Write

Data Type

<YANG type ipv4-address-no-zone>

Constraints

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.