Disabling Inheritance of a Junos Configuration Group
To disable inheritance of a configuration group at any level except the top level of the hierarchy, include the apply-groups-except statement:
This statement is useful when you use the apply-group statement at a specific hierarchy level but also want to override the values inherited from the configuration group for a specific parameter.
Example: Disabling Inheritance on Interface so-1/1/0
In the following example, the apply-groups statement is applied globally at the interfaces level. The apply-groups-except statement is also applied at interface so-1/1/0 so that it uses the default values hold-time and link-mode.
For information about applying a configuration group, see Applying a Junos Configuration Group.
Configuration groups can add some confusion regarding the actual values used by the router, because configuration data can be inherited from configuration groups. To view the actual values used by the router, use the display inheritance command after the pipe ( | ) in a show command. This command displays the inherited statements at the level at which they are inherited and the group from which they have been inherited.
To display the expanded configuration (the configuration, including the inherited statements) without the ## lines, use the except command after the pipe in a show command:
