Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

set

Creates a new configuration node or modifies an attribute in an existing configuration node.

To create a new configuration node, the syntax is as follows:

set config-node [ identifier ]

To set an attribute within a configuration node, the syntax is as follows:

set config-node [ identifier ] attribute [ value ]
config-node
A configuration node to be created or modified, including the full path, separated by spaces, through the configuration hierarchy to the node.
identifier
The identifier of a configuration node. The identifier is mandatory if the configuration node has an identifier; otherwise, it is not allowed.
attribute
A configuration attribute to be set. If the attribute statement does not exist, it is created. If the attribute statement already exists, its value is set to the new value.
value
The new value of the attribute. The value is mandatory if the attribute statement requires a value; otherwise, it is not allowed.

Configuration mode

Use this command to add a configuration element to the current configuration—for example, to enable a routing protocol or define an interface.

You can also use this command to modify the value of an existing configuration item. When setting configuration values, note that the change does not take effect until the change is committed by using commit.

After a configuration node has been added, you can modify it later by using set or delete it by using delete.

The following example shows how to add a configuration node for a data plane interface and commit the change.

vyatta@vyatta# set interfaces dataplane dp0p1p2 address
 192.150.187.108/24
vyatta@vyatta# commit