Configuration Groups

Configuration Groups




Configuration groups are reusable blocks of configuration that can be applied multiple times. This makes it similar to a template.

The contents of a configuration group are just normal configuration items. However, it does support regex, so sometimes it may look different.

When a configuration group is applied, it won’t be visible in the normal configuration hierarchy. To see the changes applied by a configuration group, use show configuration | display inheritance.

Good usage of configuration groups includes debugging. You can have your debugging commands ready to go in a group, and only apply them as you need them.

Command Summary

Command Mode Description
set groups NAME Configuration Create a configuration group
set apply-groups NAME Configuration Apply a configuration group
show | display inheritance Configuration See the config that has been inherited from the configuration group
wildcard delete Configuration Use regex to delete multiple items from configuration

Additional References

Using Configuration Groups to Quickly Configure Devices

Junos Configuration Groups

Junos Configuration Groups

Leave a Reply