Importing Configuration Data from Junos OS Configuration Groups
The configuration groups feature in Junos OS enables you to create a group containing configuration statements and to direct the inheritance of that group’s statements in the rest of the configuration on a device. The same group can be applied to different sections of the configuration, and different sections of one group’s configuration statements can be inherited in different places in the configuration.
Configuration groups enable you to create smaller, more logically constructed configuration files, making it easier to configure and maintain Junos OS. For example, you can group statements that are repeated in many places in the configuration, such as when configuring interfaces, and thereby limit updates to just the group.
You can use the Migrate Config Groups task in Network Director to import and deploy supported configurations from these configuration groups on devices.
This topic describes:
Enabling Import of Configuration Group Data
For Network Director to be able to import configuration group data.
To enable the import of configuration group data:
- Click in the Network Director banner and select Preferences.
- In the Preferences window, select the Config & Deploy tab.
- Select the Enable migration from Ethernet Design check box to enable import of configuration group data.
- Click Save to save and close the preferences.
Viewing Configuration Group Data
After you enable the import of configuration group data, Network Director adds a new task—Migrate from Ethernet Design—in the Deploy mode. You can use this task to flatten the active group configurations. All the devices which are discovered and managed by Network Director is listed in the Migrate from Ethernet Design page. Network Director displays the devices in this page based on you selection in the Tree view. You can view the default configuration, active configuration, and the configurations that are to be deployed on the devices from this page.
To view the configuration group data:
- Click Deploy in the Network Director banner.
- In the Tasks pane, select Configuration Deployment > Migrate From Ethernet Design. The Migrate Ethernet Design Configuration Groups page opens displaying all the devices that has configurations from configuration groups that are not deployed on the device yet.
Table 1 describes the information provided in the table on the Migrate Config Groups page.
Table Column |
Description |
---|---|
Check box |
Select to perform an action on the device in that row |
Name |
Device name |
IP Address |
Device IP address |
Model |
Device Model |
Device Family |
Device family can be junos, junos-ex, or junos-qfx |
OS Version |
Operating system version running on device |
Connection State |
State of the connection to the device:
|
Configuration State |
Indicates whether the device’s configuration is in sync with Network Director’s version:
|
Configuration Changes |
Click to view the configuration changes for a device. The Pending Changes window opens. For more details on using the Pending Changes window, see Using the Configuration or Pending Configuration Window. |
Using the Configuration or Pending Configuration Window
Use the Pending Configuration window to view the configuration changes that will be deployed to a device when a job runs. Use the Configuration window to see changes that were deployed to a device when a completed job ran. The configuration changes are shown in these formats:
Select the XML View tab to view the configuration changes in XML format. This view shows the XML-formatted configuration that will be deployed to the device’s Device Management Interface (DMI), which is used to remotely manage devices.
Select the CLI View tab to view the configuration changes in CLI format. This view shows the Junos configuration statements that will be deployed to the device.
In both views, the content is color-coded for easier reading:
Black text indicates configuration that is already active on the device, and will not be changed if you deploy.
Green text indicates configuration that will be added if you deploy.
Red text indicates configuration that will be removed if you deploy.
Deploying Configuration Group Changes to Devices Immediately
To deploy configuration group changes to devices immediately:
Scheduling Configuration Group Change Deployment
To schedule configuration group change deployment to devices:
Specifying Configuration Deployment Scheduling Options
Use the Deploy Options window to schedule configuration deployment jobs. Table 2 describes the actions for the fields in this window.
Field |
Action |
---|---|
Deployment Job Name |
Enter a job name. |
Date and Time |
Enter the job’s start date and time. |
OK |
Click to accept changes and exit the window. |
Cancel |
Click to cancel changes and exit the window. |
Using the Deploy Configuration Errors/Warnings Window
Use the Deploy Configuration Errors/Warnings window to view the results of deploying configuration to a device. The Errors/Warnings in validating the device configuration pane shows the results of configuration validation by Network Director. The Errors/Warnings in Updating Device configuration pane shows the results of configuration validation on the device.