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

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
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).
Auto VPN

Auto VPN

NOTE:

V300R003C10 and later versions support this function.

TNP

Data model

The data model file matching TNP is huawei-transport-network-point.yang.

Table 3-1105 Data model of TNP

Object

Description

/huawei-transport-network-point:transport-network-point/local-site/index

Indicates the TNP site ID. The value is an integer that ranges from 1 to 2048.

/huawei-transport-network-point:transport-network-point/local-site/management-address

Indicates the management IP address of a TNP site. The value is in dotted decimal notation.

/huawei-transport-network-point:transport-network-point/local-site/membership

Indicates the TNP site type. The value is single or dual.

  • single: Indicates a single gateway.
  • dual: Indicates dual gateways.

/huawei-transport-network-point:transport-network-point/local-site/site-attributes/site-type

Indicates the TNP site role. The value is rr, cpe, or cpe-rr.
  • rr: Indicates a route reflector (RR).
  • cpe: Indicates a terminal device.
  • cpe-rr: Indicates both an RR and a terminal device.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/interface-name

Indicates the TNP interface name.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/transport-network-point-id

Indicates the TNP interface ID. The value is an integer that ranges from 1 to 4294967295.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/ipsec-p2mp-sa

Indicates the P2MPSA name for TNP authentication.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/weight

Indicates the TNP weight. The value is an integer that ranges from 1 to 255.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/transport-network/name

Indicates the TNP transmission network name. The value is a string of 1 to 31 case-sensitive characters without spaces.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/transport-network/id

Indicates the TNP transmission network ID. The value is an integer that ranges from 1 to 65535.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/routing-domain/name

Indicates the TNP route selection domain name. The value is a string of 1 to 31 case-sensitive characters without spaces.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/routing-domain/id

Indicates the TNP route selection domain ID. The value is an integer that ranges from 1 to 65535.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/input-bandwidth

Indicates the inbound bandwidth of an interface. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/output-bandwidth

Indicates the outbound bandwidth of an interface. The value is an integer that ranges from 0 to 4294967295, in kbit/s.

Configuring TNP information of a site
Configuring TNP information of a site

This section provides a sample of configuring TNP information of a site.

Table 3-1106 Configuring TNP information of a site

Operation

XPATH

edit-config:default

/huawei-transport-network-point:transport-network-point/local-site

Data Requirements
Table 3-1107 Configuring TNP information of a site

Item

Data

Description

TNP ID

128

Set the TNP ID to 128, management IP address of the TNP to 1.1.1.4, TNP type to dual, and TNP role to cpe.

Management IP address of a TNP

1.1.1.4

TNP type

dual

TNP role

cpe

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <ipsec-vpn xmlns="urn:huawei:params:xml:ns:yang:huawei-ipsec">
    <ipsec-p2mp-sas xmlns="urn:huawei:yang:huawei-ipsec-p2mp-sa">
     <ipsec-p2mp-sa>
      <name>ipsecname</name>
     </ipsec-p2mp-sa>
    </ipsec-p2mp-sas>
   </ipsec-vpn>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point">
    <local-site>
     <index>128</index>
     <management-address>1.1.1.4</management-address>
     <membership>dual</membership>
     <site-attributes>
      <site-type>cpe</site-type>
     </site-attributes>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
  <ok/> 
</rpc-reply> 
Deleting TNP information of a site

This section provides a sample of deleting TNP information of a site.

Table 3-1108 Deleting TNP information about a site

Operation

XPATH

edit-config:remove

/huawei-transport-network-point:transport-network-point/local-site

Data Requirements
Table 3-1109 Deleting TNP information about a site

Item

Data

Description

TNP ID

128

Delete the ID, management IP address, type, and role of a TNP.

Management IP address of a TNP

1.1.1.4

TNP type

dual

TNP role

cpe

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <ipsec-vpn xmlns="urn:huawei:params:xml:ns:yang:huawei-ipsec">
    <ipsec-p2mp-sas xmlns="urn:huawei:yang:huawei-ipsec-p2mp-sa">
     <ipsec-p2mp-sa>
      <name>ipsecname</name>
     </ipsec-p2mp-sa>
    </ipsec-p2mp-sas>
   </ipsec-vpn>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point">
    <local-site xc:operation="remove">
     <index>128</index>
     <management-address>1.1.1.4</management-address>
     <membership>dual</membership>
     <site-attributes>
      <site-type>cpe</site-type>
     </site-attributes>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
  <ok/> 
</rpc-reply> 
Configuring TNP information of an interface
Configuring TNP information of an interface

This section provides a sample of configuring TNP information of an interface.

Table 3-1110 Configuring TNP information of an interface

Operation

XPATH

edit-config:default

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface

Data Requirements
Table 3-1111 Configuring TNP information of an interface

Item

Data

Description

Interface name

GigabitEthernet0/0/4

Set the interface GigabitEthernet0/0/4 of a TNP ID to 125, transmission network name to abcd, transmission network ID to 13, TNP route selection domain name to abcd, route selection domain ID to 124, SA name for TNP authentication to ipsecname, and TNP weight to 12.

NOTE:

On both ends of a communication connection, the IPSec enabling status of all the TNP in the same routing domain must be the same. Otherwise, traffic encryption may fail to be controlled.

TNP ID

125

TNP transmission network name

abcd

TNP transmission network ID

13

TNP route selection domain name

abcd

TNP route selection domain ID

124

SA name for TNP authentication

ipsecname

TNP weight

12

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>GigabitEthernet0/0/4</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:tunnel</type>
    </interface>
   </interfaces>
   <ipsec-vpn xmlns="urn:huawei:params:xml:ns:yang:huawei-ipsec">
    <ipsec-p2mp-sas xmlns="urn:huawei:yang:huawei-ipsec-p2mp-sa">
     <ipsec-p2mp-sa>
      <name>ipsecname</name>
     </ipsec-p2mp-sa>
    </ipsec-p2mp-sas>
   </ipsec-vpn>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point">
    <local-site>
     <index>128</index>
     <management-address>1.1.1.4</management-address>
     <membership>dual</membership>
     <site-attributes>
      <site-type>cpe</site-type>
     </site-attributes>
     <interfaces>
      <interface>
       <interface-name>GigabitEthernet0/0/4</interface-name>
       <transport-network-point-id>125</transport-network-point-id>
       <transport-network>
        <name>abdc</name>
        <id>13</id>
       </transport-network>
       <routing-domain>
        <name>abdc</name>
        <id>124</id>
       </routing-domain>
       <ipsec-p2mp-sa>ipsecname</ipsec-p2mp-sa>
       <weight>12</weight>
      </interface>
     </interfaces>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
  <ok/> 
</rpc-reply> 
Deleting TNP information of an interface

This section provides a sample of deleting TNP information of an interface.

Table 3-1112 Deleting TNP information of an interface

Operation

XPATH

edit-config:remove

/huawei-transport-network-point:transport-network-point/local-site/interfaces/interface

Data Requirements
Table 3-1113 Deleting TNP information of an interface

Item

Data

Description

Interface name

GigabitEthernet0/0/4

Delete the interface name, TNP interface ID, transmission network name, transmission network ID, route selection domain name, route selection domain ID, SA name for authentication, and TNP weight of a site.

NOTE:

On both ends of a communication connection, the IPSec enabling status of all the TNP in the same routing domain must be the same. Otherwise, traffic encryption may fail to be controlled.

TNP ID

125

TNP transmission network name

abcd

TNP transmission network ID

13

TNP route selection domain name

abcd

TNP route selection domain ID

124

SA name for TNP authentication

ipsecname

TNP weight

12

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
     <name>GigabitEthernet0/0/4</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:tunnel</type>
    </interface>
   </interfaces>
   <ipsec-vpn xmlns="urn:huawei:params:xml:ns:yang:huawei-ipsec">
    <ipsec-p2mp-sas xmlns="urn:huawei:yang:huawei-ipsec-p2mp-sa">
     <ipsec-p2mp-sa>
      <name>ipsecname</name>
     </ipsec-p2mp-sa>
    </ipsec-p2mp-sas>
   </ipsec-vpn>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point">
    <local-site>
     <index>128</index>
     <management-address>1.1.1.4</management-address>
     <membership>dual</membership>
     <site-attributes>
      <site-type>cpe</site-type>
     </site-attributes>
     <interfaces>
      <interface xc:operation="remove">
       <interface-name>GigabitEthernet0/0/4</interface-name>
       <transport-network-point-id>125</transport-network-point-id>
       <transport-network>
        <name>abdc</name>
        <id>13</id>
       </transport-network>
       <routing-domain>
        <name>abdc</name>
        <id>124</id>
       </routing-domain>
       <ipsec-p2mp-sa>ipsecname</ipsec-p2mp-sa>
       <weight>12</weight>
      </interface>
     </interfaces>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1">
  <ok/> 
</rpc-reply> 
Configuring the Inbound Bandwidth of an Interface

Configuring the Inbound Bandwidth of an Interface

This section provides a sample of configuring the inbound bandwidth of an interface.

Table 3-1114 Configuring the inbound bandwidth of an interface

Operation

XPATH

edit-config:merge

huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/input-bandwidth

Data Requirements
Table 3-1115 Configuring the inbound bandwidth of an interface

Item

Data

Description

Inbound bandwidth of an interface

10000kbit/s

Set the inbound bandwidth of an interface to 10000 kbit/s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point" xc:operation="replace">
    <local-site>
     <interfaces>
      <interface>
       <interface-name>Gigabitethernet0/0/0</interface-name>
       <input-bandwidth xc:operation="merge">10000</input-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Inbound Bandwidth of an Interface

This section provides a sample of deleting the inbound bandwidth of an interface.

Table 3-1116 Deleting the inbound bandwidth of an interface

Operation

XPATH

edit-config:remove

huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/input-bandwidth

Data Requirements
Table 3-1117 Deleting the inbound bandwidth of an interface

Item

Data

Description

Inbound bandwidth of an interface

10000kbit/s

Delete the inbound bandwidth of an interface.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point" xc:operation="replace">
    <local-site>
     <interfaces>
      <interface>
       <interface-name>Gigabitethernet0/0/0</interface-name>
       <input-bandwidth xc:operation="remove">10000</input-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Configuring the Outbound Bandwidth of an Interface

Configuring the Outbound Bandwidth of an Interface

This section provides a sample of configuring the outbound bandwidth of an interface.

Table 3-1118 Configuring the outbound bandwidth of an interface

Operation

XPATH

edit-config:merge

huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/output-bandwidth

Data Requirements
Table 3-1119 Configuring the outbound bandwidth of an interface

Item

Data

Description

Outbound bandwidth of an interface

10000kbit/s

Set the outbound bandwidth of an interface to 10000 kbit/s.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point" xc:operation="replace">
    <local-site>
     <interfaces>
      <interface>
       <interface-name>Gigabitethernet0/0/0</interface-name>
       <output-bandwidth xc:operation="merge">10000</output-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>
Deleting the Outbound Bandwidth of an Interface

This section provides a sample of deleting the outbound bandwidth of an interface.

Table 3-1120 Deleting the outbound bandwidth of an interface

Operation

XPATH

edit-config:remove

huawei-transport-network-point:transport-network-point/local-site/interfaces/interface/output-bandwidth

Data Requirements
Table 3-1121 Deleting the outbound bandwidth of an interface

Item

Data

Description

Outbound bandwidth of an interface

10000kbit/s

Delete the outbound bandwidth of an interface.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces" xc:operation="replace">
    <interface xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
     <name>Gigabitethernet0/0/0</name>
     <type xmlns:x="urn:ietf:params:xml:ns:yang:iana-if-type">x:ethernetCsmacd</type>
    </interface>
   </interfaces>
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point" xc:operation="replace">
    <local-site>
     <interfaces>
      <interface>
       <interface-name>Gigabitethernet0/0/0</interface-name>
       <output-bandwidth xc:operation="remove">10000</output-bandwidth>
      </interface>
     </interfaces>
    </local-site>
   </transport-network-point>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
 <ok/> 
</rpc-reply>

DTLS

Data model

The data model file matching DTLS is huawei-dtls.yang.

Table 3-1122 Data model of DTLS

Object

Description

/huawei-dtls:dtls/dtls-server/dtls-server-enable

Indicates that the DTLS server is enabled. The value is an integer ranging from 10000 to 65535.

/huawei-dtls:dtls/dtls-server/server-listen-port

Indicates the listening port number of the DTLS server.

/huawei-dtls:dtls/dtls-client/server-address/address

Indicates the IP address of the server corresponding to the DTLS client. The value is in dotted decimal notation.

/huawei-dtls:dtls/dtls-client/server-address/vpn-instance

Indicates the VPN instance name of the server corresponding to the DTLS client. 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.

/huawei-dtls:dtls/dtls-client/server-address/port

Indicates the port number of the server corresponding to the DTLS client. The value is an integer ranging from 10000 to 65535.

/huawei-dtls:dtls/dtls-client/server-address/rr-management-address

Indicates the RR management IP address of the server corresponding to the DTLS client. The value is in dotted decimal notation.

Enabling the DTLS Server

This section provides a sample of enabling the DTLS server.

Table 3-1123 Enabling the DTLS server

Operation

XPATH

edit-config:default

/huawei-dtls:dtls/dtls-server

Data Requirements
Table 3-1124 Enabling the DTLS server

Item

Data

Description

Whether the DTLS server is enabled

true

Enable the DTLS server and set the listening port number to 30020.

Listening port number of the DTLS server

30020

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <dtls xmlns="urn:huawei:yang:huawei-dtls">
    <dtls-server>
     <dtls-server-enable>true</dtls-server-enable>
     <server-listen-port>30020</server-listen-port>
    </dtls-server>
   </dtls>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389">
  <ok/> 
</rpc-reply> 
Deleting the DTLS Server
NOTE:

After the YANG packet of the DTLS Server service is deleted, the DTLS Server service does not stop. You need to save the configuration and restart the device for the modification to take effect.

This section provides a sample of deleting the DTLS server.

Table 3-1125 Deleting the DTLS server

Operation

XPATH

edit-config:remove

/huawei-dtls:dtls/dtls-server

Data Requirements
Table 3-1126 Deleting the DTLS server

Item

Data

Description

Whether the DTLS server is enabled

true

Deleting the DTLS server and the listening port number to 30020.

Listening port number of the DTLS server

30020

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <dtls xmlns="urn:huawei:yang:huawei-dtls">
    <dtls-server xc:operation="remove">
     <dtls-server-enable>true</dtls-server-enable>
     <server-listen-port>30020</server-listen-port>
    </dtls-server>
   </dtls>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389">
  <ok/> 
</rpc-reply> 
Configuring a DTLS Client

This section provides a sample of configuring a DTLS client.

Table 3-1127 Configuring a DTLS client

Operation

XPATH

edit-config:default

/huawei-dtls:dtls/dtls-client/server-address

Data Requirements
Table 3-1128 Configuring a DTLS client

Item

Data

Description

Server IP address

192.186.255.1

Set the server IP address, VPN instance name, port number, and RR management IP address of the DTLS client to 192.186.255.1, vpn-instance1, 10001, and 5.5.5.5, respectively.

VPN instance name

vpn-instance1

Port number

10001

RR management IP address

5.5.5.5

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <dtls xmlns="urn:huawei:yang:huawei-dtls">
    <dtls-client>
     <server-address>
      <address>192.186.255.1</address>
      <vpn-instance>vpn-instance1</vpn-instance>
      <port>10001</port>
      <rr-management-address>5.5.5.5</rr-management-address>
     </server-address>
    </dtls-client>
   </dtls>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
  <ok/> 
</rpc-reply> 
Modifying a DTLS Client

This section provides a sample of modifying a DTLS client.

Table 3-1129 Modifying a DTLS client

Operation

XPATH

edit-config:replace

/huawei-dtls:dtls/dtls-client/server-address

Data Requirements
Table 3-1130 Modifying a DTLS client

Item

Data

Description

Server IP address

192.186.255.1

Change the server IP address, VPN instance name, port number, and RR management IP address of the DTLS client to 192.186.255.1, vpn-instance1, 10002, and 5.5.5.6, respectively.

VPN instance name

vpn-instance1

Port number

10002

RR management IP address

5.5.5.6

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <dtls xmlns="urn:huawei:yang:huawei-dtls">
    <dtls-client>
     <server-address xc:operation="replace">
      <address>192.186.255.1</address>
      <vpn-instance>vpn-instance1</vpn-instance>
      <port>10002</port>
      <rr-management-address>5.5.5.6</rr-management-address>
     </server-address>
    </dtls-client>
   </dtls>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
  <ok/> 
</rpc-reply> 
Deleting a DTLS Client

This section provides a sample of deleting a DTLS client.

Table 3-1131 Deleting a DTLS client

Operation

XPATH

edit-config:remove

/huawei-dtls:dtls/dtls-client/server-address

Data Requirements
Table 3-1132 Deleting a DTLS client

Item

Data

Description

Server IP address

192.186.255.1

Delete the server IP address, VPN instance name, port number, and RR management IP address of the DTLS client.

VPN instance name

vpn-instance1

Port number

10001

RR management IP address

5.5.5.5

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <dtls xmlns="urn:huawei:yang:huawei-dtls">
    <dtls-client>
     <server-address xc:operation="remove">
      <address>192.186.255.1</address>
      <vpn-instance>vpn-instance1</vpn-instance>
      <port>10001</port>
      <rr-management-address>5.5.5.5</rr-management-address>
     </server-address>
    </dtls-client>
   </dtls>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_dc9bf91389364b8cada05b7d95f3e062">
  <ok/> 
</rpc-reply> 

Channels

Data Model

The data model file matching channels is huawei-ip-channel.yang.

Table 3-1133 Data model for channels

Object

Description

/huawei-ip-channel:ip-channel/channel-list/channel-name

Indicates the name of the channel. The value is a string of 1 to 128 characters.

/huawei-ip-channel:ip-channel/channel-list/local-address

Indicates the IP address of the local channel. The value is in dotted decimal notation.

/huawei-ip-channel:ip-channel/channel-list/peer-address

Indicates the IP address of the remote channel. The value is in dotted decimal notation.

/huawei-ip-channel:ip-channel/channel-list/local-port

Indicates the UDP port number of the local channel. The value is an integer that ranges from 10240 to 49152.

/huawei-ip-channel:ip-channel/channel-list/peer-port

Indicates the UDP port number of the remote channel. The value is an integer that ranges from 10240 to 49152.

/huawei-ip-channel:ip-channel/channel-list/vpn-instance

Indicates the VPN instance name of the local channel. The value is a string of 1 to 31 case-sensitive characters without spaces.

Configuring a Channel

This section provides a sample of configuring a channel.

Table 3-1134 Configuring a channel

Operation

XPATH

edit-config:default

/huawei-ip-channel:ip-channel/channel-list

Data Requirements
Table 3-1135 Configuring a channel

Item

Data

Description

Name of the channel

channel

Set the name of the channel to channel, IP address of the local channel to 3.3.3.8, IP address of the remote channel to 2.2.2.8, UDP port number of the local channel to 33338, UDP port number of the remote channel to 22228, and VPN instance name of the local channel to vrf.

IP address of the local channel

3.3.3.8

IP address of the remote channel

2.2.2.8

UDP port number of the local channel

33338

UDP port number of the remote channel

22228

VPN instance name of the local channel

vrf

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5ee00fa0ad45400183e13c78171e3cca">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <ip-channel xmlns="urn:huawei:yang:huawei-ip-channel">
    <channel-list xc:operation="merge">
     <channel-name>channel</channel-name>  
     <local-address>3.3.3.8</local-address>
     <peer-address>2.2.2.8</peer-address>
     <local-port>33338</local-port>
     <peer-port>22228</peer-port>
     <vpn-instance>vrf</vpn-instance>
    </channel-list>
   </ip-channel>
  </config>
 </edit-config>
</rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5ee00fa0ad45400183e13c78171e3cca">
  <ok/> 
</rpc-reply> 
Deleting a Channel

This section provides a sample of deleting a channel.

Table 3-1136 Deleting a channel

Operation

XPATH

edit-config:remove

/huawei-ip-channel:ip-channel/channel-list

Data Requirements
Table 3-1137 Deleting a channel

Item

Data

Description

Name of the channel

channel

Delete the channel with the name channel, local channel with the IP address 3.3.3.8, remote channel with the IP address 2.2.2.8, local channel with the UDP port number 33338, remote channel with the UDP port number 22228, and local channel with the VPN instance name vrf.

IP address of the local channel

3.3.3.8

IP address of the remote channel

2.2.2.8

UDP port number of the local channel

33338

UDP port number of the remote channel

22228

VPN instance name of the local channel

vrf

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5ee00fa0ad45400183e13c78171e3cca">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <ip-channel xmlns="urn:huawei:yang:huawei-ip-channel">
    <channel-list xc:operation="remove">
     <channel-name>channel</channel-name>  
     <local-address>3.3.3.8</local-address>
     <peer-address>2.2.2.8</peer-address>
     <local-port>33338</local-port>
     <peer-port>22228</peer-port>
     <vpn-instance>vrf</vpn-instance>
    </channel-list>
   </ip-channel>
  </config>
 </edit-config>
</rpc>
Response Example
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_5ee00fa0ad45400183e13c78171e3cca">
  <ok/> 
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8591

Downloads: 69

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