Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

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:

  1. Click in the Network Director banner and select Preferences.
  2. In the Preferences window, select the Config & Deploy tab.
  3. Select the Enable migration from Ethernet Design check box to enable import of configuration group data.
  4. 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:

  1. Click Deploy in the Network Director banner.
  2. 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 1: 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:

  • Up—Network Director can communicate with the device.

  • Down—Network Director cannot communicate with the device. You cannot deploy configuration to devices that are down.

Configuration State

Indicates whether the device’s configuration is in sync with Network Director’s version:

  • In Sync—The configuration on the device is in sync with the Network Director configuration for the device.

  • Out Of Sync—The configuration on the device does not match the Network Director configuration for the device. This state is usually the result of the device configuration being altered outside of Network Director.

    You cannot deploy configuration on a device when the device is Out Of Sync. To resolve this state, use the Resynchronize Device Configuration task in Deploy mode.

  • Synchronizing—The device configuration is in the process of being resynchronized.

  • Sync failed—An attempt to resynchronize an Out Of Sync device failed.

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:

  1. Select the device or devices in the Devices with Pending Changes page.
  2. Click Deploy Now.

    The Deploy Options window opens.

  3. In the Deploy Options window, enter a job name in the Deployment Job Name field, then click OK.

    The configuration deployment job runs. The Deploy Configuration window opens and shows the results of the deployment job. For a description of fields in this window, see Deploy Configuration Window.

Scheduling Configuration Group Change Deployment

To schedule configuration group change deployment to devices:

  1. Select the device or devices in the Devices with Pending Changes page.
  2. Click Schedule Deploy.

    The Deploy Options window opens.

  3. Use the Deploy Options window to schedule the configuration deployment. See Specifying Configuration Deployment Scheduling Options for a description of the window.

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.

Table 2: Deploy Options 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.