No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S600-E V200R012C00 NETCONF YANG API Reference

This document describes the NETCONF YANG API functions supported by the switch, including the data model and samples.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
IP VPN Management

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.

Table 2-207  IP VPN management

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.

Table 2-208  Configure an IP VPN

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

Data requirement

Item

Data

Description

Description

description

Configure the IP VPN description.

VPN instance name

vpn-instance-name

Configure a VPN instance name.

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
Sample of successful response
<?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>
Sample of failed response
<?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>
Translation
Download
Updated: 2018-09-01

Document ID: EDOC1100037962

Views: 6264

Downloads: 8

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next