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

ME60 V800R010C10SPC500 Feature Description - System Management 01

This is ME60 V800R010C10SPC500 Feature Description - System Management
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).
Validate

Validate

This capability indicates that the device can deliver configurations without considering the configuration sequence. During the delivery, the device only checks the syntactic validity of configurations rather than the configuration sequence. The device checks semantic validity when committing the configurations. After correcting the configuration delivery sequence, the device commits the configurations to the <running/> configuration database.

Before performing the <validate> operation, locking the <running/> configuration database is advised to prevent adverse impacts on the validate operation when other users operate the <running/> configuration database.

Capability ID

<capability>urn:ietf:params:netconf:capability:validate:1.0</capability>
<capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
  • RPC request:

    <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
    <validate>
     <source>
       <candidate/>
     </source>
    </validate>
    </rpc>
    
  • RPC reply:

    <rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <ok/>
    </rpc-reply>
    
Validate checks are classified into syntactic checks and semantic checks.
  • Syntactic check: checks RPC packet validity, model matching, data type, value range, authorization, whether existing data is to be created and nonexistent data is to be deleted, and whether the parent node exists
  • Semantic check: checks semantic items, such as the dependency between configurations

The <source> parameter of the <validate> operation only supports <candidate/> and <running/> configuration databases.

With the <validate> capability supported, the <edit-config> operation supports the <test-option> parameter. The value of this parameter can be test-then-set, set, and test-only. If this parameter is not carried in the <edit-config> operation, the test-then-set process is used by default.
  • <test-then-set>: The system checks the delivered configurations for syntactic and semantic errors. If the check succeeds, the system modifies the configuration. If the check fails, the system displays a failure message and the failure cause and does not modify the configuration.
  • <set>: The system checks configurations for syntactic errors. After the check succeeds, the system commits the configurations to the <candidate/> configuration database. Semantic errors are not checked. However, when performing the <commit> or <confirmed-commit> operation, the system checks configurations for semantic errors and commits the configurations to the <running/> configuration database after the check succeeds.
  • <test-only>: The system checks configurations only for syntactic and semantic errors and reports the check result without committing the configurations to any configuration database.
Change the interface name of the IFM feature to text in the <running/> configuration database and perform a syntactic and semantic check.
  • RPC request:

    <?xml version="1.0" encoding="utf-8"?>
    <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
      <edit-config>
        <target>
          <running/>
        </target>
        <test-option>test-then-set</test-option>
        <config>
          <ifm xmlns="http://www.huawei.com/netconf/vrp/huawei-ifm">
            <interfaces>
              <interface xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="merge">
                <ifName>GigabitEthernet1/0/0</ifName>
                <ifDescr>text</ifDescr>
              </interface>
            </interfaces>
          </ifm>
        </config>
      </edit-config>
    </rpc>
    
  • RPC reply:

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

Document ID: EDOC1100059466

Views: 10631

Downloads: 7

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