Commit fffc456f authored by lavado's avatar lavado
Browse files

updates to snmp setcomm package

parent 7345dd6f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ set service ssh listen-address 0.0.0.0
set service ssh port 22
set system login user osm authentication plaintext-password osm2020
# SNMP
set service snmp community public authorization ro
set service snmp location "OSM Labs"
# Save
commit
+1 −1
Original line number Diff line number Diff line
@@ -11,4 +11,4 @@ modules:
        lookup: 1.3.6.1.2.1.31.1.1.1.1 # ifName
    auth:
      # Community string is used with SNMP v1 and v2. Defaults to "public".
      community: public
      community: secret
+8 −0
Original line number Diff line number Diff line
---
- hosts: all
  connection: local
  tasks:
  - name: change SNMP community
    vyos_config:
      lines:
        - set service snmp community "{{ snmp_community }}" authorization ro
+0 −10
Original line number Diff line number Diff line
---
- name: This is a hello-world example
  hosts: all
  tasks:
    - name: Create a file called '/tmp/testfile.txt' with the content 'hello world'.
      copy:
        content: hello worldn
        dest: "{{ file_path }}"

+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ class VnfEE:
            self._check_required_params(params, ["playbook-name"])

            params["ansible_user"] = self.config_params["ssh-username"]
            #params["ansible_password"] = self.config_params["ssh-password"]
            params["ansible_password"] = self.config_params["ssh-password"]

            inventory = self.config_params["ssh-hostname"] + ","

Loading