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 V200R011C10 NETCONF YANG API Reference

This document describes the NETCONF 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).
Loading the Patch File

Loading the Patch File

This section provides a sample of loading the patch file using the rpc method.

Table 2-26  Loading the patch file

Operation

XPATH

rpc

/huawei-system-patch/patch-operation

Data Requirements

Table 2-27  Loading the patch file

Item

Data

Description

Patch type

device-bin-patch-type

-

Type of an operation on the patch file

load

Load the patch file.

Action taken after the patch file is loaded

running

If the type of an operation on the patch file is set to load, this field indicates the action taken after the patch file is loaded.

Patch name

patch_boxfile_special_1_39818.pat

Specify the patch file to be loaded.

Request Example

<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="e5ceb2c0-8168-11e7-b741-bdb31760b42e">
  <patch:patch-operation xmlns:patch="urn:huawei:params:xml:ns:yang:huawei-system-patch">
    <patch:patch-type>device-bin-patch-type</patch:patch-type>
    <patch:operations>
      <patch:operation>
        <patch:type>load</patch:type>
        <patch:operation-parameters>
          <patch:status-after-load>running</patch:status-after-load>
          <patch:name>patch_boxfile_special_1_39818.pat</patch:name>
        </patch:operation-parameters>
      </patch:operation>
    </patch:operations>
  </patch:patch-operation>
</rpc>

Response Example

Pre-processing succeeds.

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="e5ceb2c0-8168-11e7-b741-bdb31760b42e">
  <ok/>
</rpc-reply>

Pre-processing fails.

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="141a5f30-2736-11e8-baf2-b8a61503722a">
  <rpc-error xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-app-tag>1</error-app-tag>
    <error-message>Service process failed.</error-message>
  </rpc-error>
</rpc-reply>
Translation
Download
Updated: 2019-09-23

Document ID: EDOC1000178028

Views: 4903

Downloads: 0

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