xml-translate begin

Function

The xml-translate begin command accesses the CLI-to-XML translation mode.

Format

xml-translate begin

Parameters

None

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
netconf debug

Usage Guidelines

Usage Scenario

CLI and NETCONF are two device management models. To access the CLI-to-XML translation mode, run the xml-translate begin command so that configuration commands can be translated into XML packets in the NETCONF YANG model.

To exit the translation mode and enter the user view, run the quit or return command.

Configuration Impact

After the

xml-translate begin command is run, the user prompt character is changed to the following:

[&HUAWEI]

Follow-up Procedure

In the translation mode, after the configuration commands to be translated are executed, run either of the following commands as needed:

  • To translate the configuration commands to XML packets in the NETCONF YANG model, run the xml-translate end command.
  • To stop the CLI-to-XML translation and exit the translation mode, run the xml-translate abort command.

Precautions

Only administrator users can run the xml-translate begin command.

After this command is run, the current running configuration database will be locked, and other users cannot commit configurations to the database.

This function supports only configuration commands except those listed in the following table.

commit [ trial [ <timelen> ] [ label <labelstring> ] ] [ persist <persistId> ] [ description <descriptionstring> ]

execute <batfile> [ <para1> [ <para2> [ <para3> [ <para4> [ <para5> [ <para6> [ <para7> [ <para8> ] ] ] ] ] ] ] ]

[undo] configuration exclusive

clear configuration candidate

[undo] command group <groupName>

[undo] command alias

[undo] apply-command-group { groupName } &amp;<1-8>

load configuration file <fileName> replace [ relative ]

load configuration server <ipv4Addr> [ vpn-instance <vpnName> ] transport-type { ftp | sftp } username <usernameVal> password <passwordVal> file <fileName> replace [ relative ]

load configuration server ipv6 <ipv6Addr> [ vpn-instance <vpnName> ] transport-type { ftp | sftp } username <usernameVal> password <passwordVal> file <fileName> replace [ relative ]

load configuration server http url <urlVal> [ vpn-instance <vpnName> ] [ file <saveFileName> ] replace [ relative ]

load configuration server <ipv4Addr> [ vpn-instance <vpnName> ] transport-type sftp file <fileName> replace [ relative ] username <usernameVal> password

load configuration terminal

[undo] pnp-package enable

[undo] set process fault alarm immediately

[undo] set osnode fault fast-detect disable

set osnode fault link-tolerance <timerlen> reverse-link-tolerance <reverseTmrlen>

undo set osnode fault link-tolerance reverse-link-tolerance

[undo] terminal command timestamp

[undo] configuration prevent-misoperation disable

command-privilege level <level-value> view <view-value> <commandString>

undo command-privilege [ level <level-value> ] view <view-value> <commandString>

rule command <rule-name> { permit | deny } view <view-name> expression <command-string>

undo rule command <rule-name>

assistant _auto_diagnose

condition timer <cron> <minutes> <hours> <daysOfMonth> <months> <daysOfWeek> [ <years> ]

test-type snmp

work-mode { yang | schema }

undo work-mode

service-type terminal force-domain <domainName>

undo service-type terminal force-domain

time-range domain-block name <time-range-name>

undo time-range domain-block [ name <time-range-name> ]

slow-peer detection threshold <threshold-value>

undo slow-peer detection [ threshold <threshold-value> ]

[undo] slow-peer detection disable

slow-peer detection

[undo] slow-peer absolute-detection disable

This command can be used to identify whether the configuration command supports YANG. The converted YANG model packets are for reference only. Use this command based on the example YANG model packets for the YANG API.

In VS mode, this command is supported only by the admin VS.

Example

# Access the CLI-to-XML translation mode.
<HUAWEI> system-view
[~HUAWEI] xml-translate begin
Warning: The running database will be locked when you enter the CLI-to-XML translate mode. Are you sure you want to continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >