beautypg.com

H3C Technologies H3C S6300 Series Switches User Manual

Page 270

background image

257

Operation Description XML

example

edit-config: create

Creates a specified target. To
use the create attribute in the
edit-config operation, you must

specify the operation target.

If the table supports target

creation and the specified

target does not exist, the

operation creates and then
configures the target.

If the specified target exists,

a data-exist error message is
returned.

The XML data format is the same as the edit-config
message with the merge attribute. Change the
operation attribute from merge to create.

edit-config:
replace

Replaces the specified target.

If the specified target exists,

the operation replaces the

configuration of the target
with the configuration

carried in the message.

If the specified target does

not exist, the operation is not

conducted and an

invalid-value error message
is returned.

The syntax is the same as the edit-config message with
the merge attribute. Change the operation attribute

from merge to replace.

edit-config:
remove

Removes the specified
configuration.

If the specified target has

only the table index, the
operation removes all

configuration of the

specified target, and the
target itself.

If the specified target has the

table index and
configuration data, the

operation removes the

specified configuration data

of this target.

If the specified target does

not exist, or the XML
message does not specify

any target, a success

message is returned.

The syntax is the same as the edit-config message with
the merge attribute. Change the operation attribute
from merge to remove.