[an error occurred while processing this directive][an error occurred while processing this directive]

Using the extension delete Command to Delete SDK Configuration by Package Name

The extension package-name delete command treats the value of package-name as a literal. It deletes only the settings contributed by the package whose package name exactly matches the given value. Using this command, you can delete all user-defined configuration statements related to the named package.

Note: A configuration schema defined in any native JUNOS package is never deleted by the removal of any third-party package.

Continuing with the same example from Using the extension show Command, notice how the configuration changes when the extension sdk-pkg1 delete command is used:

show Output Before the extension delete Command

user@host# showsystem {radius-server {10.1.1.1 {timeout 10;sdk-backup-server 10.1.1.2; # Contributed by sdk-pkg1}}}protocols {ospf {....}sdk-proto1 { # Contributed by sdk-pkg1....}}

show Output After the extension delete Command

user@host# extension sdk-pkg1 delete[edit]user@host# showsystem {radius-server {10.1.1.1 {timeout 10;}}}protocols {ospf {....}}

You could accomplish the same thing by issuing the following two commands:

  • delete system radius-server 10.1.1.1 sdk-backup-server
  • delete protocols sdk-proto1

Published: 2010-05-09

[an error occurred while processing this directive]