Note
This plugin is part of the community.network collection.
To install it use: ansible-galaxy collection install community.network.
To use it in a playbook, specify: community.network.nso_config.
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| data string / required | NSO data in format as | display json converted to YAML. List entries can be annotated with a __state entry. Set to in-sync/deep-in-sync for services to verify service is in sync with the network. Set to absent in list entries to ensure they are deleted if they exist in NSO. | |
| password string / required | NSO password | |
| timeout integer | Default: 300 | JSON-RPC request timeout in seconds |
| url string / required | NSO JSON-RPC URL, http://localhost:8080/jsonrpc | |
| username string / required | NSO username | |
| validate_certs boolean |
| When set to true, validates the SSL certificate of NSO when using SSL |
- name: Create L3VPN
community.network.nso_config:
url: http://localhost:8080/jsonrpc
username: username
password: password
data:
l3vpn:vpn:
l3vpn:
- name: company
route-distinguisher: 999
endpoint:
- id: branch-office1
ce-device: ce6
ce-interface: GigabitEthernet0/12
ip-network: 10.10.1.0/24
bandwidth: 12000000
as-number: 65101
- id: branch-office2
ce-device: ce1
ce-interface: GigabitEthernet0/11
ip-network: 10.7.7.0/24
bandwidth: 6000000
as-number: 65102
- id: branch-office3
__state: absent
__state: in-sync
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description | |
|---|---|---|---|
| changes complex | always | List of changes Sample: [{'from': '6000000', 'path': '/l3vpn:vpn/l3vpn{example}/endpoint{office}/bandwidth', 'to': '12000000', 'type': 'set'}] | |
| from string | When previous value is present on value change | Previous value if any, else null | |
| path string | always | Path to value changed | |
| to string | When new value is present on value change | Current value if any, else null. | |
| type string | success | Type of change. create|delete|set|re-deploy | |
| diffs complex | always | List of sync changes Sample: [{'diff': ' devices {\n device pe3 {\n config {\n alu:service {\n vprn 65101 {\n bgp {\n group example-ce6 {\n- peer-as 65102;\n+ peer-as 65101;\n }\n }\n }\n }\n }\n }\n }\n', 'path': '/l3vpn:vpn/l3vpn{example}'}] | |
| diff string | always | configuration difference triggered the re-deploy | |
| path string | always | keypath to service changed | |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/network/nso_config_module.html