Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Delete a configuration node — delete

An example that shows how to use the delete command to delete a configuration.

  1. Use the delete command to delete a configuration.
    user@system# delete interfaces dataplane dp0p1p1 address 192.0.2.21/24
    [edit]
    user@system#
  2. Optional: Use the show command to see the deletion.
    user@system# show interfaces dataplane dp0p1p1
    -address 192.0.2.21/24
     hw-id 00:13:46:e6:f6:87
    [edit]
    user@system#

    Notice the minus sign - in front of the deleted statement. This shows that you have deleted this statement from the configuration, but you have not yet committed this change. The change does not take effect until you commit the configuration with the commit command.

  3. Optional: Use the compare command to see the change.
    user@system# compare
    [edit interfaces dataplane dp0p1p1]
    -address 192.0.2.21/24
    user@system#

    Some configuration nodes and statements are mandatory; you cannot delete them. Some configuration statements are mandatory, and have default values; if you 'delete' one of these statements, then you reset the value to the default.