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).
Command Delivery Using YANG Packets on the Agile Controller-Campus

Command Delivery Using YANG Packets on the Agile Controller-Campus

Data Model

The data model file matching command delivery using YANG packets on the Agile Controller-Campus is huawei-execute-cli.yang.

Table 3-2274 Data model

Object

Description

huawei-execute-cli:clis

Indicates that the operation request object is the configuration related to commands delivered using YANG packets on the Agile Controller-Campus. It is only used to contain sub-objects, but does not have any data meaning.

huawei-execute-cli:clis/cli/name

Indicates the command name.

The value is a string of case sensitive characters and it can contain spaces.

huawei-execute-cli:clis/cli/execute-cli

Indicates the detailed delivered command.

The value is a string of 1 to 6144 case-insensitive characters and it can contain spaces.

Configuring Command Delivery Using YANG Packets on the Agile Controller-Campus

Table 3-2275 Configuring command delivery using YANG packets on the Agile Controller-Campus

Operation

XPATH

edit-config:merge

huawei-execute-cli:clis/cli

Data Requirements
Table 3-2276 Configuring command delivery using YANG packets on the Agile Controller-Campus

Item

Data

Description

Command name

AC

Configures command delivery using YANG packets on the Agile Controller-Campus.

Delivered command

return

system-view

ip vpn-instance testvpn

ipv4-family

route-distinguisher 300:2

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_bdb5e87343fb434ca8dad9b6a5858878"> 
  <edit-config> 
   <target> 
    <running/> 
   </target> 
 <error-option>rollback-on-error</error-option> 
   <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
    <clis xmlns="urn:huawei:params:xml:ns:yang:huawei-execute-cli"> 
     <cli> 
      <name>AC</name> 
      <execute-cli> 
       return 
       system-view 
       ip vpn-instance testvpn                                                             
       ipv4-family                                                                     
       route-distinguisher 300:2   
      </execute-cli> 
     </cli> 
    </clis> 
   </config> 
  </edit-config> 
 </rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_bdb5e87343fb434ca8dad9b6a5858878"> 
 <ok/> 
</rpc-reply>

Deleting Command Delivery Using YANG Packets on the Agile Controller-Campus

Table 3-2277 Deleting command delivery using YANG packets on the Agile Controller-Campus

Operation

XPATH

edit-config:merge

huawei-execute-cli:clis/cli

Data Requirements
Table 3-2278 Deleting command delivery using YANG packets on the Agile Controller-Campus

Item

Data

Description

Command name

AC

Deletes command delivery using YANG packets on the Agile Controller-Campus

Delivered command

return

system-view

undo ip vpn-instance testvpn

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_bdb5e87343fb434ca8dad9b6a5858878"> 
  <edit-config> 
   <target> 
    <running/> 
   </target> 
 <error-option>rollback-on-error</error-option> 
   <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
    <clis xmlns="urn:huawei:params:xml:ns:yang:huawei-execute-cli"> 
     <cli> 
      <name>AC</name> 
      <execute-cli> 
       return 
       system-view 
       undo ip vpn-instance testvpn                                                             
      </execute-cli> 
     </cli> 
    </clis> 
   </config> 
  </edit-config> 
 </rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_bdb5e87343fb434ca8dad9b6a5858878"> 
 <ok/> 
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8469

Downloads: 69

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