IP VPN Management
This section describes the configuration model of IP VPN management and provides examples of XML packets.
Data Model
The file name of the IP VPN configuration model is huawei-l3vpn.yang.
Object |
Description |
Value Range | Remarks |
---|---|---|---|
/huawei-l3vpn:vpn-instances/vpn-instance/vpn-instance-name/vpn-instance-name |
VPN instance name |
The value is a string of 1 to 31 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces. |
NA |
/huawei-l3vpn:vpn-interfaces/vpn-interface/name |
Name of the interface to which the VPN instance is bound |
- |
NA |
/huawei-l3vpn:vpn-interfaces/vpn-interface/vpn-instance-name/vpn-instance-name |
VPN instance name |
The value is a string of 1 to 31 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces. |
NA |
Configure an IP VPN
This section describes how to configure an IP VPN using the rpc method.
Operation |
XPATH |
---|---|
edit-config:merge |
|
Data requirement
Item |
Data |
Description |
---|---|---|
VPN instance name |
vpna |
Configure a VPN instance name. |
Name of the interface to which the VPN instance is bound |
Vlanif123 |
Configure an interface to be bound to a VPN instance. |
VPN instance name |
vpna |
Configure the name of the VPN instance bound to an interface. |
Request example
<?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>
Response example
<?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>