跳转到内容
Ask AI

SAVI

此内容尚不支持你的语言。

This chapter provides examples on how to use Netconf to manage SAVI configurations on AsterNOS devices.

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>

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>

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>