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 ]
- A configuration node to be created or modified, including the full path, separated by spaces, through the configuration hierarchy to the node.
- The identifier of a configuration node. The identifier is mandatory if the configuration node has an identifier; otherwise, it is not allowed.
- 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.
- The new value of the attribute. The value is mandatory if the attribute statement requires a value; otherwise, it is not allowed.
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 220.127.116.11/24 vyatta@vyatta# commit