ansible-collections / community.yang

Ansible Community Collection to support Yang in network devices.
GNU General Public License v3.0
10 stars 14 forks source link

Yang configure input trace back fix when input is dict #33

Closed rohitthakur2590 closed 4 years ago

rohitthakur2590 commented 4 years ago
SUMMARY

resolve:

ISSUE TYPE
COMPONENT NAME

yang_configure

ADDITIONAL INFORMATION

Input could be provided in following:

community.yang.configure:
        config: "{{ lookup('file', config_file) | to_json }}"
        file: "{{ yang_file }}"
- name: Configure interface description
      community.yang.configure:
        config: |
          {
              "Cisco-IOS-XR-ifmgr-cfg:interface-configurations": {
                  "interface-configuration": [
                      {
                          "active": "act",
                          "description": "test for ansible 200",
                          "interface-name": "Loopback888",
                          "interface-virtual": [
                              null
                          ],
                          "shutdown": [
                              null
                          ]
                      },
              }
          }
rohitthakur2590 commented 4 years ago

duplicate PR