This section describes how to configure an IP VPN using the rpc method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-l3vpn:vpn-instances/vpn-instance/description /huawei-l3vpn:vpn-interfaces/vpn-interface/vpn-instance-name /huawei-l3vpn:vpn-instances/vpn-instance/vpn-instance-name |
Item |
Data |
Description |
---|---|---|
Description |
description |
Configure the IP VPN description. |
VPN instance name |
vpn-instance-name |
Configure a VPN instance name. |
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="13" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-l3vpn:vpn-instances xmlns:hw-l3vpn="urn:huawei:params:xml:ns:yang:huawei-l3vpn"> <hw-l3vpn:vpn-instance> <hw-l3vpn:vpn-instance-name>vpna</hw-l3vpn:vpn-instance-name> </hw-l3vpn:vpn-instance> </hw-l3vpn:vpn-instances> <hw-l3vpn:vpn-interfaces xmlns:hw-l3vpn="urn:huawei:params:xml:ns:yang:huawei-l3vpn"> <hw-l3vpn:vpn-interface> <hw-l3vpn:name>Vlanif123</hw-l3vpn:name> <hw-l3vpn:vpn-instance-name>vpna</hw-l3vpn:vpn-instance-name> </hw-l3vpn:vpn-interface> </hw-l3vpn:vpn-interfaces> </config> </edit-config> </rpc>
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="13"> <ok/> </rpc-reply>
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="14"> <rpc-error> <error-app-tag>1</error-app-tag> <error-message>Service process failed.</error-message> <error-info>Error on node /huawei-l3vpn:vpn-instances/vpn-instance[vpn-instance-name="vpna"]/description</error-info> </rpc-error> </rpc-reply>