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).
Patch Management

Patch Management

Data Model

Table 3-2085 Data model

Object

Description

huawei-system-patch:patch-operation/patch-type

Indicates the patch type. The value is of the enumerated type and is device-bin-patch-type.

huawei-system-patch:patch-operation/operations/operation/type

Indicates the patch operation type. The value is of the enumerated type:

  • load
  • remove
  • startup-config

huawei-system-patch:patch-operation/operations/operation:operation-parameters/name

Indicates the patch file name. The value is a string of 1 to 64 case-sensitive characters without spaces.

huawei-system-patch:patch-operation/operations/operation/operation-parameters/status-after-load

Indicates the status of the loaded patch. The value is of the enumerated type and is running.

Loading a Patch

This section provides a sample of loading a patch.

Data Requirements
Table 3-2086 Loading a patch

Item

Data

Description

Patch type

device-bin-patch-type

Load the patch file patch_ar160a.pat.

Patch operation type

load

Patch file name

patch_ar160a.pat

Status of the loaded patch

running

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2fb07e439d784e3cb19833d450b76dcd"> 
 <patch-operation xmlns="urn:huawei:params:xml:ns:yang:huawei-system-patch"> 
  <patch-type>device-bin-patch-type</patch-type> 
  <operations> 
 <operation> 
    <type>load</type> 
    <operation-parameters> 
     <name>patch_ar160a.pat</name> 
     <status-after-load>running</status-after-load> 
    </operation-parameters> 
 </operation> 
  </operations> 
 </patch-operation> 
</rpc>
Response Example

Sample of successful response

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

Uninstalling a Patch

This section provides a sample of uninstalling a patch.

Data Requirements
Table 3-2087 Uninstalling a patch

Item

Data

Description

Patch type

device-bin-patch-type

Delete the patch file patch_ar160a.pat to uninstall the patch.

Patch operation type

remove

Patch file name

patch_ar160a.pat

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2fb07e439d784e3cb19833d450b76dce"> 
 <patch-operation xmlns="urn:huawei:params:xml:ns:yang:huawei-system-patch"> 
  <patch-type>device-bin-patch-type</patch-type> 
  <operations> 
 <operation> 
    <type>remove</type> 
    <operation-parameters> 
     <name>patch_ar160a.pat</name> 
    </operation-parameters> 
 </operation> 
  </operations> 
 </patch-operation> 
</rpc>
Response Example

Sample of successful response

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

Configuring a Patch to Take Effect at the Next Startup

This section provides a sample of configuring a patch to take effect at the next startup.

Data Requirements
Table 3-2088 Configuring a patch to take effect at the next startup

Item

Data

Description

Patch type

device-bin-patch-type

Configure the patch to take effect at the next startup.

Patch operation type

startup-config

Patch file name

patch_ar160a.pat

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2fb07e439d784e3cb19833d450b76dcd"> 
 <patch-operation xmlns="urn:huawei:params:xml:ns:yang:huawei-system-patch"> 
  <patch-type>device-bin-patch-type</patch-type> 
  <operations> 
 <operation> 
    <type>startup-config</type> 
    <operation-parameters> 
     <name>patch_ar160a.pat</name> 
    </operation-parameters> 
 </operation> 
  </operations> 
 </patch-operation> 
</rpc>
Response Example

Sample of successful response

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

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8343

Downloads: 69

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