Application User Interface Extensions
Providers can extend the Junos OS user interface. The Junos OS has two configuration mode commands that help you work with applications. The following topics describe these commands in detail:
Displaying the Detail for Application Configurations
The show | display detail command is not new but has been updated to show application package information. The complete form of the command is as follows:
The show | display detail command displays the characteristics, descriptions, and constraints of each configuration statement in the Junos operating system (OS) configuration schema using comment lines. The configuration schema is piped through to the display detail command. The show command displays the entire user-defined configuration unless it is limited to a particular branch of the configuration scheme by the optional statement-path variable.
Generally, the information displayed is help strings and the permission bits required to add or modify the configuration statement. For configuration statements that are defined by an application package, the name of the package that defines the statement is also displayed. If a Junos statement is redefined by an application package, the package name is listed. However, if a configuration statement is defined by the native Junos OS only, no package name is displayed.
Displaying and Deleting Configuration for Applications
To display or delete the configuration for a specific application package, use the extension package-name (show | delete) configuration mode command:
This command filters for configuration based on the package named in the command, starting at the top of the configuration hierarchy, or, if you use the section option, starting at the hierarchy level indicated by the section option. The output displays the configuration of all matches.
![]() | Note: Remove all the soon-to-be invalid configurations before removing the application package. See Removing Application Packages. |
To delete application configuration:
- Display any configuration specific to the application.[edit]user@router# extension package-name show
- When you are satisfied that this is the configuration
you want to delete, issue the extension package-name delete command. Use the section option to limit the scope of the deletion if needed.[edit]user@router# extension package-name delete
![]() |
Matches for the extension show Command
Matches for the extension package-name show command include those packages whose package names exactly match the value of package-name as well as those whose names have the same root but may have longer names, similar to a wildcard situation.
The following example shows simplified output illustrating how the extension package-name show command works. Suppose a router has packageA, packageB, and packageAB installed and you issue the command extension packageA show. The output displays configuration for packages with names that not only exactly match packageA but also have roots that match (in this case, packageAB):
Matches for the extension delete Command
In contrast, the extension package-name delete command treats the value of package-name as a literal. It deletes only configuration contributed by the package whose package name exactly matches the given value.
![]() | Note: A configuration schema defined in any native Junos package is never deleted by the removal of any third-party package. |