SAVI-Netconf
此内容尚不支持你的语言。
Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /savi | Y | merge, replace, create, delete | — |
| /savi/interfaces/{name} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”This chapter provides examples on how to use Netconf to manage SAVI configurations on AsterNOS devices.
Get Current SAVI Configurations
Section titled “Get Current SAVI Configurations”Request example to get all SAVI configurations via get-config with subtree filter.
<filter type="subtree"> <top> <savi/> </top></filter>Response example
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <savi> <interfaces> <interface> <name>Ethernet1</name> <enable>true</enable> </interface> <interface> <name>Vlan100</name> <enable>true</enable> </interface> </interfaces> </savi> </top></data>Set SAVI Configuration of Interface
Section titled “Set SAVI Configuration of Interface”The trust interface of SAVI is included in IPSG v6 and does’t require separate configuration.
Request example to set SAVI configuration of interface to enabled via edit-config.
<config> <top> <savi> <interfaces> <interface> <name>Ethernet1</name> <enable>true</enable> </interface> <interface> <name>Vlan100</name> <enable>true</enable> </interface> </interfaces> </savi> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:bb24faf4-2dba-4801-bff1-1442572b985f"> <ok/></rpc-reply>Delete SAVI Configuration
Section titled “Delete SAVI Configuration”Request example to delete SAVI configuration of interface via edit-config.
<config> <top> <savi> <interfaces> <interface operation="delete"> <name>Ethernet1</name> </interface> </interfaces> </savi> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c601d610-7f2c-4230-96f1-d0f57506b05a"> <ok/></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Container for SAVI configurations
Section titled “Container for SAVI configurations”Tree Diagram
module: asternos-savi +--rw savi +--rw interfaces +--rw interface* [name] +--rw name union +--rw enable? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| savi | M | Path-only node, has no configurable value. Container for SAVI configurations. | |
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. | |
| name | O | Ethernet name | Name of the interface. |
| enable | O | ”true" "false” | Enable or disable the configuration for interface. |
Interfaces
Section titled “Interfaces”Tree Diagram
module: asternos-savi +--rw savi +--rw interfaces +--rw interface* [name] +--rw name union +--rw enable? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| interfaces | M | Path-only node, has no configurable value. | |
| interface | M | Path-only node, has no configurable value. | |
| name | O | Ethernet name | Name of the interface. |
| enable | O | ”true" "false” | Enable or disable the configuration for interface. |