Use single parameter for source-interface (#44260)

* Compress src interface into one key

* Modified regex to support varied interface types

* Fixed documentation

* Unpacking return values from splitting method
This commit is contained in:
Nilashish Chakraborty 2018-08-16 22:33:53 +05:30 committed by GitHub
commit d63ba5999b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 35 deletions

View file

@ -194,8 +194,7 @@
- name: Configure Source Interface for Logging
nxos_logging: &srcint
interface_type: mgmt
interface: 0
interface: mgmt0
register: result
- assert:
@ -220,7 +219,7 @@
- { dest: logfile, dest_level: 1, name: test }
- { facility: daemon, facility_level: 4 }
- { dest: server, remote_server: test-syslogserver.com, facility: auth, facility_level: 1, use_vrf: management }
- { interface_type: mgmt, interface: 0 }
- { interface: mgmt0 }
provider: "{{ connection }}"
state: absent
register: result