Lab Guide 1 - Juniper

Configlets

Configlets are configuration templates that are applied to network devices. They augment the Apstra Reference Design with non-native device configuration. Circumstances when configlets might be employed include syslog, SNMP access policy, TACACS / RADIUS, management ACLs, control plane policing, NTP and username / passwords. Configlets are powerful, but, if used improperly they do pose risks to deployment stability and feature interactions with the Apstra Reference Design.

Edit NTP Configlet

Let’s add an operating system (Config Style) to an existing configlet.

  1. Navigate to Design > Configlets and click US-EAST-NTP to see its details.

    design_configlets_41

  2. Click the Edit button (top-right), then at the bottom of the dialog, click Add a Style.

  3. For Config Style select Junos and for Section select Hierarchical under Top-Level

    design_configlets-dialog_41

  4. For Template Text copy and paste the following text.

    system {
      ntp {
          server {{ntp_server}} routing-instance {{junos_mgmt_vrf}};
      }
    }
  5. Click Update (bottom-right) to add Junos to the existing configlet.

Apply NTP Configlet

Now we need to apply the NTP configlet to the blueprint so the NTP service is enabled for network devices in our topology.

  1. This configlet uses a property set, so the first thing we need to do is import it into the blueprint. From the blueprint, navigate to Staged > Catalog > Property Sets and click Import Property Set.

  2. Select US-EAST-NTP from the drop-down list, then click Import Property Set. The property set is added to the property set blueprint catalog. Repeat this task with the property set MGMT VRF.

    property_set_import_40.png

  3. Navigate to the Staged > Physical > Build > Configlets.

    configlets_manage_40.png

  4. Click Manage Configlets then click Import Configlet.

  5. Select US-EAST-NTP from the configlet drop-down list, then select the checkboxes for both Spine and Leaf roles.

    configlet_import_40.png

  6. Click Import Configlet. The configlet is added to the configlet blueprint catalog.

    confilget_import_us_east_ntp_done

  7. Click Uncommitted to see in the Logical Diff tab that the property sets and configlet were added.

  8. Click Commit. Enter the revision description "Added Junos to US-EAST-NTP configlet", then click Commit to commit the changes to the devices in the Active blueprint. If you like to verify the presence of the configlet contents, you can view it in rendered configuration for all devices in the Active tab.