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).
Security Engine

Security Engine

This section describes the data model of a security engine, and provides samples of enabling and disabling a security engine.

Data Model

The data model file matching the security engine is huawei-security-engine.yang.

Table 3-1138 Security engine

Object

Description

huawei-security-engine:security-engine-config

Indicates the object for the global search engine configuration. It is only used to contain sub-objects, but does not have any data meaning.

huawei-security-engine:security-engine-config/enable-security-engine

Enables the security engine. There is no need to fill in details. This object is delivered in the format of <enable-security-engine/>.

Enabling a Security Engine

This section provides a sample of enabling a security engine.

Table 3-1139 Enabling a security engine

Operation

XPATH

edit-config:merge

/huawei-security-engine:security-engine-config

Data Requirements
Table 3-1140 Enabling a security engine

Item

Data

Description

Enabling a security engine

-

Enable the security engine. There is no need to fill in details. The data is delivered in the format of <enable-security-engine/>.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <security-engine-config xmlns="urn:huawei:params:xml:ns:yang:huawei-security-engine" xc:operation="merge">
    <enable-security-engine/>
   </security-engine-config>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

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

Disabling a Security Engine

This section provides a sample of disabling a security engine.

Table 3-1141 Disabling a security engine

Operation

XPATH

edit-config:replace

/huawei-security-engine:security-engine-config

edit-config:remove

/huawei-security-engine:security-engine-config

Data Requirements
Table 3-1142 Disabling a security engine

Item

Data

Description

Disabling a security engine

-

Disable the security engine. No <enable-security-engine/> object is carried in requests for disabling the security engine.

Request Example
  • When the replace operation is used, no <enable-security-engine/> object is carried in the request, which indicates that the security engine is disabled.

    <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
     <edit-config>
      <target>
       <running/>
      </target>
      <error-option>rollback-on-error</error-option>
      <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
       <security-engine-config xmlns="urn:huawei:params:xml:ns:yang:huawei-security-engine" xc:operation="replace"/>
      </config>
     </edit-config>
    </rpc>
  • When the remove operation is used, no <enable-security-engine/> object is carried in the request, which indicates that the security engine is disabled.
    <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
     <edit-config>
      <target>
       <running/>
      </target>
      <error-option>rollback-on-error</error-option>
      <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
       <security-engine-config xmlns="urn:huawei:params:xml:ns:yang:huawei-security-engine" xc:operation="remove"/>
      </config>
     </edit-config>
    </rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
  <ok/> 
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8192

Downloads: 69

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