Arptohost-Netconf
此内容尚不支持你的语言。
Arptohost
Section titled “Arptohost”Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /arptohost/default-vlan-policy | Y | merge, replace, create, delete | — |
| /arptohost/globals/{vrf-name} | Y | merge, replace, create, delete | — |
| arptohost/ | Y | merge, replace, create, delete | — |
| arptohost/default-network-policies/{vrf-name} | Y | merge, replace, create, delete | — |
| arptohost/network-policies/{vrf-name}/{ip-prefix} | Y | merge, replace, create, delete | — |
| arptohost/vlan-policies/{vlan-name} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”This chapter provides examples on how to use Netconf to manage arptohost configurations on AsterNOS devices.
Get All arptohost Entry
Section titled “Get All arptohost Entry”Request example to get all arptohost Entry via get-config with subtree filter.
<filter type="subtree"> <top> <arptohost/> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:e412b4c9-8964-4f1c-a8c8-5c951a9e1692"> <data> <top> <arptohost xmlns="http://asterfusion.com/ns/yang/asternos-arptohost"> <globals> <global> <vrf-name>Vrf_netconf</vrf-name> <enabled>false</enabled> <metric>5200</metric> </global> <global> <vrf-name>default</vrf-name> <enabled>true</enabled> <metric>5200</metric> </global> </globals> <default-vlan-policy/> <default-network-policies> <default-network-policy> <vrf-name>Vrf_netconf</vrf-name> </default-network-policy> </default-network-policies> <vlan-policies> <vlan-policy> <vlan-name>Vlan20</vlan-name> <action>permit</action> </vlan-policy> </vlan-policies> </arptohost> </top> </data> </rpc-reply>Set arptohost Configurations
Section titled “Set arptohost Configurations”Request example to set arptohost configuration via rpc.
<config> <top> <arptohost> <vlan-policies operation="merge"> <vlan-policy> <vlan-name>Vlan20</vlan-name> <action>pass</action> </vlan-policy> </vlan-policies> <globals operation="merge"> <global> <vrf-name>Vrf_netconf</vrf-name> <enabled>True</enabled> <metric>5200</metric> </global> </globals> <default-vlan-policy> <action>permit</action> </default-vlan-policy> <default-network-policies> <default-network-policy> <vrf-name>Vrf_netconf</vrf-name> <action>deny</action> </default-network-policy> </default-network-policies> <network-policies operation="merge"> <network-policy> <vrf-name>Vrf_network</vrf-name> <ip-prefix>192.168.3.1/32</ip-prefix> <action>permit</action> </network-policy> <network-policy> <vrf-name>Vrf_network</vrf-name> <ip-prefix>192.168.2.1/32</ip-prefix> <action>permit</action> </network-policy> </network-policies> </arptohost> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a0bac3df-f336-40bb-a9ac-1cce4e390a67"> <ok/></rpc-reply>Delete arptohost Configuration
Section titled “Delete arptohost Configuration”Request example to delete arptohost configurations via edit-config.
<config> <top> <arptohost> <vlan-policies> <vlan-policy operation="delete"> <vlan-name>Vlan20</vlan-name> </vlan-policy> </vlan-policies> <globals> <global operation="delete"> <vrf-name>Vrf_netconf</vrf-name> </global> </globals> <default-vlan-policy operation="delete"/> <default-network-policies> <default-network-policy operation="delete"> <vrf-name>Vrf_netconf</vrf-name> </default-network-policy> </default-network-policies> <network-policies> <network-policy operation="delete"> <vrf-name>Vrf_network</vrf-name> <ip-prefix>192.168.3.1/32</ip-prefix> </network-policy> <network-policy operation="delete"> <vrf-name>Vrf_network</vrf-name> <ip-prefix>192.168.2.1/32</ip-prefix> </network-policy> </network-policies> </arptohost> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d23c7876-4572-4588-afb9-a4549f0189f3"> <ok/></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Default Vlan Policy
Section titled “Default Vlan Policy”Tree Diagram
module: asternos-arptohost +--rw arptohost +--rw default-vlan-policy +--rw action vlan-actionTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| default-vlan-policy | M | Path-only node, has no configurable value. | |
| action | M | ”permit" "deny" "pass” | Set action for default vlan policy, default deny |
Globals
Section titled “Globals”Tree Diagram
module: asternos-arptohost +--rw arptohost +--rw globals +--rw global* [vrf-name] +--rw vrf-name vrf:vrf-ref +--rw enabled? boolean +--rw metric? uint32Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| globals | M | Path-only node, has no configurable value. | |
| global | M | Path-only node, has no configurable value. List of arptohost based on vrf | |
| vrf-name | O | vrf:vrf-ref | VRF name |
| enabled | O | ”true" "false” | Enable/Disable arp-to-host Default value: False |
| metric | O | 1..4294967295 | Set metric for arptohost route, default 5200 Default value: 5200 |
Arptohost
Section titled “Arptohost”Tree Diagram
module: asternos-arptohost +--rw arptohostTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| arptohost | M | Path-only node, has no configurable value. | |
| globals | M | Path-only node, has no configurable value. | |
| global | M | Path-only node, has no configurable value. List of arptohost based on vrf | |
| vrf-name | O | vrf:vrf-ref | VRF name |
| enabled | O | ”true" "false” | Enable/Disable arp-to-host Default value: False |
| metric | O | 1..4294967295 | Set metric for arptohost route, default 5200 Default value: 5200 |
| default-vlan-policy | M | Path-only node, has no configurable value. | |
| action | M | ”permit" "deny" "pass” | Set action for default vlan policy, default deny |
| default-network-policies | M | Path-only node, has no configurable value. | |
| default-network-policy | M | Path-only node, has no configurable value. List of default network policy that bind with vrf | |
| vrf-name | O | vrf:vrf-ref | VRF name |
| action | M | ”permit" "deny” | Set action for default network policy, default deny |
| network-policies | M | Path-only node, has no configurable value. | |
| network-policy | M | Path-only node, has no configurable value. List of network policy that bind with vrf and ip prefix | |
| ip-prefix | O | inet:ip-prefix | IP prefix for network policy |
| vrf-name | O | vrf:vrf-ref | VRF name |
| action | M | ”permit" "deny” | Set action for network policy, default deny |
| vlan-policies | M | Path-only node, has no configurable value. | |
| vlan-policy | M | Path-only node, has no configurable value. List of vlan policy. | |
| vlan-name | O | cmn:vlan-name | The name of the vlan. |
| action | M | ”permit" "deny" "pass” | Set action for vlan policy, default deny |
Default Network Policies
Section titled “Default Network Policies”Tree Diagram
module: asternos-arptohost +--rw arptohost +--rw default-network-policies +--rw default-network-policy* [vrf-name] +--rw vrf-name vrf:vrf-ref +--rw action network-actionTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| default-network-policies | M | Path-only node, has no configurable value. | |
| default-network-policy | M | Path-only node, has no configurable value. List of default network policy that bind with vrf | |
| vrf-name | O | vrf:vrf-ref | VRF name |
| action | M | ”permit" "deny” | Set action for default network policy, default deny |
Network Policies
Section titled “Network Policies”Tree Diagram
module: asternos-arptohost +--rw arptohost +--rw network-policies +--rw network-policy* [vrf-name ip-prefix] +--rw ip-prefix inet:ip-prefix +--rw vrf-name vrf:vrf-ref +--rw action network-actionTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| network-policies | M | Path-only node, has no configurable value. | |
| network-policy | M | Path-only node, has no configurable value. List of network policy that bind with vrf and ip prefix | |
| ip-prefix | O | inet:ip-prefix | IP prefix for network policy |
| vrf-name | O | vrf:vrf-ref | VRF name |
| action | M | ”permit" "deny” | Set action for network policy, default deny |
Vlan Policies
Section titled “Vlan Policies”Tree Diagram
module: asternos-arptohost +--rw arptohost +--rw vlan-policies +--rw vlan-policy* [vlan-name] +--rw vlan-name cmn:vlan-name +--rw action vlan-actionTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| vlan-policies | M | Path-only node, has no configurable value. | |
| vlan-policy | M | Path-only node, has no configurable value. List of vlan policy. | |
| vlan-name | O | cmn:vlan-name | The name of the vlan. |
| action | M | ”permit" "deny" "pass” | Set action for vlan policy, default deny |