"Fossies" - the Fresh Open Source Software Archive

Member "ansible-6.1.0/ansible_collections/dellemc/os10/tests/integration/targets/os10_snmp_role/templates/snmp_basic/steps/01_snmp_configure.j2" (3 Dec 2020, 2909 Bytes) of package /linux/misc/ansible-6.1.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 test_roles:
    2   - dellemc.os10.os10_snmp
    3 os10_snmp:
    4   snmp_source_interface: mgmt 1/1/1
    5   snmp_location: Chennai
    6   snmp_community:
    7     - name: public
    8       access_mode: ro
    9       access_list: 
   10         name: test_acl
   11       state: present
   12     - name: test
   13       access_mode: ro
   14       access_list: 
   15         name: test_acl
   16         state: present
   17       state: present
   18   snmp_traps:
   19     - name: all
   20       state: present
   21   snmp_engine_id: 123456789
   22   snmp_remote_engine_id:
   23     - host: 1.1.1.1
   24       engine_id: '0xab'
   25     - host: 1.1.1.1
   26       engine_id: '0xcd'
   27       udpport: 200
   28     - host: 2.1.1.1
   29       engine_id: '0xef'
   30       udpport: 200
   31   snmp_vrf: red
   32   snmp_group:
   33     - name: group_1
   34       version: 1
   35       write_view: 
   36         name: view_2
   37     - name: group_2
   38       version: 2c
   39       state: present
   40       access_list: 
   41         name: test_acl
   42       read_view: 
   43         name: view_1
   44       write_view: 
   45         name: view_2
   46       notify_view: 
   47         name: view_3
   48     - name: group_3
   49       version: 3
   50       security_level: auth
   51       read_view: 
   52         name: view_1
   53       write_view: 
   54         name: view_2
   55         state: present
   56     - name: group_4
   57       version: 3
   58       security_level: priv      
   59       notify_view: 
   60         name: view_1
   61         state: present
   62   snmp_host:
   63    - ip: 1.1.1.1
   64      communitystring: c1
   65      version: "2c"
   66      udpport: 4
   67      state: present
   68    - ip: 2.2.2.2
   69      version: 1
   70      communitystring: c3
   71      state: present
   72    - ip: 2.1.1.1
   73      version: 1
   74      communitystring: c3
   75      trap_categories:
   76        dom: true
   77        entity: true
   78        snmp: true
   79      state: present
   80    - ip: 3.1.1.1
   81      version: 3
   82      security_level: priv
   83      security_name: test
   84      notification_type: informs
   85      udpport: 200
   86      trap_categories:
   87        dom: true
   88        entity: true
   89        envmon: true
   90        lldp: true
   91      state: present
   92   snmp_view:
   93     - name: view_1
   94       oid_subtree: 2
   95       include: true
   96       state: present
   97   snmp_user:
   98     - name: user_1
   99       group_name: group_1
  100       version: 3
  101       authentication:
  102         localized: false
  103         algorithm: md5
  104         password: 9fc53d9d908118b2804fe80e3ba8763d
  105         encryption:
  106           algorithm: aes
  107           password: d0452401a8c3ce42804fe80e3ba8763d
  108       state: present
  109     - name: user_2
  110       group_name: group_1
  111       version: 3
  112       authentication:
  113         localized: true
  114         algorithm: md5
  115         password: '0x9fc53d9d908118b2804fe80e3ba8763d'
  116         encryption:
  117           algorithm: aes
  118           password: '0xd0452401a8c3ce42804fe80e3ba8763d'
  119       state: present
  120     - name: user_3
  121       group_name: group_1
  122       version: 2c
  123       state: present
  124     - name: user_4
  125       group_name: group_1
  126       version: 3
  127       state: present
  128     - name: user_5
  129       group_name: group_2
  130       version: 2c
  131       remote:
  132         ip: 1.1.1.1
  133         udpport: 200
  134       access_list: test_acl
  135       state: present