EMAIL SUPPORT

dclessons@dclessons.com

LOCATION

US

Enabling Property Sets & Configlets

Enabling Property Sets & Configlets

Task

Configlets are configuration templates that apply to network devices. They augment the Juniper Apstra Datacenter 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, various interface settings, and username / passwords.

In this lab part you will enable a property set and configlets for both Junos and SONiC devices

Solution:

Navigate to Design > Property Sets and click Create Property Set . 

In the Create Property Set window, create a property set with the following properties:

  • Name: snmp-properties
  • Input Type: Builder
  • COMMUNITY : MyCommunity
  • ALLOWED_SERVER : 172.25.11.254

Click Create when you are finished. 

Navigate to Design > Configlets and click Create Configlet . 

In the Create Configlet window, create a configlet with the following properties:

  • Name: junos-snmp
  • Generators:
    • Config Style: Junos
    • Section: Top-Level and Hierarchical
    • Template Text: (see below) 

Select the Create Another? check box and click Create when you are finished.

In the Create Configlet window, create a configlet with the following properties:

  • Name: junos-interface
  • Generators:
    • Config Style: Junos
    • Section: Interface-Level and Set
    • Template Text:  gigether-options no-source-filtering

Select the Create Another? check box and click Create when you are finished.

In the new Create Configlet window, create a configlet with the following properties:

  • Name: sonic-snmp
  • Config Style: SONiC
  • Section: SYSTEM
  • Template Text: sudo -u admin sonic-cli -c config -c 'snmp-server community {{COMMUNITY}}' < /dev/console

Negation Template Text: (see one line of code below) 


Comment

    You are will be the first.

LEAVE A COMMENT

Please login here to comment.