Replace bogus (but routeable) ip addresses with RFC 5737 example addresses (#40554)

* Remove 1.1.1.1 from *_config tests

* remove from *_smoke and *_system

* Miscellaneous other tests

* Remove from module documentation as well

* Remove from unit tests as well

* Remove accidental duplication from rebase
pull/40939/head
Nathaniel Case 7 years ago committed by GitHub
parent 91eb4a034e
commit 82dfa542c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -221,10 +221,10 @@ EXAMPLES = """
- name: load an acl into the device - name: load an acl into the device
eos_config: eos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
replace: block replace: block

@ -241,11 +241,11 @@ EXAMPLES = """
- name: load new acl into device - name: load new acl into device
ios_config: ios_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
- 50 permit ip host 5.5.5.5 any log - 50 permit ip host 192.0.2.5 any log
parents: ip access-list extended test parents: ip access-list extended test
before: no ip access-list extended test before: no ip access-list extended test
match: exact match: exact
@ -279,12 +279,12 @@ updates:
description: The set of commands that will be pushed to the remote device description: The set of commands that will be pushed to the remote device
returned: always returned: always
type: list type: list
sample: ['hostname foo', 'router ospf 1', 'router-id 1.1.1.1'] sample: ['hostname foo', 'router ospf 1', 'router-id 192.0.2.1']
commands: commands:
description: The set of commands that will be pushed to the remote device description: The set of commands that will be pushed to the remote device
returned: always returned: always
type: list type: list
sample: ['hostname foo', 'router ospf 1', 'router-id 1.1.1.1'] sample: ['hostname foo', 'router ospf 1', 'router-id 192.0.2.1']
backup_path: backup_path:
description: The full path to the backup file description: The full path to the backup file
returned: when backup is yes returned: when backup is yes

@ -74,18 +74,18 @@ EXAMPLES = """
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
- name: Delete ipv4 address using aggregate - name: Delete ipv4 address using aggregate
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
state: absent state: absent
""" """
@ -96,7 +96,7 @@ diff:
type: string type: string
sample: > sample: >
[edit interfaces ge-0/0/1 unit 0 family inet] [edit interfaces ge-0/0/1 unit 0 family inet]
+ address 1.1.1.1/32; + address 192.0.2.1/32;
[edit interfaces ge-0/0/1 unit 0 family inet6] [edit interfaces ge-0/0/1 unit 0 family inet6]
+ address fd5d:12c9:2201:1::1/128; + address fd5d:12c9:2201:1::1/128;
""" """

@ -94,7 +94,7 @@ EXAMPLES = """
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: present state: present
@ -105,7 +105,7 @@ EXAMPLES = """
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: absent state: absent
@ -116,7 +116,7 @@ EXAMPLES = """
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
active: False active: False
@ -127,7 +127,7 @@ EXAMPLES = """
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
active: True active: True
@ -139,14 +139,14 @@ EXAMPLES = """
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
- name: test-2 - name: test-2
description: test-vrf-2 description: test-vrf-2
interfaces: interfaces:
- ge-0/0/4 - ge-0/0/4
- ge-0/0/5 - ge-0/0/5
rd: 2.2.2.2:10 rd: 192.0.2.2:10
target: target:65515:114 target: target:65515:114
state: present state: present
""" """
@ -163,7 +163,7 @@ diff.prepared:
+ instance-type vrf; + instance-type vrf;
+ interface ge-0/0/2.0; + interface ge-0/0/2.0;
+ interface ge-0/0/3.0; + interface ge-0/0/3.0;
+ route-distinguisher 1.1.1.1:10; + route-distinguisher 192.0.2.1:10;
+ vrf-target target:65514:113; + vrf-target target:65514:113;
+ } + }
""" """

@ -158,7 +158,7 @@ EXAMPLES = '''
seq: 10 seq: 10
action: permit action: permit
proto: tcp proto: tcp
src: 1.1.1.1/24 src: 192.0.2.1/24
dest: any dest: any
state: present state: present
''' '''
@ -168,7 +168,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["ip access-list ANSIBLE", "10 permit tcp 1.1.1.1/24 any"] sample: ["ip access-list ANSIBLE", "10 permit tcp 192.0.2.1/24 any"]
''' '''
from ansible.module_utils.network.nxos.nxos import load_config, run_commands from ansible.module_utils.network.nxos.nxos import load_config, run_commands
from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args from ansible.module_utils.network.nxos.nxos import nxos_argument_spec, check_args

@ -220,7 +220,7 @@ EXAMPLES = '''
nxos_bgp: nxos_bgp:
asn: 65535 asn: 65535
vrf: test vrf: test
router_id: 1.1.1.1 router_id: 192.0.2.1
state: present state: present
''' '''
@ -229,7 +229,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["router bgp 65535", "vrf test", "router-id 1.1.1.1"] sample: ["router bgp 65535", "vrf test", "router-id 192.0.2.1"]
''' '''
import re import re

@ -151,7 +151,7 @@ EXAMPLES = '''
# create a new neighbor # create a new neighbor
- nxos_bgp_neighbor: - nxos_bgp_neighbor:
asn: 65535 asn: 65535
neighbor: 3.3.3.3 neighbor: 192.0.2.3
local_as: 20 local_as: 20
remote_as: 30 remote_as: 30
description: "just a description" description: "just a description"
@ -164,7 +164,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["router bgp 65535", "neighbor 3.3.3.3", sample: ["router bgp 65535", "neighbor 192.0.2.3",
"remote-as 30", "update-source Ethernet1/3", "remote-as 30", "update-source Ethernet1/3",
"description just a description", "local-as 20"] "description just a description", "local-as 20"]
''' '''

@ -213,7 +213,7 @@ EXAMPLES = '''
- name: configure RR client - name: configure RR client
nxos_bgp_neighbor_af: nxos_bgp_neighbor_af:
asn: 65535 asn: 65535
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
route_reflector_client: true route_reflector_client: true
@ -225,7 +225,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["router bgp 65535", "neighbor 3.3.3.3", sample: ["router bgp 65535", "neighbor 192.0.2.3",
"address-family ipv4 unicast", "route-reflector-client"] "address-family ipv4 unicast", "route-reflector-client"]
''' '''

@ -226,21 +226,21 @@ EXAMPLES = """
- nxos_config: - nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: exact match: exact
- nxos_config: - nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
replace: block replace: block

@ -73,30 +73,30 @@ proposed:
description: k/v pairs of parameters passed into module description: k/v pairs of parameters passed into module
returned: always returned: always
type: dict type: dict
sample: {"address": "2.2.2.2", "key_id": "48", sample: {"address": "192.0.2.2", "key_id": "48",
"peer_type": "server", "prefer": "enabled", "peer_type": "server", "prefer": "enabled",
"source": "3.3.3.3", "source_type": "source"} "source": "192.0.2.3", "source_type": "source"}
existing: existing:
description: description:
- k/v pairs of existing ntp server/peer - k/v pairs of existing ntp server/peer
returned: always returned: always
type: dict type: dict
sample: {"address": "2.2.2.2", "key_id": "32", sample: {"address": "192.0.2.2", "key_id": "32",
"peer_type": "server", "prefer": "enabled", "peer_type": "server", "prefer": "enabled",
"source": "ethernet2/1", "source_type": "source-interface"} "source": "ethernet2/1", "source_type": "source-interface"}
end_state: end_state:
description: k/v pairs of ntp info after module execution description: k/v pairs of ntp info after module execution
returned: always returned: always
type: dict type: dict
sample: {"address": "2.2.2.2", "key_id": "48", sample: {"address": "192.0.2.2", "key_id": "48",
"peer_type": "server", "prefer": "enabled", "peer_type": "server", "prefer": "enabled",
"source": "3.3.3.3", "source_type": "source"} "source": "192.0.2.3", "source_type": "source"}
updates: updates:
description: command sent to the device description: command sent to the device
returned: always returned: always
type: list type: list
sample: ["ntp server 2.2.2.2 prefer key 48", sample: ["ntp server 192.0.2.2 prefer key 48",
"no ntp source-interface ethernet2/1", "ntp source 3.3.3.3"] "no ntp source-interface ethernet2/1", "ntp source 192.0.2.3"]
changed: changed:
description: check to see if a change was made on the device description: check to see if a change was made on the device
returned: always returned: always

@ -74,7 +74,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["router bgp 65535", "vrf test", "router-id 1.1.1.1"] sample: ["router bgp 65535", "vrf test", "router-id 192.0.2.1"]
''' '''

@ -88,7 +88,7 @@ options:
EXAMPLES = ''' EXAMPLES = '''
# ensure snmp host is configured # ensure snmp host is configured
- nxos_snmp_host: - nxos_snmp_host:
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
state: present state: present
''' '''
@ -98,7 +98,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["snmp-server host 3.3.3.3 filter-vrf another_test_vrf"] sample: ["snmp-server host 192.0.2.3 filter-vrf another_test_vrf"]
''' '''

@ -74,7 +74,7 @@ options:
EXAMPLES = ''' EXAMPLES = '''
- nxos_static_route: - nxos_static_route:
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
''' '''
@ -84,7 +84,7 @@ commands:
description: commands sent to the device description: commands sent to the device
returned: always returned: always
type: list type: list
sample: ["ip route 192.168.20.0/24 3.3.3.3 name testing 100"] sample: ["ip route 192.168.20.0/24 192.0.2.3 name testing 100"]
''' '''
import re import re
from copy import deepcopy from copy import deepcopy

@ -65,7 +65,7 @@ EXAMPLES = """
- name: configure host logging - name: configure host logging
net_logging: net_logging:
dest: host dest: host
name: 1.1.1.1 name: 192.0.2.1
facility: kernel facility: kernel
level: critical level: critical

@ -4,21 +4,21 @@
- name: setup - name: setup
asa_config: asa_config:
lines: lines:
- "clear configure tunnel-group 1.1.1.1" - "clear configure tunnel-group 192.0.2.1"
provider: "{{ cli }}" provider: "{{ cli }}"
ignore_errors: yes ignore_errors: yes
- name: Prepare tunnel-group - name: Prepare tunnel-group
asa_config: asa_config:
before: tunnel-group 1.1.1.1 type ipsec-l2l before: tunnel-group 192.0.2.1 type ipsec-l2l
lines: lines:
- "tunnel-group 1.1.1.1 ipsec-attributes" - "tunnel-group 192.0.2.1 ipsec-attributes"
provider: "{{ cli }}" provider: "{{ cli }}"
- name: Setup tunnel-group - name: Setup tunnel-group
asa_config: asa_config:
parents: tunnel-group 1.1.1.1 ipsec-attributes parents: tunnel-group 192.0.2.1 ipsec-attributes
lines: lines:
- "ikev1 pre-shared-key abc123" - "ikev1 pre-shared-key abc123"
passwords: yes passwords: yes
@ -26,7 +26,7 @@
- name: Test idempotency - name: Test idempotency
asa_config: asa_config:
parents: tunnel-group 1.1.1.1 ipsec-attributes parents: tunnel-group 192.0.2.1 ipsec-attributes
lines: lines:
- "ikev1 pre-shared-key abc123" - "ikev1 pre-shared-key abc123"
passwords: yes passwords: yes
@ -40,7 +40,7 @@
- name: teardown - name: teardown
asa_config: asa_config:
lines: lines:
- "clear configure tunnel-group 1.1.1.1" - "clear configure tunnel-group 192.0.2.1"
provider: "{{ cli }}" provider: "{{ cli }}"

@ -4,9 +4,9 @@
- name: setup - name: setup
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
before: ['no ip access-list test'] before: ['no ip access-list test']
after: ['exit'] after: ['exit']
@ -16,10 +16,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
replace: block replace: block
after: ['exit'] after: ['exit']
@ -30,18 +30,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'seq 5 permit ip host 1.1.1.1 any count byte' in result.updates" - "'seq 5 permit ip host 192.0.2.1 any count byte' in result.updates"
- "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates" - "'seq 10 permit ip host 192.0.2.2 any count byte' in result.updates"
- "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates" - "'seq 15 permit ip host 192.0.2.3 any count byte' in result.updates"
- "'seq 20 permit ip host 4.4.4.4 any count byte' in result.updates" - "'seq 20 permit ip host 192.0.2.4 any count byte' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
replace: block replace: block
after: ['exit'] after: ['exit']

@ -4,11 +4,11 @@
- name: setup - name: setup
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
- seq 25 permit ip host 5.5.5.5 any count byte - seq 25 permit ip host 192.0.2.5 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
before: ['no ip access-list test'] before: ['no ip access-list test']
after: ['exit'] after: ['exit']
@ -18,10 +18,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
after: ['exit'] after: ['exit']
match: exact match: exact
@ -32,20 +32,20 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'seq 5 permit ip host 1.1.1.1 any count byte' in result.updates" - "'seq 5 permit ip host 192.0.2.1 any count byte' in result.updates"
- "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates" - "'seq 10 permit ip host 192.0.2.2 any count byte' in result.updates"
- "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates" - "'seq 15 permit ip host 192.0.2.3 any count byte' in result.updates"
- "'seq 20 permit ip host 4.4.4.4 any count byte' in result.updates" - "'seq 20 permit ip host 192.0.2.4 any count byte' in result.updates"
- "'seq 25 permit ip host 5.5.5.5 any count byte' not in result.updates" - "'seq 25 permit ip host 192.0.2.5 any count byte' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
- seq 25 permit ip host 5.5.5.5 any count byte - seq 25 permit ip host 192.0.2.5 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
after: ['exit'] after: ['exit']
match: exact match: exact

@ -4,11 +4,11 @@
- name: setup - name: setup
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
- seq 25 permit ip host 5.5.5.5 any count byte - seq 25 permit ip host 192.0.2.5 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
before: ['no ip access-list test'] before: ['no ip access-list test']
after: ['exit'] after: ['exit']
@ -18,10 +18,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 20 permit ip host 4.4.4.4 any count byte - seq 20 permit ip host 192.0.2.4 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
match: strict match: strict
provider: "{{ cli }}" provider: "{{ cli }}"
@ -34,9 +34,9 @@
- name: check sub level command using strict match - name: check sub level command using strict match
dellos10_config: dellos10_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any count byte - seq 5 permit ip host 192.0.2.1 any count byte
- seq 15 permit ip host 3.3.3.3 any count byte - seq 15 permit ip host 192.0.2.3 any count byte
- seq 10 permit ip host 2.2.2.2 any count byte - seq 10 permit ip host 192.0.2.2 any count byte
parents: ['ip access-list test'] parents: ['ip access-list test']
after: ['exit'] after: ['exit']
match: strict match: strict
@ -47,11 +47,11 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'seq 5 permit ip host 1.1.1.1 any count byte' not in result.updates" - "'seq 5 permit ip host 192.0.2.1 any count byte' not in result.updates"
- "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates" - "'seq 10 permit ip host 192.0.2.2 any count byte' in result.updates"
- "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates" - "'seq 15 permit ip host 192.0.2.3 any count byte' in result.updates"
- "'seq 20 permit ip host 4.4.4.4 any count byte' not in result.updates" - "'seq 20 permit ip host 192.0.2.4 any count byte' not in result.updates"
- "'seq 25 permit ip host 5.5.5.5 any count byte' not in result.updates" - "'seq 25 permit ip host 192.0.2.5 any count byte' not in result.updates"
- name: teardown - name: teardown
dellos10_config: dellos10_config:

@ -4,9 +4,9 @@
- name: setup - name: setup
dellos6_config: dellos6_config:
lines: lines:
- permit ip 1.1.1.1 0.0.0.0 any log - permit ip 192.0.2.1 0.0.0.0 any log
- permit ip 2.2.2.2 0.0.0.0 any log - permit ip 192.0.2.2 0.0.0.0 any log
- permit ip 3.3.3.3 0.0.0.0 any log - permit ip 192.0.2.3 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
before: ['no ip access-list test'] before: ['no ip access-list test']
after: ['exit'] after: ['exit']
@ -16,10 +16,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
dellos6_config: dellos6_config:
lines: lines:
- 1000 permit ip 1.1.1.1 0.0.0.0 any log - 1000 permit ip 192.0.2.1 0.0.0.0 any log
- 1010 permit ip 2.2.2.2 0.0.0.0 any log - 1010 permit ip 192.0.2.2 0.0.0.0 any log
- 1020 permit ip 3.3.3.3 0.0.0.0 any log - 1020 permit ip 192.0.2.3 0.0.0.0 any log
- 1030 permit ip 4.4.4.4 0.0.0.0 any log - 1030 permit ip 192.0.2.4 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
replace: block replace: block
after: ['exit'] after: ['exit']
@ -30,18 +30,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'1000 permit ip 1.1.1.1 0.0.0.0 any log' in result.updates" - "'1000 permit ip 192.0.2.1 0.0.0.0 any log' in result.updates"
- "'1010 permit ip 2.2.2.2 0.0.0.0 any log' in result.updates" - "'1010 permit ip 192.0.2.2 0.0.0.0 any log' in result.updates"
- "'1020 permit ip 3.3.3.3 0.0.0.0 any log' in result.updates" - "'1020 permit ip 192.0.2.3 0.0.0.0 any log' in result.updates"
- "'1030 permit ip 4.4.4.4 0.0.0.0 any log' in result.updates" - "'1030 permit ip 192.0.2.4 0.0.0.0 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
dellos6_config: dellos6_config:
lines: lines:
- 1000 permit ip 1.1.1.1 0.0.0.0 any log - 1000 permit ip 192.0.2.1 0.0.0.0 any log
- 1010 permit ip 2.2.2.2 0.0.0.0 any log - 1010 permit ip 192.0.2.2 0.0.0.0 any log
- 1020 permit ip 3.3.3.3 0.0.0.0 any log - 1020 permit ip 192.0.2.3 0.0.0.0 any log
- 1030 permit ip 4.4.4.4 0.0.0.0 any log - 1030 permit ip 192.0.2.4 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
replace: block replace: block
after: ['exit'] after: ['exit']

@ -4,11 +4,11 @@
- name: setup - name: setup
dellos6_config: dellos6_config:
lines: lines:
- permit ip 1.1.1.1 0.0.0.0 any log - permit ip 192.0.2.1 0.0.0.0 any log
- permit ip 2.2.2.2 0.0.0.0 any log - permit ip 192.0.2.2 0.0.0.0 any log
- permit ip 3.3.3.3 0.0.0.0 any log - permit ip 192.0.2.3 0.0.0.0 any log
- permit ip 4.4.4.4 0.0.0.0 any log - permit ip 192.0.2.4 0.0.0.0 any log
- permit ip 5.5.5.5 0.0.0.0 any log - permit ip 192.0.2.5 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
before: ['no ip access-list test'] before: ['no ip access-list test']
after: ['exit'] after: ['exit']
@ -18,10 +18,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
dellos6_config: dellos6_config:
lines: lines:
- 1000 permit ip 1.1.1.1 0.0.0.0 any log - 1000 permit ip 192.0.2.1 0.0.0.0 any log
- 1010 permit ip 2.2.2.2 0.0.0.0 any log - 1010 permit ip 192.0.2.2 0.0.0.0 any log
- 1020 permit ip 3.3.3.3 0.0.0.0 any log - 1020 permit ip 192.0.2.3 0.0.0.0 any log
- 1030 permit ip 4.4.4.4 0.0.0.0 any log - 1030 permit ip 192.0.2.4 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
after: ['exit'] after: ['exit']
match: exact match: exact
@ -32,20 +32,20 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'1000 permit ip 1.1.1.1 0.0.0.0 any log' in result.updates" - "'1000 permit ip 192.0.2.1 0.0.0.0 any log' in result.updates"
- "'1010 permit ip 2.2.2.2 0.0.0.0 any log' in result.updates" - "'1010 permit ip 192.0.2.2 0.0.0.0 any log' in result.updates"
- "'1020 permit ip 3.3.3.3 0.0.0.0 any log' in result.updates" - "'1020 permit ip 192.0.2.3 0.0.0.0 any log' in result.updates"
- "'1030 permit ip 4.4.4.4 0.0.0.0 any log' in result.updates" - "'1030 permit ip 192.0.2.4 0.0.0.0 any log' in result.updates"
- "'1040 permit ip 5.5.5.5 0.0.0.0 any log' not in result.updates" - "'1040 permit ip 192.0.2.5 0.0.0.0 any log' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
dellos6_config: dellos6_config:
lines: lines:
- 1000 permit ip 1.1.1.1 0.0.0.0 any log - 1000 permit ip 192.0.2.1 0.0.0.0 any log
- 1010 permit ip 2.2.2.2 0.0.0.0 any log - 1010 permit ip 192.0.2.2 0.0.0.0 any log
- 1020 permit ip 3.3.3.3 0.0.0.0 any log - 1020 permit ip 192.0.2.3 0.0.0.0 any log
- 1030 permit ip 4.4.4.4 0.0.0.0 any log - 1030 permit ip 192.0.2.4 0.0.0.0 any log
- 1040 permit ip 5.5.5.5 0.0.0.0 any log - 1040 permit ip 192.0.2.5 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
after: ['exit'] after: ['exit']
match: exact match: exact

@ -4,11 +4,11 @@
- name: setup - name: setup
dellos6_config: dellos6_config:
lines: lines:
- permit ip 1.1.1.1 0.0.0.0 any log - permit ip 192.0.2.1 0.0.0.0 any log
- permit ip 2.2.2.2 0.0.0.0 any log - permit ip 192.0.2.2 0.0.0.0 any log
- permit ip 3.3.3.3 0.0.0.0 any log - permit ip 192.0.2.3 0.0.0.0 any log
- permit ip 4.4.4.4 0.0.0.0 any log - permit ip 192.0.2.4 0.0.0.0 any log
- permit ip 5.5.5.5 0.0.0.0 any log - permit ip 192.0.2.5 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
before: ['no ip access-list test'] before: ['no ip access-list test']
after: ['exit'] after: ['exit']
@ -18,10 +18,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
dellos6_config: dellos6_config:
lines: lines:
- 1000 permit ip 1.1.1.1 0.0.0.0 any log - 1000 permit ip 192.0.2.1 0.0.0.0 any log
- 1010 permit ip 2.2.2.2 0.0.0.0 any log - 1010 permit ip 192.0.2.2 0.0.0.0 any log
- 1020 permit ip 3.3.3.3 0.0.0.0 any log - 1020 permit ip 192.0.2.3 0.0.0.0 any log
- 1030 permit ip 4.4.4.4 0.0.0.0 any log - 1030 permit ip 192.0.2.4 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
match: strict match: strict
provider: "{{ cli }}" provider: "{{ cli }}"
@ -34,9 +34,9 @@
- name: check sub level command using strict match - name: check sub level command using strict match
dellos6_config: dellos6_config:
lines: lines:
- 1000 permit ip 1.1.1.1 0.0.0.0 any log - 1000 permit ip 192.0.2.1 0.0.0.0 any log
- 1010 permit ip 3.3.3.3 0.0.0.0 any log - 1010 permit ip 192.0.2.3 0.0.0.0 any log
- 1020 permit ip 2.2.2.2 0.0.0.0 any log - 1020 permit ip 192.0.2.2 0.0.0.0 any log
parents: ['ip access-list test'] parents: ['ip access-list test']
after: ['exit'] after: ['exit']
match: strict match: strict
@ -47,11 +47,11 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'1000 permit ip 1.1.1.1 0.0.0.0 any log' not in result.updates" - "'1000 permit ip 192.0.2.1 0.0.0.0 any log' not in result.updates"
- "'1020 permit ip 2.2.2.2 0.0.0.0 any log' in result.updates" - "'1020 permit ip 192.0.2.2 0.0.0.0 any log' in result.updates"
- "'1010 permit ip 3.3.3.3 0.0.0.0 any log' in result.updates" - "'1010 permit ip 192.0.2.3 0.0.0.0 any log' in result.updates"
- "'1030 permit ip 4.4.4.4 0.0.0.0 any log' not in result.updates" - "'1030 permit ip 192.0.2.4 0.0.0.0 any log' not in result.updates"
- "'1040 permit ip 5.5.5.5 0.0.0.0 any log' not in result.updates" - "'1040 permit ip 192.0.2.5 0.0.0.0 any log' not in result.updates"
- name: teardown - name: teardown
dellos6_config: dellos6_config:

@ -4,9 +4,9 @@
- name: setup - name: setup
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
before: ['no ip access-list extended test'] before: ['no ip access-list extended test']
after: ['exit'] after: ['exit']
@ -16,10 +16,10 @@
- name: configure sub level command using block replace - name: configure sub level command using block replace
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
replace: block replace: block
after: ['exit'] after: ['exit']
@ -30,18 +30,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
replace: block replace: block
after: ['exit'] after: ['exit']

@ -4,11 +4,11 @@
- name: setup - name: setup
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
- seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5 - seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
before: ['no ip access-list extended test'] before: ['no ip access-list extended test']
after: ['exit'] after: ['exit']
@ -18,10 +18,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
after: ['exit'] after: ['exit']
match: exact match: exact
@ -32,20 +32,20 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5' not in result.updates" - "'seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
- seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5 - seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
after: ['exit'] after: ['exit']
match: exact match: exact

@ -4,11 +4,11 @@
- name: setup - name: setup
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
- seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5 - seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
before: ['no ip access-list extended test'] before: ['no ip access-list extended test']
after: ['exit'] after: ['exit']
@ -18,10 +18,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5 - seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
match: strict match: strict
provider: "{{ cli }}" provider: "{{ cli }}"
@ -34,9 +34,9 @@
- name: check sub level command using strict match - name: check sub level command using strict match
dellos9_config: dellos9_config:
lines: lines:
- seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5 - seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5
- seq 10 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5 - seq 10 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5
- seq 15 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5 - seq 15 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
after: ['exit'] after: ['exit']
match: strict match: strict
@ -47,11 +47,11 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'seq 5 permit ip host 1.1.1.1 any log threshold-in-msgs 10 interval 5' not in result.updates" - "'seq 5 permit ip host 192.0.2.1 any log threshold-in-msgs 10 interval 5' not in result.updates"
- "'seq 15 permit ip host 2.2.2.2 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 15 permit ip host 192.0.2.2 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 10 permit ip host 3.3.3.3 any log threshold-in-msgs 10 interval 5' in result.updates" - "'seq 10 permit ip host 192.0.2.3 any log threshold-in-msgs 10 interval 5' in result.updates"
- "'seq 20 permit ip host 4.4.4.4 any log threshold-in-msgs 10 interval 5' not in result.updates" - "'seq 20 permit ip host 192.0.2.4 any log threshold-in-msgs 10 interval 5' not in result.updates"
- "'seq 25 permit ip host 5.5.5.5 any log threshold-in-msgs 10 interval 5' not in result.updates" - "'seq 25 permit ip host 192.0.2.5 any log threshold-in-msgs 10 interval 5' not in result.updates"
- name: teardown - name: teardown
dellos9_config: dellos9_config:

@ -4,9 +4,9 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -16,10 +16,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
after: exit after: exit
@ -30,18 +30,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'20 permit ip host 2.2.2.2 any log' in result.updates" - "'20 permit ip host 192.0.2.2 any log' in result.updates"
- "'30 permit ip host 3.3.3.3 any log' in result.updates" - "'30 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
after: exit after: exit

@ -4,11 +4,11 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
- 50 permit ip host 5.5.5.5 any log - 50 permit ip host 192.0.2.5 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -18,10 +18,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -34,19 +34,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'20 permit ip host 2.2.2.2 any log' in result.updates" - "'20 permit ip host 192.0.2.2 any log' in result.updates"
- "'30 permit ip host 3.3.3.3 any log' in result.updates" - "'30 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- "'50 permit ip host 5.5.5.5 any log' not in result.updates" - "'50 permit ip host 192.0.2.5 any log' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
match: exact match: exact
become: yes become: yes

@ -4,11 +4,11 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
- 50 permit ip host 5.5.5.5 any log - 50 permit ip host 192.0.2.5 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -18,10 +18,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 3.3.3.3 any log - 20 permit ip host 192.0.2.3 any log
- 30 permit ip host 2.2.2.2 any log - 30 permit ip host 192.0.2.2 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -34,19 +34,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'30 permit ip host 2.2.2.2 any log' in result.updates" - "'30 permit ip host 192.0.2.2 any log' in result.updates"
- "'20 permit ip host 3.3.3.3 any log' in result.updates" - "'20 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- "'50 permit ip host 5.5.5.5 any log' not in result.updates" - "'50 permit ip host 192.0.2.5 any log' not in result.updates"
- name: check sub level command using strict match - name: check sub level command using strict match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 3.3.3.3 any log - 20 permit ip host 192.0.2.3 any log
- 30 permit ip host 2.2.2.2 any log - 30 permit ip host 192.0.2.2 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
match: strict match: strict
become: yes become: yes

@ -4,9 +4,9 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: none match: none
@ -15,10 +15,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
after: end after: end
replace: block replace: block
@ -29,18 +29,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'20 permit ip host 2.2.2.2 any log' in result.updates" - "'20 permit ip host 192.0.2.2 any log' in result.updates"
- "'30 permit ip host 3.3.3.3 any log' in result.updates" - "'30 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
become: yes become: yes

@ -4,11 +4,11 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
- 50 permit ip host 5.5.5.5 any log - 50 permit ip host 192.0.2.5 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -18,10 +18,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -33,19 +33,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'20 permit ip host 2.2.2.2 any log' in result.updates" - "'20 permit ip host 192.0.2.2 any log' in result.updates"
- "'30 permit ip host 3.3.3.3 any log' in result.updates" - "'30 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- "'50 permit ip host 5.5.5.5 any log' not in result.updates" - "'50 permit ip host 192.0.2.5 any log' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
before: no ip access-list test before: no ip access-list test
parents: ip access-list test parents: ip access-list test
match: exact match: exact

@ -4,11 +4,11 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
- 50 permit ip host 5.5.5.5 any log - 50 permit ip host 192.0.2.5 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: none match: none
@ -17,10 +17,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 3.3.3.3 any log - 20 permit ip host 192.0.2.3 any log
- 30 permit ip host 2.2.2.2 any log - 30 permit ip host 192.0.2.2 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -33,19 +33,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'30 permit ip host 2.2.2.2 any log' in result.updates" - "'30 permit ip host 192.0.2.2 any log' in result.updates"
- "'20 permit ip host 3.3.3.3 any log' in result.updates" - "'20 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- "'50 permit ip host 5.5.5.5 any log' not in result.updates" - "'50 permit ip host 192.0.2.5 any log' not in result.updates"
- name: check sub level command using strict match - name: check sub level command using strict match
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 3.3.3.3 any log - 20 permit ip host 192.0.2.3 any log
- 30 permit ip host 2.2.2.2 any log - 30 permit ip host 192.0.2.2 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
match: strict match: strict
become: yes become: yes

@ -49,9 +49,9 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -62,10 +62,10 @@
- name: configure sub level command using block replace - name: configure sub level command using block replace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
after: exit after: exit
@ -78,18 +78,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'20 permit ip host 2.2.2.2 any log' in result.updates" - "'20 permit ip host 192.0.2.2 any log' in result.updates"
- "'30 permit ip host 3.3.3.3 any log' in result.updates" - "'30 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
after: exit after: exit

@ -49,9 +49,9 @@
- name: setup - name: setup
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
after: exit after: exit
@ -62,10 +62,10 @@
- name: configure sub level command using block replace - name: configure sub level command using block replace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
after: exit after: exit
@ -78,18 +78,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip host 1.1.1.1 any log' in result.updates" - "'10 permit ip host 192.0.2.1 any log' in result.updates"
- "'20 permit ip host 2.2.2.2 any log' in result.updates" - "'20 permit ip host 192.0.2.2 any log' in result.updates"
- "'30 permit ip host 3.3.3.3 any log' in result.updates" - "'30 permit ip host 192.0.2.3 any log' in result.updates"
- "'40 permit ip host 4.4.4.4 any log' in result.updates" - "'40 permit ip host 192.0.2.4 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
eos_config: eos_config:
lines: lines:
- 10 permit ip host 1.1.1.1 any log - 10 permit ip host 192.0.2.1 any log
- 20 permit ip host 2.2.2.2 any log - 20 permit ip host 192.0.2.2 any log
- 30 permit ip host 3.3.3.3 any log - 30 permit ip host 192.0.2.3 any log
- 40 permit ip host 4.4.4.4 any log - 40 permit ip host 192.0.2.4 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
after: exit after: exit

@ -12,9 +12,9 @@
- name: configure name_servers - name: configure name_servers
eos_system: eos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
become: yes become: yes
register: result register: result
@ -22,16 +22,16 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 3 - result.commands|length == 3
- "'ip name-server 1.1.1.1' in result.commands" - "'ip name-server 192.0.2.1' in result.commands"
- "'ip name-server 2.2.2.2' in result.commands" - "'ip name-server 192.0.2.2' in result.commands"
- "'ip name-server 3.3.3.3' in result.commands" - "'ip name-server 192.0.2.3' in result.commands"
- name: verify name_servers - name: verify name_servers
eos_system: eos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
become: yes become: yes
register: result register: result
@ -42,9 +42,9 @@
#- name: change to vrf #- name: change to vrf
# eos_system: # eos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# become: yes # become: yes
# register: result # register: result
@ -52,15 +52,15 @@
# that: # that:
# - result.changed == true # - result.changed == true
# - result.commands|length == 2 # - result.commands|length == 2
# - "'no ip name-server 2.2.2.2' in result.commands" # - "'no ip name-server 192.0.2.2' in result.commands"
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" # - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
#- name: verify change to vrf #- name: verify change to vrf
# eos_system: # eos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# become: yes # become: yes
# register: result # register: result
# #
@ -71,8 +71,8 @@
- name: remove one - name: remove one
eos_system: eos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
become: yes become: yes
register: result register: result
@ -80,7 +80,7 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- "'no ip name-server 3.3.3.3' in result.commands" - "'no ip name-server 192.0.2.3' in result.commands"
- name: teardown - name: teardown
eos_config: eos_config:

@ -12,9 +12,9 @@
- name: configure name_servers - name: configure name_servers
eos_system: eos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
become: yes become: yes
register: result register: result
@ -22,16 +22,16 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 3 - result.commands|length == 3
- "'ip name-server 1.1.1.1' in result.commands" - "'ip name-server 192.0.2.1' in result.commands"
- "'ip name-server 2.2.2.2' in result.commands" - "'ip name-server 192.0.2.2' in result.commands"
- "'ip name-server 3.3.3.3' in result.commands" - "'ip name-server 192.0.2.3' in result.commands"
- name: verify name_servers - name: verify name_servers
eos_system: eos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
become: yes become: yes
register: result register: result
@ -42,9 +42,9 @@
#- name: change to vrf #- name: change to vrf
# eos_system: # eos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# become: yes # become: yes
# register: result # register: result
@ -52,15 +52,15 @@
# that: # that:
# - result.changed == true # - result.changed == true
# - result.commands|length == 2 # - result.commands|length == 2
# - "'no ip name-server 2.2.2.2' in result.commands" # - "'no ip name-server 192.0.2.2' in result.commands"
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" # - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
#- name: verify change to vrf #- name: verify change to vrf
# eos_system: # eos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# become: yes # become: yes
# register: result # register: result
# #
@ -71,8 +71,8 @@
- name: remove one - name: remove one
eos_system: eos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
become: yes become: yes
register: result register: result
@ -80,7 +80,7 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- "'no ip name-server 3.3.3.3' in result.commands" - "'no ip name-server 192.0.2.3' in result.commands"
- name: teardown - name: teardown
eos_config: eos_config:

@ -4,9 +4,9 @@
- name: setup - name: setup
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
before: ['no ip access-list extended test'] before: ['no ip access-list extended test']
after: ['exit'] after: ['exit']
@ -16,10 +16,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
replace: block replace: block
after: ['exit'] after: ['exit']
@ -30,18 +30,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'permit ip host 1.1.1.1 any log' in result.updates" - "'permit ip host 192.0.2.1 any log' in result.updates"
- "'permit ip host 2.2.2.2 any log' in result.updates" - "'permit ip host 192.0.2.2 any log' in result.updates"
- "'permit ip host 3.3.3.3 any log' in result.updates" - "'permit ip host 192.0.2.3 any log' in result.updates"
- "'permit ip host 4.4.4.4 any log' in result.updates" - "'permit ip host 192.0.2.4 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
replace: block replace: block
after: ['exit'] after: ['exit']

@ -4,11 +4,11 @@
- name: setup - name: setup
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
- permit ip host 5.5.5.5 any log - permit ip host 192.0.2.5 any log
parents: ip access-list extended test parents: ip access-list extended test
before: no ip access-list extended test before: no ip access-list extended test
after: exit after: exit
@ -18,10 +18,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
parents: ip access-list extended test parents: ip access-list extended test
before: no ip access-list extended test before: no ip access-list extended test
after: exit after: exit
@ -33,19 +33,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'permit ip host 1.1.1.1 any log' in result.updates" - "'permit ip host 192.0.2.1 any log' in result.updates"
- "'permit ip host 2.2.2.2 any log' in result.updates" - "'permit ip host 192.0.2.2 any log' in result.updates"
- "'permit ip host 3.3.3.3 any log' in result.updates" - "'permit ip host 192.0.2.3 any log' in result.updates"
- "'permit ip host 4.4.4.4 any log' in result.updates" - "'permit ip host 192.0.2.4 any log' in result.updates"
- "'permit ip host 5.5.5.5 any log' not in result.updates" - "'permit ip host 192.0.2.5 any log' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
parents: ip access-list extended test parents: ip access-list extended test
match: exact match: exact
provider: "{{ cli }}" provider: "{{ cli }}"

@ -4,11 +4,11 @@
- name: setup - name: setup
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
- permit ip host 5.5.5.5 any log - permit ip host 192.0.2.5 any log
parents: ip access-list extended test parents: ip access-list extended test
before: no ip access-list extended test before: no ip access-list extended test
match: none match: none
@ -17,10 +17,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
parents: ip access-list extended test parents: ip access-list extended test
match: strict match: strict
provider: "{{ cli }}" provider: "{{ cli }}"
@ -33,9 +33,9 @@
- name: check sub level command using strict match - name: check sub level command using strict match
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
parents: ip access-list extended test parents: ip access-list extended test
after: exit after: exit
match: strict match: strict
@ -46,11 +46,11 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'permit ip host 1.1.1.1 any log' not in result.updates" - "'permit ip host 192.0.2.1 any log' not in result.updates"
- "'permit ip host 2.2.2.2 any log' in result.updates" - "'permit ip host 192.0.2.2 any log' in result.updates"
- "'permit ip host 3.3.3.3 any log' in result.updates" - "'permit ip host 192.0.2.3 any log' in result.updates"
- "'permit ip host 4.4.4.4 any log' not in result.updates" - "'permit ip host 192.0.2.4 any log' not in result.updates"
- "'permit ip host 5.5.5.5 any log' not in result.updates" - "'permit ip host 192.0.2.5 any log' not in result.updates"
- name: teardown - name: teardown
ios_config: ios_config:

@ -42,9 +42,9 @@
- name: setup test NetworkConfig.difference, replace=block - name: setup test NetworkConfig.difference, replace=block
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
before: ['no ip access-list extended test'] before: ['no ip access-list extended test']
after: ['exit'] after: ['exit']
@ -54,10 +54,10 @@
- name: test NetworkConfig.difference, replace=block - name: test NetworkConfig.difference, replace=block
ios_config: ios_config:
lines: lines:
- permit ip host 1.1.1.1 any log - permit ip host 192.0.2.1 any log
- permit ip host 2.2.2.2 any log - permit ip host 192.0.2.2 any log
- permit ip host 3.3.3.3 any log - permit ip host 192.0.2.3 any log
- permit ip host 4.4.4.4 any log - permit ip host 192.0.2.4 any log
parents: ['ip access-list extended test'] parents: ['ip access-list extended test']
replace: block replace: block
after: ['exit'] after: ['exit']
@ -68,10 +68,10 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list extended test' in result.updates" - "'ip access-list extended test' in result.updates"
- "'permit ip host 1.1.1.1 any log' in result.updates" - "'permit ip host 192.0.2.1 any log' in result.updates"
- "'permit ip host 2.2.2.2 any log' in result.updates" - "'permit ip host 192.0.2.2 any log' in result.updates"
- "'permit ip host 3.3.3.3 any log' in result.updates" - "'permit ip host 192.0.2.3 any log' in result.updates"
- "'permit ip host 4.4.4.4 any log' in result.updates" - "'permit ip host 192.0.2.4 any log' in result.updates"
- name: teardown- NetworkConfig.difference, replace=block - name: teardown- NetworkConfig.difference, replace=block
ios_config: ios_config:

@ -11,9 +11,9 @@
- name: configure name_servers - name: configure name_servers
ios_system: ios_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
@ -21,16 +21,16 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 3 - result.commands|length == 3
- "'ip name-server 1.1.1.1' in result.commands" - "'ip name-server 192.0.2.1' in result.commands"
- "'ip name-server 2.2.2.2' in result.commands" - "'ip name-server 192.0.2.2' in result.commands"
- "'ip name-server 3.3.3.3' in result.commands" - "'ip name-server 192.0.2.3' in result.commands"
- name: verify name_servers - name: verify name_servers
ios_system: ios_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
@ -41,9 +41,9 @@
#- name: change to vrf #- name: change to vrf
# ios_system: # ios_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# provider: "{{ cli }}" # provider: "{{ cli }}"
# register: result # register: result
@ -51,15 +51,15 @@
# that: # that:
# - result.changed == true # - result.changed == true
# - result.commands|length == 2 # - result.commands|length == 2
# - "'no ip name-server 2.2.2.2' in result.commands" # - "'no ip name-server 192.0.2.2' in result.commands"
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" # - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
#- name: verify change to vrf #- name: verify change to vrf
# ios_system: # ios_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# provider: "{{ cli }}" # provider: "{{ cli }}"
# register: result # register: result
# #
@ -70,8 +70,8 @@
- name: remove one - name: remove one
ios_system: ios_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
@ -79,7 +79,7 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- "'no ip name-server 3.3.3.3' in result.commands" - "'no ip name-server 192.0.2.3' in result.commands"
- name: teardown - name: teardown
ios_config: ios_config:

@ -4,9 +4,9 @@
- name: setup - name: setup
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
before: ['no ipv4 access-list test'] before: ['no ipv4 access-list test']
match: none match: none
@ -14,10 +14,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
replace: block replace: block
register: result register: result
@ -26,18 +26,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ipv4 access-list test' in result.commands" - "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands"
- name: check sub level command using block replace - name: check sub level command using block replace
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
replace: block replace: block
register: result register: result

@ -4,11 +4,11 @@
- name: setup - name: setup
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
- 50 permit ipv4 host 5.5.5.5 any log - 50 permit ipv4 host 192.0.2.5 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
before: ['no ipv4 access-list test'] before: ['no ipv4 access-list test']
match: none match: none
@ -16,10 +16,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
match: exact match: exact
register: result register: result
@ -28,20 +28,20 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ipv4 access-list test' in result.commands" - "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands"
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands" - "'50 permit ipv4 host 192.0.2.5 any log' not in result.commands"
- name: check sub level command using exact match - name: check sub level command using exact match
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
- 50 permit ipv4 host 5.5.5.5 any log - 50 permit ipv4 host 192.0.2.5 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
match: exact match: exact
register: result register: result

@ -4,11 +4,11 @@
- name: setup - name: setup
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 3.3.3.3 any log - 20 permit ipv4 host 192.0.2.3 any log
- 30 permit ipv4 host 2.2.2.2 any log - 30 permit ipv4 host 192.0.2.2 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
- 50 permit ipv4 host 5.5.5.5 any log - 50 permit ipv4 host 192.0.2.5 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
before: ['no ipv4 access-list test'] before: ['no ipv4 access-list test']
match: none match: none
@ -16,10 +16,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
before: ['no ipv4 access-list test'] before: ['no ipv4 access-list test']
match: strict match: strict
@ -30,19 +30,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ipv4 access-list test' in result.commands" - "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands"
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands" - "'50 permit ipv4 host 192.0.2.5 any log' not in result.commands"
- name: check sub level command using strict match - name: check sub level command using strict match
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
match: strict match: strict
register: result register: result

@ -5,9 +5,9 @@
- name: setup - name: setup
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
before: ['no ipv4 access-list test'] before: ['no ipv4 access-list test']
match: none match: none
@ -15,10 +15,10 @@
- name: configure sub level command using block resplace - name: configure sub level command using block resplace
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
replace: block replace: block
register: result register: result
@ -27,18 +27,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ipv4 access-list test' in result.commands" - "'ipv4 access-list test' in result.commands"
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands" - "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands" - "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands" - "'30 permit ipv4 host 192.0.2.3 any log' in result.commands"
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands" - "'40 permit ipv4 host 192.0.2.4 any log' in result.commands"
- name: check sub level command using block replace - name: check sub level command using block replace
iosxr_config: iosxr_config:
commands: commands:
- 10 permit ipv4 host 1.1.1.1 any log - 10 permit ipv4 host 192.0.2.1 any log
- 20 permit ipv4 host 2.2.2.2 any log - 20 permit ipv4 host 192.0.2.2 any log
- 30 permit ipv4 host 3.3.3.3 any log - 30 permit ipv4 host 192.0.2.3 any log
- 40 permit ipv4 host 4.4.4.4 any log - 40 permit ipv4 host 192.0.2.4 any log
parents: ['ipv4 access-list test'] parents: ['ipv4 access-list test']
replace: block replace: block
register: result register: result

@ -4,18 +4,18 @@
- name: setup - name: setup
iosxr_config: iosxr_config:
lines: lines:
- no ip name-server 1.1.1.1 - no ip name-server 192.0.2.1
- no ip name-server 2.2.2.2 - no ip name-server 192.0.2.2
- no ip name-server 3.3.3.3 - no ip name-server 192.0.2.3
match: none match: none
provider: "{{ cli }}" provider: "{{ cli }}"
- name: configure name_servers - name: configure name_servers
iosxr_system: iosxr_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
@ -23,16 +23,16 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 3 - result.commands|length == 3
- "'domain name-server 1.1.1.1' in result.commands" - "'domain name-server 192.0.2.1' in result.commands"
- "'domain name-server 2.2.2.2' in result.commands" - "'domain name-server 192.0.2.2' in result.commands"
- "'domain name-server 3.3.3.3' in result.commands" - "'domain name-server 192.0.2.3' in result.commands"
- name: verify name_servers - name: verify name_servers
iosxr_system: iosxr_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
@ -43,8 +43,8 @@
- name: remove one - name: remove one
iosxr_system: iosxr_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
provider: "{{ cli }}" provider: "{{ cli }}"
register: result register: result
@ -52,13 +52,13 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- "'no domain name-server 3.3.3.3' in result.commands" - "'no domain name-server 192.0.2.3' in result.commands"
- name: setup - name: setup
iosxr_config: iosxr_config:
lines: lines:
- no ip name-server 1.1.1.1 - no ip name-server 192.0.2.1
- no ip name-server 2.2.2.2 - no ip name-server 192.0.2.2
match: none match: none
provider: "{{ cli }}" provider: "{{ cli }}"

@ -5,9 +5,9 @@
- name: setup - name: setup
iosxr_config: iosxr_config:
lines: lines:
- no domain name-server 1.1.1.1 - no domain name-server 192.0.2.1
- no domain name-server 2.2.2.2 - no domain name-server 192.0.2.2
- no domain name-server 3.3.3.3 - no domain name-server 192.0.2.3
match: none match: none
provider: "{{ cli }}" provider: "{{ cli }}"
connection: network_cli connection: network_cli
@ -16,9 +16,9 @@
iosxr_system: iosxr_system:
vrf: ansible vrf: ansible
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ netconf }}" provider: "{{ netconf }}"
state: absent state: absent
connection: netconf connection: netconf
@ -28,9 +28,9 @@
- name: configure name_servers - name: configure name_servers
iosxr_system: iosxr_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ netconf }}" provider: "{{ netconf }}"
connection: netconf connection: netconf
register: result register: result
@ -39,16 +39,16 @@
that: that:
- result.changed == true - result.changed == true
- result.xml|length == 1 - result.xml|length == 1
- "'1.1.1.1' in result.xml[0]" - "'192.0.2.1' in result.xml[0]"
- "'2.2.2.2' in result.xml[0]" - "'192.0.2.2' in result.xml[0]"
- "'3.3.3.3' in result.xml[0]" - "'192.0.2.3' in result.xml[0]"
- name: verify name_servers - name: verify name_servers
iosxr_system: iosxr_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ netconf }}" provider: "{{ netconf }}"
connection: netconf connection: netconf
register: result register: result
@ -61,9 +61,9 @@
iosxr_system: &addvrf iosxr_system: &addvrf
vrf: ansible vrf: ansible
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
provider: "{{ netconf }}" provider: "{{ netconf }}"
connection: netconf connection: netconf
register: result register: result
@ -73,9 +73,9 @@
- result.changed == true - result.changed == true
- result.xml|length == 1 - result.xml|length == 1
- "'ansible' in result.xml[0]" - "'ansible' in result.xml[0]"
- "'1.1.1.1' in result.xml[0]" - "'192.0.2.1' in result.xml[0]"
- "'2.2.2.2' in result.xml[0]" - "'192.0.2.2' in result.xml[0]"
- "'3.3.3.3' in result.xml[0]" - "'192.0.2.3' in result.xml[0]"
- name: verify change to vrf - name: verify change to vrf
iosxr_system: *addvrf iosxr_system: *addvrf
@ -89,8 +89,8 @@
- name: remove one - name: remove one
iosxr_system: iosxr_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
provider: "{{ netconf }}" provider: "{{ netconf }}"
connection: netconf connection: netconf
register: result register: result
@ -99,14 +99,14 @@
that: that:
- result.changed == true - result.changed == true
- result.xml|length == 1 - result.xml|length == 1
- "'3.3.3.3' in result.xml[0]" - "'192.0.2.3' in result.xml[0]"
- name: remove one with vrf - name: remove one with vrf
iosxr_system: iosxr_system:
vrf: ansible vrf: ansible
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
provider: "{{ netconf }}" provider: "{{ netconf }}"
connection: netconf connection: netconf
ignore_errors: True ignore_errors: True
@ -115,8 +115,8 @@
- name: teardown - name: teardown
iosxr_config: iosxr_config:
lines: lines:
- no domain name-server 1.1.1.1 - no domain name-server 192.0.2.1
- no domain name-server 2.2.2.2 - no domain name-server 192.0.2.2
match: none match: none
provider: "{{ cli }}" provider: "{{ cli }}"
connection: network_cli connection: network_cli
@ -125,8 +125,8 @@
iosxr_system: iosxr_system:
vrf: ansible vrf: ansible
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
provider: "{{ netconf }}" provider: "{{ netconf }}"
state: absent state: absent
connection: netconf connection: netconf

@ -13,7 +13,7 @@
junos_config: junos_config:
lines: lines:
- 'set system host-name {{ inventory_hostname_short }}' - 'set system host-name {{ inventory_hostname_short }}'
- 'set interfaces lo0 unit 0 family inet address 1.1.1.1/32' - 'set interfaces lo0 unit 0 family inet address 192.0.2.1/32'
provider: "{{ netconf }}" provider: "{{ netconf }}"
register: result register: result
@ -23,13 +23,13 @@
# Ensure host-name *hasn't* been updated # Ensure host-name *hasn't* been updated
- "'host-name;' not in result.diff.prepared" - "'host-name;' not in result.diff.prepared"
# Ensure interface has *been* updated # Ensure interface has *been* updated
- "'address 1.1.1.1/32' in result.diff.prepared" - "'address 192.0.2.1/32' in result.diff.prepared"
- name: check multiple commands idempotent - name: check multiple commands idempotent
junos_config: junos_config:
lines: lines:
- 'set system host-name {{ inventory_hostname_short }}' - 'set system host-name {{ inventory_hostname_short }}'
- 'set interfaces lo0 unit 0 family inet address 1.1.1.1/32' - 'set interfaces lo0 unit 0 family inet address 192.0.2.1/32'
provider: "{{ netconf }}" provider: "{{ netconf }}"
register: result register: result

@ -48,7 +48,7 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- "'address 1.1.1.1/32' in result.diff.prepared" - "'address 192.0.2.1/32' in result.diff.prepared"
- name: check device with config - name: check device with config
junos_config: junos_config:
@ -79,7 +79,7 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- "'address 1.1.1.1/32' in result.diff.prepared" - "'address 192.0.2.1/32' in result.diff.prepared"
- name: check device with config - name: check device with config
junos_config: junos_config:

@ -4,7 +4,7 @@
- name: setup - remove interface address - name: setup - remove interface address
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -12,7 +12,7 @@
- name: Configure interface address - name: Configure interface address
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -27,15 +27,15 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- "'<name>1.1.1.1/32</name>' in config.xml" - "'<name>192.0.2.1/32</name>' in config.xml"
- "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml" - "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml"
- result.diff.prepared is search("\+ *address 1.1.1.1/32") - result.diff.prepared is search("\+ *address 192.0.2.1/32")
- result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128")
- name: Configure interface address (idempotent) - name: Configure interface address (idempotent)
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -48,7 +48,7 @@
- name: Deactivate interface address - name: Deactivate interface address
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: present state: present
active: False active: False
@ -65,13 +65,13 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'<address inactive=\"inactive\">' in config.xml" - "'<address inactive=\"inactive\">' in config.xml"
- result.diff.prepared is search("! *inactive[:] address 1.1.1.1/32") - result.diff.prepared is search("! *inactive[:] address 192.0.2.1/32")
- result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:1::1/128")
- name: Activate interface address - name: Activate interface address
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: present state: present
active: True active: True
@ -81,13 +81,13 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- result.diff.prepared is search("! *active[:] address 1.1.1.1/32") - result.diff.prepared is search("! *active[:] address 192.0.2.1/32")
- result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:1::1/128")
- name: Delete interface address - name: Delete interface address
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -95,13 +95,13 @@
- assert: - assert:
that: that:
- result.diff.prepared is search("\- *address 1.1.1.1/32") - result.diff.prepared is search("\- *address 192.0.2.1/32")
- result.diff.prepared is search("\- *address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("\- *address fd5d:12c9:2201:1::1/128")
- name: Delete interface address (idempotent) - name: Delete interface address (idempotent)
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -114,7 +114,7 @@
- name: Aggregate setup- delete interface ge-0/0/1 - name: Aggregate setup- delete interface ge-0/0/1
junos_l3_interface: junos_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -123,7 +123,7 @@
- name: Aggregate setup- delete interface ge-0/0/2 - name: Aggregate setup- delete interface ge-0/0/2
junos_l3_interface: junos_l3_interface:
name: ge-0/0/2 name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -133,10 +133,10 @@
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
provider: "{{ netconf }}" provider: "{{ netconf }}"
register: result register: result
@ -145,11 +145,11 @@
that: that:
- 'result.changed == true' - 'result.changed == true'
- "'edit interfaces ge-0/0/1 unit 0 family inet' in result.diff.prepared" - "'edit interfaces ge-0/0/1 unit 0 family inet' in result.diff.prepared"
- result.diff.prepared is search("\+ *address 1.1.1.1/32") - result.diff.prepared is search("\+ *address 192.0.2.1/32")
- "'edit interfaces ge-0/0/1 unit 0 family inet6' in result.diff.prepared" - "'edit interfaces ge-0/0/1 unit 0 family inet6' in result.diff.prepared"
- result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128")
- "'edit interfaces ge-0/0/2 unit 0 family inet' in result.diff.prepared" - "'edit interfaces ge-0/0/2 unit 0 family inet' in result.diff.prepared"
- result.diff.prepared is search("\+ *address 2.2.2.2/32") - result.diff.prepared is search("\+ *address 192.0.2.2/32")
- "'edit interfaces ge-0/0/2 unit 0 family inet6' in result.diff.prepared" - "'edit interfaces ge-0/0/2 unit 0 family inet6' in result.diff.prepared"
- result.diff.prepared is search("\+ *address fd5d:12c9:2201:2::2/128") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:2::2/128")
@ -157,10 +157,10 @@
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
active: True active: True
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -174,10 +174,10 @@
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
active: False active: False
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -186,19 +186,19 @@
- assert: - assert:
that: that:
- 'result.changed == true' - 'result.changed == true'
- result.diff.prepared is search("! *inactive[:] address 1.1.1.1/32") - result.diff.prepared is search("! *inactive[:] address 192.0.2.1/32")
- result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:1::1/128")
- result.diff.prepared is search("! *inactive[:] address 2.2.2.2/32") - result.diff.prepared is search("! *inactive[:] address 192.0.2.2/32")
- result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:2::2/128") - result.diff.prepared is search("! *inactive[:] address fd5d:12c9:2201:2::2/128")
- name: Activate l3 interface configuration - name: Activate l3 interface configuration
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
active: True active: True
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -207,19 +207,19 @@
- assert: - assert:
that: that:
- 'result.changed == true' - 'result.changed == true'
- result.diff.prepared is search("! *active[:] address 1.1.1.1/32") - result.diff.prepared is search("! *active[:] address 192.0.2.1/32")
- result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:1::1/128")
- result.diff.prepared is search("! *active[:] address 2.2.2.2/32") - result.diff.prepared is search("! *active[:] address 192.0.2.2/32")
- result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:2::2/128") - result.diff.prepared is search("! *active[:] address fd5d:12c9:2201:2::2/128")
- name: Delete l3 interface configuration - name: Delete l3 interface configuration
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -229,11 +229,11 @@
that: that:
- 'result.changed == true' - 'result.changed == true'
- "'edit interfaces ge-0/0/1 unit 0 family inet' in result.diff.prepared" - "'edit interfaces ge-0/0/1 unit 0 family inet' in result.diff.prepared"
- result.diff.prepared is search("\- *address 1.1.1.1/32") - result.diff.prepared is search("\- *address 192.0.2.1/32")
- "'edit interfaces ge-0/0/1 unit 0 family inet6' in result.diff.prepared" - "'edit interfaces ge-0/0/1 unit 0 family inet6' in result.diff.prepared"
- result.diff.prepared is search("\- *address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("\- *address fd5d:12c9:2201:1::1/128")
- "'edit interfaces ge-0/0/2 unit 0 family inet' in result.diff.prepared" - "'edit interfaces ge-0/0/2 unit 0 family inet' in result.diff.prepared"
- result.diff.prepared is search("\- *address 2.2.2.2/32") - result.diff.prepared is search("\- *address 192.0.2.2/32")
- "'edit interfaces ge-0/0/2 unit 0 family inet6' in result.diff.prepared" - "'edit interfaces ge-0/0/2 unit 0 family inet6' in result.diff.prepared"
- result.diff.prepared is search("\- *address fd5d:12c9:2201:2::2/128") - result.diff.prepared is search("\- *address fd5d:12c9:2201:2::2/128")
@ -241,10 +241,10 @@
junos_l3_interface: junos_l3_interface:
aggregate: aggregate:
- name: ge-0/0/1 - name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
- name: ge-0/0/2 - name: ge-0/0/2
ipv4: 2.2.2.2 ipv4: 192.0.2.2
ipv6: fd5d:12c9:2201:2::2 ipv6: fd5d:12c9:2201:2::2
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"

@ -7,7 +7,7 @@
- name: setup - remove interface address - name: setup - remove interface address
net_l3_interface: net_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -15,7 +15,7 @@
- name: Configure interface address using platform agnostic module - name: Configure interface address using platform agnostic module
net_l3_interface: net_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -30,15 +30,15 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- "'<name>1.1.1.1/32</name>' in config.xml" - "'<name>192.0.2.1/32</name>' in config.xml"
- "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml" - "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml"
- result.diff.prepared is search("\+ *address 1.1.1.1/32") - result.diff.prepared is search("\+ *address 192.0.2.1/32")
- result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128")
- name: teardown - remove interface address - name: teardown - remove interface address
net_l3_interface: net_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"

@ -62,7 +62,7 @@
- name: setup - remove interface address - name: setup - remove interface address
net_l3_interface: net_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -70,7 +70,7 @@
- name: Configure interface address using platform agnostic module - name: Configure interface address using platform agnostic module
net_l3_interface: net_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -85,15 +85,15 @@
- assert: - assert:
that: that:
- "result.changed == true" - "result.changed == true"
- "'<name>1.1.1.1/32</name>' in config.xml" - "'<name>192.0.2.1/32</name>' in config.xml"
- "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml" - "'<name>fd5d:12c9:2201:1::1/128</name>' in config.xml"
- result.diff.prepared is search("\+ *address 1.1.1.1/32") - result.diff.prepared is search("\+ *address 192.0.2.1/32")
- result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128") - result.diff.prepared is search("\+ *address fd5d:12c9:2201:1::1/128")
- name: teardown - remove interface address - name: teardown - remove interface address
net_l3_interface: net_l3_interface:
name: ge-0/0/1 name: ge-0/0/1
ipv4: 1.1.1.1 ipv4: 192.0.2.1
ipv6: fd5d:12c9:2201:1::1 ipv6: fd5d:12c9:2201:1::1
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"

@ -14,7 +14,7 @@
interfaces: interfaces:
- ge-0/0/6 - ge-0/0/6
- ge-0/0/5 - ge-0/0/5
rd: 3.3.3.3:10 rd: 192.0.2.3:10
target: target:65513:111 target: target:65513:111
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -28,7 +28,7 @@
- result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *instance-type vrf")
- result.diff.prepared is search("\+ *interface ge-0/0/5.0") - result.diff.prepared is search("\+ *interface ge-0/0/5.0")
- result.diff.prepared is search("\+ *interface ge-0/0/6.0") - result.diff.prepared is search("\+ *interface ge-0/0/6.0")
- result.diff.prepared is search("\+ *route-distinguisher 3.3.3.3:10") - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.3:10")
- result.diff.prepared is search("\+ *vrf-target target:65513:111") - result.diff.prepared is search("\+ *vrf-target target:65513:111")
- name: Configure vrf and its parameter (idempotent) - name: Configure vrf and its parameter (idempotent)
@ -38,7 +38,7 @@
interfaces: interfaces:
- ge-0/0/6 - ge-0/0/6
- ge-0/0/5 - ge-0/0/5
rd: 3.3.3.3:10 rd: 192.0.2.3:10
target: target:65513:111 target: target:65513:111
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -55,7 +55,7 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -68,7 +68,7 @@
- result.diff.prepared is search("\+ *interface ge-0/0/2.0") - result.diff.prepared is search("\+ *interface ge-0/0/2.0")
- result.diff.prepared is search("\+ *interface ge-0/0/3.0") - result.diff.prepared is search("\+ *interface ge-0/0/3.0")
- "'[edit routing-instances test-1]' in result.diff.prepared" - "'[edit routing-instances test-1]' in result.diff.prepared"
- result.diff.prepared is search("\+ *route-distinguisher 1.1.1.1:10") - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.1:10")
- result.diff.prepared is search("\+ *vrf-target target:65514:113") - result.diff.prepared is search("\+ *vrf-target target:65514:113")
- name: Deactivate vrf - name: Deactivate vrf
@ -78,7 +78,7 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: present state: present
active: False active: False
@ -104,7 +104,7 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: present state: present
active: True active: True
@ -130,7 +130,7 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -144,7 +144,7 @@
- result.diff.prepared is search("\- *instance-type vrf") - result.diff.prepared is search("\- *instance-type vrf")
- result.diff.prepared is search("\- *interface ge-0/0/2.0") - result.diff.prepared is search("\- *interface ge-0/0/2.0")
- result.diff.prepared is search("\- *interface ge-0/0/3.0") - result.diff.prepared is search("\- *interface ge-0/0/3.0")
- result.diff.prepared is search("\- *route-distinguisher 1.1.1.1:10") - result.diff.prepared is search("\- *route-distinguisher 192.0.2.1:10")
- result.diff.prepared is search("\- *vrf-target target:65514:113") - result.diff.prepared is search("\- *vrf-target target:65514:113")
- name: Delete vrf (idempotent) - name: Delete vrf (idempotent)
@ -154,7 +154,7 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
state: absent state: absent
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -181,14 +181,14 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
- name: test-2 - name: test-2
description: test-vrf-2 description: test-vrf-2
interfaces: interfaces:
- ge-0/0/4 - ge-0/0/4
- ge-0/0/5 - ge-0/0/5
rd: 2.2.2.2:10 rd: 192.0.2.2:10
target: target:65515:114 target: target:65515:114
provider: "{{ netconf }}" provider: "{{ netconf }}"
register: result register: result
@ -201,14 +201,14 @@
- result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *instance-type vrf")
- result.diff.prepared is search("\+ *interface ge-0/0/2.0") - result.diff.prepared is search("\+ *interface ge-0/0/2.0")
- result.diff.prepared is search("\+ *interface ge-0/0/3.0") - result.diff.prepared is search("\+ *interface ge-0/0/3.0")
- result.diff.prepared is search("\+ *route-distinguisher 1.1.1.1:10") - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.1:10")
- result.diff.prepared is search("\+ *vrf-target target:65514:113") - result.diff.prepared is search("\+ *vrf-target target:65514:113")
- result.diff.prepared is search("\+ *test-2") - result.diff.prepared is search("\+ *test-2")
- result.diff.prepared is search("\+ *description test-vrf-2") - result.diff.prepared is search("\+ *description test-vrf-2")
- result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *instance-type vrf")
- result.diff.prepared is search("\+ *interface ge-0/0/4.0") - result.diff.prepared is search("\+ *interface ge-0/0/4.0")
- result.diff.prepared is search("\+ *interface ge-0/0/5.0") - result.diff.prepared is search("\+ *interface ge-0/0/5.0")
- result.diff.prepared is search("\+ *route-distinguisher 2.2.2.2:10") - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.2:10")
- result.diff.prepared is search("\+ *vrf-target target:65515:114") - result.diff.prepared is search("\+ *vrf-target target:65515:114")
- name: Deactivate vrf configuration using aggregate - name: Deactivate vrf configuration using aggregate
@ -219,14 +219,14 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
- name: test-2 - name: test-2
description: test-vrf-2 description: test-vrf-2
interfaces: interfaces:
- ge-0/0/4 - ge-0/0/4
- ge-0/0/5 - ge-0/0/5
rd: 2.2.2.2:10 rd: 192.0.2.2:10
target: target:65515:114 target: target:65515:114
active: False active: False
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -254,14 +254,14 @@
interfaces: interfaces:
- ge-0/0/3 - ge-0/0/3
- ge-0/0/2 - ge-0/0/2
rd: 1.1.1.1:10 rd: 192.0.2.1:10
target: target:65514:113 target: target:65514:113
- name: test-2 - name: test-2
description: test-vrf-2 description: test-vrf-2
interfaces: interfaces:
- ge-0/0/4 - ge-0/0/4
- ge-0/0/5 - ge-0/0/5
rd: 2.2.2.2:10 rd: 192.0.2.2:10
target: target:65515:114 target: target:65515:114
active: True active: True
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -298,14 +298,14 @@
- result.diff.prepared is search("\- *instance-type vrf") - result.diff.prepared is search("\- *instance-type vrf")
- result.diff.prepared is search("\- *interface ge-0/0/2.0") - result.diff.prepared is search("\- *interface ge-0/0/2.0")
- result.diff.prepared is search("\- *interface ge-0/0/3.0") - result.diff.prepared is search("\- *interface ge-0/0/3.0")
- result.diff.prepared is search("\- *route-distinguisher 1.1.1.1:10") - result.diff.prepared is search("\- *route-distinguisher 192.0.2.1:10")
- result.diff.prepared is search("\- *vrf-target target:65514:113") - result.diff.prepared is search("\- *vrf-target target:65514:113")
- result.diff.prepared is search("\- *test-2") - result.diff.prepared is search("\- *test-2")
- result.diff.prepared is search("\- *description test-vrf-2") - result.diff.prepared is search("\- *description test-vrf-2")
- result.diff.prepared is search("\- *instance-type vrf") - result.diff.prepared is search("\- *instance-type vrf")
- result.diff.prepared is search("\- *interface ge-0/0/4.0") - result.diff.prepared is search("\- *interface ge-0/0/4.0")
- result.diff.prepared is search("\- *interface ge-0/0/5.0") - result.diff.prepared is search("\- *interface ge-0/0/5.0")
- result.diff.prepared is search("\- *route-distinguisher 2.2.2.2:10") - result.diff.prepared is search("\- *route-distinguisher 192.0.2.2:10")
- result.diff.prepared is search("\- *vrf-target target:65515:114") - result.diff.prepared is search("\- *vrf-target target:65515:114")
- name: Delete vrf configuration using aggregate (idempotent) - name: Delete vrf configuration using aggregate (idempotent)

@ -17,7 +17,7 @@
interfaces: interfaces:
- ge-0/0/6 - ge-0/0/6
- ge-0/0/5 - ge-0/0/5
rd: 3.3.3.3:10 rd: 192.0.2.3:10
target: target:65513:111 target: target:65513:111
state: present state: present
provider: "{{ netconf }}" provider: "{{ netconf }}"
@ -31,7 +31,7 @@
- result.diff.prepared is search("\+ *instance-type vrf") - result.diff.prepared is search("\+ *instance-type vrf")
- result.diff.prepared is search("\+ *interface ge-0/0/5.0") - result.diff.prepared is search("\+ *interface ge-0/0/5.0")
- result.diff.prepared is search("\+ *interface ge-0/0/6.0") - result.diff.prepared is search("\+ *interface ge-0/0/6.0")
- result.diff.prepared is search("\+ *route-distinguisher 3.3.3.3:10") - result.diff.prepared is search("\+ *route-distinguisher 192.0.2.3:10")
- result.diff.prepared is search("\+ *vrf-target target:65513:111") - result.diff.prepared is search("\+ *vrf-target target:65513:111")
- name: teardown - remove vrf - name: teardown - remove vrf

@ -19,7 +19,7 @@
seq: 10 seq: 10
action: permit action: permit
proto: tcp proto: tcp
src: 1.1.1.1/24 src: 192.0.2.1/24
src_port_op: range src_port_op: range
src_port1: 1900 src_port1: 1900
src_port2: 1910 src_port2: 1910
@ -57,7 +57,7 @@
seq: 10 seq: 10
action: deny action: deny
proto: tcp proto: tcp
src: 1.1.1.1/24 src: 192.0.2.1/24
src_port_op: range src_port_op: range
src_port1: 1900 src_port1: 1900
src_port2: 1910 src_port2: 1910

@ -37,7 +37,7 @@
seq: 10 seq: 10
action: permit action: permit
proto: tcp proto: tcp
src: 1.1.1.1/24 src: 192.0.2.1/24
dest: any dest: any
- block: - block:

@ -20,7 +20,7 @@
nxos_bgp: &set_multi_vrf nxos_bgp: &set_multi_vrf
asn: 65535 asn: 65535
vrf: "{{ item }}" vrf: "{{ item }}"
router_id: 1.1.1.1 router_id: 192.0.2.1
bestpath_always_compare_med: true bestpath_always_compare_med: true
bestpath_aspath_multipath_relax: true bestpath_aspath_multipath_relax: true
bestpath_compare_routerid: true bestpath_compare_routerid: true

@ -29,7 +29,7 @@
- name: "Configure BGP defaults" - name: "Configure BGP defaults"
nxos_bgp: &configure_default nxos_bgp: &configure_default
asn: 65535 asn: 65535
router_id: 1.1.1.1 router_id: 192.0.2.1
state: present state: present
register: result register: result
@ -60,7 +60,7 @@
- name: "Configure BGP non defaults" - name: "Configure BGP non defaults"
nxos_bgp: &configure_non_default nxos_bgp: &configure_non_default
asn: 65535 asn: 65535
router_id: 1.1.1.1 router_id: 192.0.2.1
bestpath_always_compare_med: true bestpath_always_compare_med: true
bestpath_aspath_multipath_relax: true bestpath_aspath_multipath_relax: true
bestpath_compare_routerid: true bestpath_compare_routerid: true

@ -24,7 +24,7 @@
- name: "Setup" - name: "Setup"
nxos_bgp_neighbor: &removenp nxos_bgp_neighbor: &removenp
asn: 65535 asn: 65535
neighbor: 3.3.3.3 neighbor: 192.0.2.3
vrf: "{{ item }}" vrf: "{{ item }}"
state: absent state: absent
with_items: "{{ vrfs }}" with_items: "{{ vrfs }}"
@ -33,7 +33,7 @@
- name: "Setup" - name: "Setup"
nxos_bgp_neighbor: &remove nxos_bgp_neighbor: &remove
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
state: absent state: absent
with_items: "{{ vrfs }}" with_items: "{{ vrfs }}"
@ -43,7 +43,7 @@
- name: "Configure BGP neighbor1" - name: "Configure BGP neighbor1"
nxos_bgp_neighbor: &configure1 nxos_bgp_neighbor: &configure1
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
connected_check: true connected_check: true
capability_negotiation: true capability_negotiation: true
@ -80,7 +80,7 @@
- name: "Configure BGP neighbor2" - name: "Configure BGP neighbor2"
nxos_bgp_neighbor: &configure2 nxos_bgp_neighbor: &configure2
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
connected_check: False connected_check: False
capability_negotiation: False capability_negotiation: False
@ -127,7 +127,7 @@
- name: "Configure BGP neighbor3" - name: "Configure BGP neighbor3"
nxos_bgp_neighbor: &configure3 nxos_bgp_neighbor: &configure3
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
description: "tested by ansible" description: "tested by ansible"
remove_private_as: "{{remove_private_asa|default(omit)}}" remove_private_as: "{{remove_private_asa|default(omit)}}"
@ -147,7 +147,7 @@
- name: "Configure BGP neighbor4" - name: "Configure BGP neighbor4"
nxos_bgp_neighbor: &configure4 nxos_bgp_neighbor: &configure4
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
description: "tested by ansible" description: "tested by ansible"
remove_private_as: "{{remove_private_asr|default(omit)}}" remove_private_as: "{{remove_private_asr|default(omit)}}"
@ -174,7 +174,7 @@
- name: "Configure BGP neighbor 3des password" - name: "Configure BGP neighbor 3des password"
nxos_bgp_neighbor: &configure_3des_password nxos_bgp_neighbor: &configure_3des_password
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
remote_as: 30 remote_as: 30
pwd: '386c0565965f89de' pwd: '386c0565965f89de'
@ -201,7 +201,7 @@
- name: "Configure BGP neighbor type 7 password" - name: "Configure BGP neighbor type 7 password"
nxos_bgp_neighbor: &configure_type7_password nxos_bgp_neighbor: &configure_type7_password
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
remote_as: 30 remote_as: 30
pwd: '386c0565965f89de' pwd: '386c0565965f89de'
@ -221,7 +221,7 @@
- name: "Remove BGP neighbor password" - name: "Remove BGP neighbor password"
nxos_bgp_neighbor: &remove_password nxos_bgp_neighbor: &remove_password
asn: 65535 asn: 65535
neighbor: 3.3.3.3/32 neighbor: 192.0.2.3/32
vrf: "{{ item }}" vrf: "{{ item }}"
remote_as: 30 remote_as: 30
pwd: default pwd: default
@ -248,7 +248,7 @@
- name: "Configure BGP neighbor transport type passive" - name: "Configure BGP neighbor transport type passive"
nxos_bgp_neighbor: &configure_transport_passive nxos_bgp_neighbor: &configure_transport_passive
asn: 65535 asn: 65535
neighbor: 3.3.3.3 neighbor: 192.0.2.3
vrf: "{{ item }}" vrf: "{{ item }}"
remote_as: 30 remote_as: 30
transport_passive_only: true transport_passive_only: true
@ -267,7 +267,7 @@
- name: "Configure BGP neighbor transport type default" - name: "Configure BGP neighbor transport type default"
nxos_bgp_neighbor: &configure_transport_default nxos_bgp_neighbor: &configure_transport_default
asn: 65535 asn: 65535
neighbor: 3.3.3.3 neighbor: 192.0.2.3
vrf: "{{ item }}" vrf: "{{ item }}"
remote_as: 30 remote_as: 30
transport_passive_only: false transport_passive_only: false

@ -22,7 +22,7 @@
- name: "Configure BGP neighbor address-family" - name: "Configure BGP neighbor address-family"
nxos_bgp_neighbor_af: &configure1 nxos_bgp_neighbor_af: &configure1
asn: 65535 asn: 65535
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
additional_paths_receive: 'enable' additional_paths_receive: 'enable'
@ -63,7 +63,7 @@
- name: "Configure BGP neighbor address-family def1" - name: "Configure BGP neighbor address-family def1"
nxos_bgp_neighbor_af: &configure_def1 nxos_bgp_neighbor_af: &configure_def1
asn: 65535 asn: 65535
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
additional_paths_receive: 'inherit' additional_paths_receive: 'inherit'
@ -100,7 +100,7 @@
- name: "Setup: Remove BGP config" - name: "Setup: Remove BGP config"
nxos_bgp_neighbor_af: &removenaf nxos_bgp_neighbor_af: &removenaf
asn: 65535 asn: 65535
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
state: absent state: absent
@ -117,7 +117,7 @@
- name: "Configure BGP neighbor address-family" - name: "Configure BGP neighbor address-family"
nxos_bgp_neighbor_af: &configure2 nxos_bgp_neighbor_af: &configure2
asn: 65535 asn: 65535
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
allowas_in_max: '5' allowas_in_max: '5'
@ -142,7 +142,7 @@
- name: "Configure BGP neighbor address-family def2" - name: "Configure BGP neighbor address-family def2"
nxos_bgp_neighbor_af: &configure_def2 nxos_bgp_neighbor_af: &configure_def2
asn: 65535 asn: 65535
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
allowas_in_max: default allowas_in_max: default
@ -180,14 +180,14 @@
nxos_bgp_neighbor: nxos_bgp_neighbor:
asn: 65535 asn: 65535
vrf: 'blue' vrf: 'blue'
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
remote_as: 2 remote_as: 2
- name: "Configure BGP neighbor 3" - name: "Configure BGP neighbor 3"
nxos_bgp_neighbor_af: &configure3 nxos_bgp_neighbor_af: &configure3
asn: 65535 asn: 65535
vrf: 'blue' vrf: 'blue'
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
additional_paths_receive: 'disable' additional_paths_receive: 'disable'
@ -211,7 +211,7 @@
nxos_bgp_neighbor_af: &configure_def3 nxos_bgp_neighbor_af: &configure_def3
asn: 65535 asn: 65535
vrf: 'blue' vrf: 'blue'
neighbor: '3.3.3.3' neighbor: '192.0.2.3'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
additional_paths_receive: 'inherit' additional_paths_receive: 'inherit'
@ -241,13 +241,13 @@
- name: "Configure BGP neighbor af route_reflector_client" - name: "Configure BGP neighbor af route_reflector_client"
nxos_bgp_neighbor: nxos_bgp_neighbor:
asn: 65535 asn: 65535
neighbor: '2.2.2.2' neighbor: '192.0.2.2'
remote_as: 65535 remote_as: 65535
- name: "Configure BGP neighbor 4" - name: "Configure BGP neighbor 4"
nxos_bgp_neighbor_af: &configure4 nxos_bgp_neighbor_af: &configure4
asn: 65535 asn: 65535
neighbor: '2.2.2.2' neighbor: '192.0.2.2'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
route_reflector_client: 'true' route_reflector_client: 'true'
@ -264,7 +264,7 @@
- name: "Configure BGP neighbor def4" - name: "Configure BGP neighbor def4"
nxos_bgp_neighbor_af: &configure_def4 nxos_bgp_neighbor_af: &configure_def4
asn: 65535 asn: 65535
neighbor: '2.2.2.2' neighbor: '192.0.2.2'
afi: ipv4 afi: ipv4
safi: unicast safi: unicast
route_reflector_client: False route_reflector_client: False

@ -26,7 +26,7 @@
- name: "Configure BGP defaults" - name: "Configure BGP defaults"
nxos_bgp: &configure_default nxos_bgp: &configure_default
asn: 65535 asn: 65535
router_id: 1.1.1.1 router_id: 192.0.2.1
state: present state: present
register: result register: result

@ -26,7 +26,7 @@
- name: "Configure BGP defaults" - name: "Configure BGP defaults"
nxos_bgp: &configure_default nxos_bgp: &configure_default
asn: 65535 asn: 65535
router_id: 1.1.1.1 router_id: 192.0.2.1
state: present state: present
register: result register: result

@ -4,11 +4,11 @@
- name: setup - name: setup
nxos_config: nxos_config:
commands: commands:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: none match: none
@ -16,10 +16,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
nxos_config: nxos_config:
commands: commands:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
match: exact match: exact
register: result register: result
@ -28,20 +28,20 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip 1.1.1.1/32 any log' in result.updates" - "'10 permit ip 192.0.2.1/32 any log' in result.updates"
- "'20 permit ip 2.2.2.2/32 any log' in result.updates" - "'20 permit ip 192.0.2.2/32 any log' in result.updates"
- "'30 permit ip 3.3.3.3/32 any log' in result.updates" - "'30 permit ip 192.0.2.3/32 any log' in result.updates"
- "'40 permit ip 4.4.4.4/32 any log' in result.updates" - "'40 permit ip 192.0.2.4/32 any log' in result.updates"
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates" - "'50 permit ip 192.0.2.5/32 any log' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
match: exact match: exact
register: result register: result

@ -4,11 +4,11 @@
- name: setup - name: setup
nxos_config: nxos_config:
commands: commands:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: none match: none
@ -16,10 +16,10 @@
- name: configure sub level command using strict match - name: configure sub level command using strict match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: strict match: strict
@ -30,19 +30,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip 1.1.1.1/32 any log' in result.updates" - "'10 permit ip 192.0.2.1/32 any log' in result.updates"
- "'20 permit ip 2.2.2.2/32 any log' in result.updates" - "'20 permit ip 192.0.2.2/32 any log' in result.updates"
- "'30 permit ip 3.3.3.3/32 any log' in result.updates" - "'30 permit ip 192.0.2.3/32 any log' in result.updates"
- "'40 permit ip 4.4.4.4/32 any log' in result.updates" - "'40 permit ip 192.0.2.4/32 any log' in result.updates"
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates" - "'50 permit ip 192.0.2.5/32 any log' not in result.updates"
- name: check sub level command using strict match - name: check sub level command using strict match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
match: strict match: strict
register: result register: result

@ -9,11 +9,11 @@
- name: "nxos_config sanity test" - name: "nxos_config sanity test"
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: exact match: exact
@ -21,10 +21,10 @@
- name: "nxos_config sanity test - replace block" - name: "nxos_config sanity test - replace block"
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
replace: block replace: block

@ -10,10 +10,10 @@
- name: configure sub level command using block replace - name: configure sub level command using block replace
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
register: result register: result
@ -22,18 +22,18 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip 1.1.1.1/32 any log' in result.updates" - "'10 permit ip 192.0.2.1/32 any log' in result.updates"
- "'20 permit ip 2.2.2.2/32 any log' in result.updates" - "'20 permit ip 192.0.2.2/32 any log' in result.updates"
- "'30 permit ip 3.3.3.3/32 any log' in result.updates" - "'30 permit ip 192.0.2.3/32 any log' in result.updates"
- "'40 permit ip 4.4.4.4/32 any log' in result.updates" - "'40 permit ip 192.0.2.4/32 any log' in result.updates"
- name: check sub level command using block replace - name: check sub level command using block replace
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
register: result register: result

@ -4,11 +4,11 @@
- name: setup - name: setup
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
match: none match: none
ignore_errors: yes ignore_errors: yes
@ -16,10 +16,10 @@
- name: configure sub level command using exact match - name: configure sub level command using exact match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: exact match: exact
@ -30,19 +30,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip 1.1.1.1/32 any log' in result.updates" - "'10 permit ip 192.0.2.1/32 any log' in result.updates"
- "'20 permit ip 2.2.2.2/32 any log' in result.updates" - "'20 permit ip 192.0.2.2/32 any log' in result.updates"
- "'30 permit ip 3.3.3.3/32 any log' in result.updates" - "'30 permit ip 192.0.2.3/32 any log' in result.updates"
- "'40 permit ip 4.4.4.4/32 any log' in result.updates" - "'40 permit ip 192.0.2.4/32 any log' in result.updates"
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates" - "'50 permit ip 192.0.2.5/32 any log' not in result.updates"
- name: check sub level command using exact match - name: check sub level command using exact match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
match: exact match: exact
register: result register: result

@ -4,21 +4,21 @@
- name: setup - name: setup
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
- 50 permit ip 5.5.5.5/32 any log - 50 permit ip 192.0.2.5/32 any log
parents: ip access-list test parents: ip access-list test
match: none match: none
- name: configure sub level command using strict match - name: configure sub level command using strict match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 30 permit ip 2.2.2.2/32 any log - 30 permit ip 192.0.2.2/32 any log
- 20 permit ip 3.3.3.3/32 any log - 20 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
before: no ip access-list test before: no ip access-list test
match: strict match: strict
@ -29,19 +29,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip 1.1.1.1/32 any log' in result.updates" - "'10 permit ip 192.0.2.1/32 any log' in result.updates"
- "'30 permit ip 2.2.2.2/32 any log' in result.updates" - "'30 permit ip 192.0.2.2/32 any log' in result.updates"
- "'20 permit ip 3.3.3.3/32 any log' in result.updates" - "'20 permit ip 192.0.2.3/32 any log' in result.updates"
- "'40 permit ip 4.4.4.4/32 any log' in result.updates" - "'40 permit ip 192.0.2.4/32 any log' in result.updates"
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates" - "'50 permit ip 192.0.2.5/32 any log' not in result.updates"
- name: check sub level command using strict match - name: check sub level command using strict match
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 3.3.3.3/32 any log - 20 permit ip 192.0.2.3/32 any log
- 30 permit ip 2.2.2.2/32 any log - 30 permit ip 192.0.2.2/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
match: strict match: strict
register: result register: result

@ -31,7 +31,7 @@
route_target_export: route_target_export:
- auto - auto
- "5000:10" - "5000:10"
- "1.1.1.1:43" - "192.0.2.1:43"
register: result register: result
- assert: &true - assert: &true

@ -57,7 +57,7 @@
nxos_hsrp: &conf100 nxos_hsrp: &conf100
group: 100 group: 100
version: 2 version: 2
vip: 2.2.2.2 vip: 192.0.2.2
priority: 25 priority: 25
interface: "{{ intname1 }}" interface: "{{ intname1 }}"
preempt: enabled preempt: enabled
@ -96,7 +96,7 @@
- name: "configure group 200" - name: "configure group 200"
nxos_hsrp: &conf200 nxos_hsrp: &conf200
group: 200 group: 200
vip: 3.3.3.3 vip: 192.0.2.3
version: 1 version: 1
interface: "{{ intname2 }}" interface: "{{ intname2 }}"
auth_type: text auth_type: text
@ -114,7 +114,7 @@
- name: "change group 200" - name: "change group 200"
nxos_hsrp: &chg200 nxos_hsrp: &chg200
group: 200 group: 200
vip: 3.3.3.3 vip: 192.0.2.3
version: 2 version: 2
interface: "{{ intname2 }}" interface: "{{ intname2 }}"
auth_type: text auth_type: text

@ -50,7 +50,7 @@
group_timeout: 300 group_timeout: 300
# deprecated # deprecated
oif_prefix: 239.255.255.2 oif_prefix: 239.255.255.2
oif_source: 1.1.1.1 oif_source: 192.0.2.1
state: present state: present
register: result register: result
@ -82,7 +82,7 @@
oif_ps: oif_ps:
- {'prefix': '238.2.2.6'} - {'prefix': '238.2.2.6'}
- {'prefix': '238.2.2.5'} - {'prefix': '238.2.2.5'}
- {'source': '1.1.1.1', 'prefix': '238.2.2.5'} - {'source': '192.0.2.1', 'prefix': '238.2.2.5'}
state: present state: present
register: result register: result

@ -209,7 +209,7 @@
nxos_interface_ospf: &configurelb nxos_interface_ospf: &configurelb
interface: LOOPBACK55 interface: LOOPBACK55
ospf: 1 ospf: 1
area: 4.4.4.4 area: 192.0.2.4
cost: 55 cost: 55
hello_interval: 15 hello_interval: 15
dead_interval: 75 dead_interval: 75

@ -9,7 +9,7 @@
key_id: 32 key_id: 32
prefer: disabled prefer: disabled
vrf_name: management vrf_name: management
source_addr: 5.5.5.5 source_addr: 192.0.2.5
state: absent state: absent
ignore_errors: yes ignore_errors: yes
@ -21,7 +21,7 @@
key_id: 32 key_id: 32
prefer: enabled prefer: enabled
vrf_name: management vrf_name: management
source_addr: 5.5.5.5 source_addr: 192.0.2.5
state: present state: present
register: result register: result

@ -13,7 +13,7 @@
- name: Configure ospf vrf - name: Configure ospf vrf
nxos_ospf_vrf: &config nxos_ospf_vrf: &config
ospf: 1 ospf: 1
router_id: 1.1.1.1 router_id: 192.0.2.1
timer_throttle_spf_start: 50 timer_throttle_spf_start: 50
timer_throttle_spf_hold: 1000 timer_throttle_spf_hold: 1000
timer_throttle_spf_max: 2000 timer_throttle_spf_max: 2000

@ -70,10 +70,10 @@
- name: configure sub level command using block replace - exact - name: configure sub level command using block replace - exact
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
provider: "{{ connection }}" provider: "{{ connection }}"
@ -84,19 +84,19 @@
that: that:
- "result.changed == true" - "result.changed == true"
- "'ip access-list test' in result.updates" - "'ip access-list test' in result.updates"
- "'10 permit ip 1.1.1.1/32 any log' in result.updates" - "'10 permit ip 192.0.2.1/32 any log' in result.updates"
- "'20 permit ip 2.2.2.2/32 any log' in result.updates" - "'20 permit ip 192.0.2.2/32 any log' in result.updates"
- "'30 permit ip 3.3.3.3/32 any log' in result.updates" - "'30 permit ip 192.0.2.3/32 any log' in result.updates"
- "'40 permit ip 4.4.4.4/32 any log' in result.updates" - "'40 permit ip 192.0.2.4/32 any log' in result.updates"
# hit NetworkConfig._diff_strict # hit NetworkConfig._diff_strict
- name: configure sub level command using block replace strict - name: configure sub level command using block replace strict
nxos_config: nxos_config:
lines: lines:
- 10 permit ip 1.1.1.1/32 any log - 10 permit ip 192.0.2.1/32 any log
- 20 permit ip 2.2.2.2/32 any log - 20 permit ip 192.0.2.2/32 any log
- 30 permit ip 3.3.3.3/32 any log - 30 permit ip 192.0.2.3/32 any log
- 40 permit ip 4.4.4.4/32 any log - 40 permit ip 192.0.2.4/32 any log
parents: ip access-list test parents: ip access-list test
replace: block replace: block
provider: "{{ connection }}" provider: "{{ connection }}"
@ -111,7 +111,7 @@
- name: create static route - name: create static route
nxos_static_route: &configure nxos_static_route: &configure
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
tag: 5500 tag: 5500
@ -126,7 +126,7 @@
- name: remove static route - name: remove static route
nxos_static_route: &remove nxos_static_route: &remove
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
tag: 5500 tag: 5500
@ -141,7 +141,7 @@
- name: remove static route - name: remove static route
nxos_static_route: nxos_static_route:
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
tag: 5500 tag: 5500
@ -153,8 +153,8 @@
- name: remove static route aggregate - name: remove static route aggregate
nxos_static_route: nxos_static_route:
aggregate: aggregate:
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" }
- { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" }
state: absent state: absent
provider: "{{ connection }}" provider: "{{ connection }}"
ignore_errors: yes ignore_errors: yes

@ -12,7 +12,7 @@
- name: Setup - Remove snmp_host if configured - name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove nxos_snmp_host: &remove
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
version: "{{ snmp_version }}" version: "{{ snmp_version }}"
snmp_type: "{{ snmp_type }}" snmp_type: "{{ snmp_type }}"
@ -27,7 +27,7 @@
- name: Configure snmp host - name: Configure snmp host
nxos_snmp_host: &config nxos_snmp_host: &config
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
version: "{{ snmp_version }}" version: "{{ snmp_version }}"
snmp_type: "{{ snmp_type }}" snmp_type: "{{ snmp_type }}"
@ -53,7 +53,7 @@
- block: - block:
- name: Add another vrf to filter - name: Add another vrf to filter
nxos_snmp_host: &config1 nxos_snmp_host: &config1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
vrf_filter: default vrf_filter: default
udp: 222 udp: 222
state: present state: present
@ -70,7 +70,7 @@
- name: remove some configuration - name: remove some configuration
nxos_snmp_host: &rem1 nxos_snmp_host: &rem1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
src_intf: "{{ intname|default(omit) }}" src_intf: "{{ intname|default(omit) }}"
vrf: management vrf: management
@ -89,7 +89,7 @@
- block: - block:
- name: remove some more configuration - name: remove some more configuration
nxos_snmp_host: &rem2 nxos_snmp_host: &rem2
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
vrf_filter: default vrf_filter: default
state: absent state: absent

@ -12,7 +12,7 @@
- name: Setup - Remove snmp_host if configured - name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove nxos_snmp_host: &remove
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
version: "{{ snmp_version }}" version: "{{ snmp_version }}"
snmp_type: "{{ snmp_type }}" snmp_type: "{{ snmp_type }}"
@ -27,7 +27,7 @@
- name: Configure snmp host - name: Configure snmp host
nxos_snmp_host: &config nxos_snmp_host: &config
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
version: "{{ snmp_version }}" version: "{{ snmp_version }}"
snmp_type: "{{ snmp_type }}" snmp_type: "{{ snmp_type }}"
@ -53,7 +53,7 @@
- block: - block:
- name: Add another vrf to filter - name: Add another vrf to filter
nxos_snmp_host: &config1 nxos_snmp_host: &config1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
vrf_filter: default vrf_filter: default
udp: 222 udp: 222
state: present state: present
@ -70,7 +70,7 @@
- name: remove some configuration - name: remove some configuration
nxos_snmp_host: &rem1 nxos_snmp_host: &rem1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
src_intf: "{{ intname|default(omit) }}" src_intf: "{{ intname|default(omit) }}"
vrf: management vrf: management
@ -89,7 +89,7 @@
- block: - block:
- name: remove some more configuration - name: remove some more configuration
nxos_snmp_host: &rem2 nxos_snmp_host: &rem2
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
vrf_filter: default vrf_filter: default
state: absent state: absent

@ -17,7 +17,7 @@
- name: Setup - Remove snmp_host if configured - name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove nxos_snmp_host: &remove
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
version: "{{ snmp_version }}" version: "{{ snmp_version }}"
snmp_type: "{{ snmp_type }}" snmp_type: "{{ snmp_type }}"
@ -32,7 +32,7 @@
- name: Configure snmp host - name: Configure snmp host
nxos_snmp_host: &config nxos_snmp_host: &config
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
v3: "{{ snmp_auth|default(omit) }}" v3: "{{ snmp_auth|default(omit) }}"
version: "{{ snmp_version }}" version: "{{ snmp_version }}"
@ -58,7 +58,7 @@
- block: - block:
- name: Add another vrf to filter - name: Add another vrf to filter
nxos_snmp_host: &config1 nxos_snmp_host: &config1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
vrf_filter: default vrf_filter: default
state: present state: present
register: result register: result
@ -74,7 +74,7 @@
- name: remove some configuration - name: remove some configuration
nxos_snmp_host: &rem1 nxos_snmp_host: &rem1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
src_intf: "{{ intname|default(omit) }}" src_intf: "{{ intname|default(omit) }}"
vrf: management vrf: management
vrf_filter: management vrf_filter: management
@ -92,7 +92,7 @@
- block: - block:
- name: remove some more configuration - name: remove some more configuration
nxos_snmp_host: &rem2 nxos_snmp_host: &rem2
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
vrf_filter: default vrf_filter: default
state: absent state: absent
register: result register: result

@ -13,7 +13,7 @@
- name: Setup - Remove snmp_host if configured - name: Setup - Remove snmp_host if configured
nxos_snmp_host: &remove nxos_snmp_host: &remove
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
udp: 222 udp: 222
v3: "{{ snmp_auth|default(omit) }}" v3: "{{ snmp_auth|default(omit) }}"
@ -29,7 +29,7 @@
- name: Configure snmp host - name: Configure snmp host
nxos_snmp_host: &config nxos_snmp_host: &config
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
community: TESTING community: TESTING
udp: 222 udp: 222
v3: "{{ snmp_auth|default(omit) }}" v3: "{{ snmp_auth|default(omit) }}"
@ -56,7 +56,7 @@
- block: - block:
- name: Add another vrf to filter - name: Add another vrf to filter
nxos_snmp_host: &config1 nxos_snmp_host: &config1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
vrf_filter: default vrf_filter: default
state: present state: present
@ -73,7 +73,7 @@
- name: remove some configuration - name: remove some configuration
nxos_snmp_host: &rem1 nxos_snmp_host: &rem1
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
src_intf: "{{ intname|default(omit) }}" src_intf: "{{ intname|default(omit) }}"
vrf: management vrf: management
@ -92,7 +92,7 @@
- block: - block:
- name: remove some more configuration - name: remove some more configuration
nxos_snmp_host: &rem2 nxos_snmp_host: &rem2
snmp_host: 3.3.3.3 snmp_host: 192.0.2.3
udp: 222 udp: 222
vrf_filter: default vrf_filter: default
state: absent state: absent

@ -7,7 +7,7 @@
- name: create static route - name: create static route
nxos_static_route: &configure nxos_static_route: &configure
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
tag: 5500 tag: 5500
@ -31,7 +31,7 @@
- name: change static route - name: change static route
nxos_static_route: &configure1 nxos_static_route: &configure1
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: default route_name: default
pref: 10 pref: 10
tag: default tag: default
@ -51,7 +51,7 @@
- name: remove static route - name: remove static route
nxos_static_route: &remove nxos_static_route: &remove
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
vrf: "{{ item }}" vrf: "{{ item }}"
@ -71,8 +71,8 @@
- name: configure static route(aggregate) - name: configure static route(aggregate)
nxos_static_route: &conf_agg nxos_static_route: &conf_agg
aggregate: aggregate:
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" }
- { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" }
register: result register: result
- assert: - assert:
@ -90,8 +90,8 @@
- name: remove static route aggregate - name: remove static route aggregate
nxos_static_route: &remove_agg nxos_static_route: &remove_agg
aggregate: aggregate:
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" }
- { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" }
state: absent state: absent
register: result register: result
@ -111,7 +111,7 @@
- name: remove static route - name: remove static route
nxos_static_route: nxos_static_route:
prefix: "192.168.20.64/24" prefix: "192.168.20.64/24"
next_hop: "3.3.3.3" next_hop: "192.0.2.3"
route_name: testing route_name: testing
pref: 100 pref: 100
tag: 5500 tag: 5500
@ -123,8 +123,8 @@
- name: remove static route aggregate - name: remove static route aggregate
nxos_static_route: nxos_static_route:
aggregate: aggregate:
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.22.64/24", next_hop: "192.0.2.3" }
- { prefix: "192.168.24.64/24", next_hop: "3.3.3.3" } - { prefix: "192.168.24.64/24", next_hop: "192.0.2.3" }
state: absent state: absent
ignore_errors: yes ignore_errors: yes

@ -4,32 +4,32 @@
- name: setup - name: setup
nxos_config: &reset nxos_config: &reset
lines: lines:
- no ip name-server 1.1.1.1 - no ip name-server 192.0.2.1
- no ip name-server 2.2.2.2 - no ip name-server 192.0.2.2
- no ip name-server 3.3.3.3 - no ip name-server 192.0.2.3
match: none match: none
- name: configure name_servers - name: configure name_servers
nxos_system: nxos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
register: result register: result
- assert: - assert:
that: that:
- result.changed == true - result.changed == true
- "'ip name-server 1.1.1.1' in result.commands" - "'ip name-server 192.0.2.1' in result.commands"
- "'ip name-server 2.2.2.2' in result.commands" - "'ip name-server 192.0.2.2' in result.commands"
- "'ip name-server 3.3.3.3' in result.commands" - "'ip name-server 192.0.2.3' in result.commands"
- name: verify name_servers - name: verify name_servers
nxos_system: nxos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
register: result register: result
- assert: - assert:
@ -39,24 +39,24 @@
#- name: change to vrf #- name: change to vrf
# nxos_system: # nxos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# register: result # register: result
#- assert: #- assert:
# that: # that:
# - result.changed == true # - result.changed == true
# - result.commands|length == 2 # - result.commands|length == 2
# - "'no ip name-server 2.2.2.2' in result.commands" # - "'no ip name-server 192.0.2.2' in result.commands"
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" # - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
#- name: verify change to vrf #- name: verify change to vrf
# nxos_system: # nxos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# register: result # register: result
# #
#- assert: #- assert:
@ -66,15 +66,15 @@
- name: remove one - name: remove one
nxos_system: nxos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
register: result register: result
- assert: - assert:
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- "'no ip name-server 3.3.3.3' in result.commands" - "'no ip name-server 192.0.2.3' in result.commands"
- name: default name server - name: default name server
nxos_system: &defns nxos_system: &defns

@ -11,31 +11,31 @@
match: none match: none
ignore_errors: yes ignore_errors: yes
with_items: with_items:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
- name: configure name_servers - name: configure name_servers
nxos_system: nxos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
register: result register: result
- assert: - assert:
that: that:
- result.changed == true - result.changed == true
- "'ip name-server 1.1.1.1' in result.commands" - "'ip name-server 192.0.2.1' in result.commands"
- "'ip name-server 2.2.2.2' in result.commands" - "'ip name-server 192.0.2.2' in result.commands"
- "'ip name-server 3.3.3.3' in result.commands" - "'ip name-server 192.0.2.3' in result.commands"
- name: verify name_servers - name: verify name_servers
nxos_system: nxos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
register: result register: result
- assert: - assert:
@ -45,24 +45,24 @@
#- name: change to vrf #- name: change to vrf
# nxos_system: # nxos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# register: result # register: result
#- assert: #- assert:
# that: # that:
# - result.changed == true # - result.changed == true
# - result.commands|length == 2 # - result.commands|length == 2
# - "'no ip name-server 2.2.2.2' in result.commands" # - "'no ip name-server 192.0.2.2' in result.commands"
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands" # - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
#- name: verify change to vrf #- name: verify change to vrf
# nxos_system: # nxos_system:
# name_servers: # name_servers:
# - 1.1.1.1 # - 192.0.2.1
# - { server: 2.2.2.2, vrf: ansible } # - { server: 192.0.2.2, vrf: ansible }
# - 3.3.3.3 # - 192.0.2.3
# register: result # register: result
# #
#- assert: #- assert:
@ -72,15 +72,15 @@
- name: remove one - name: remove one
nxos_system: nxos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
register: result register: result
- assert: - assert:
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- "'no ip name-server 3.3.3.3' in result.commands" - "'no ip name-server 192.0.2.3' in result.commands"
- name: default name server - name: default name server
nxos_system: &defns nxos_system: &defns
@ -102,9 +102,9 @@
- name: teardown - name: teardown
nxos_config: *reset nxos_config: *reset
with_items: with_items:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
ignore_errors: yes ignore_errors: yes
- debug: msg="END nxapi/set_name_servers.yaml" - debug: msg="END nxapi/set_name_servers.yaml"

@ -179,10 +179,10 @@
interface: nve1 interface: nve1
vni: 8000 vni: 8000
peer_list: peer_list:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
- 4.4.4.4 - 192.0.2.4
ingress_replication: static ingress_replication: static
register: result register: result

@ -4,33 +4,33 @@
- name: setup - name: setup
vyos_config: vyos_config:
lines: lines:
- delete system name-server 1.1.1.1 - delete system name-server 192.0.2.1
- delete system name-server 2.2.2.2 - delete system name-server 192.0.2.2
- delete system name-server 3.3.3.3 - delete system name-server 192.0.2.3
match: none match: none
- name: configure name servers - name: configure name servers
vyos_system: vyos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
register: result register: result
- assert: - assert:
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 3 - result.commands|length == 3
- result.commands[0] is search("set system name-server '1.1.1.1'") - result.commands[0] is search("set system name-server '192.0.2.1'")
- result.commands[1] is search("set system name-server '2.2.2.2'") - result.commands[1] is search("set system name-server '192.0.2.2'")
- result.commands[2] is search("set system name-server '3.3.3.3'") - result.commands[2] is search("set system name-server '192.0.2.3'")
- name: verify name_servers - name: verify name_servers
vyos_system: vyos_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
- 2.2.2.2 - 192.0.2.2
- 3.3.3.3 - 192.0.2.3
register: result register: result
- assert: - assert:
@ -40,7 +40,7 @@
- name: remove one - name: remove one
vyos_system: vyos_system:
name_servers: name_servers:
- 3.3.3.3 - 192.0.2.3
state: absent state: absent
register: result register: result
@ -48,14 +48,14 @@
that: that:
- result.changed == true - result.changed == true
- result.commands|length == 1 - result.commands|length == 1
- result.commands[0] is search("delete system name-server '3.3.3.3'") - result.commands[0] is search("delete system name-server '192.0.2.3'")
- name: teardown - name: teardown
vyos_config: vyos_config:
lines: lines:
- delete system name-server name-server 1.1.1.1 - delete system name-server name-server 192.0.2.1
- delete system name-server name-server 2.2.2.2 - delete system name-server name-server 192.0.2.2
- delete system name-server name-server 3.3.3.3 - delete system name-server name-server 192.0.2.3
match: none match: none
- debug: msg="END cli/basic.yaml on connection={{ ansible_connection }}" - debug: msg="END cli/basic.yaml on connection={{ ansible_connection }}"

@ -7,24 +7,24 @@
- name: setup - name: setup
vyos_config: vyos_config:
lines: lines:
- delete system name-server 1.1.1.1 - delete system name-server 192.0.2.1
match: none match: none
- name: configure name servers using platform agnostic module - name: configure name servers using platform agnostic module
net_system: net_system:
name_servers: name_servers:
- 1.1.1.1 - 192.0.2.1
register: result register: result
- assert: - assert:
that: that:
- result.changed == true - result.changed == true
- result.commands[0] is search("set system name-server '1.1.1.1'") - result.commands[0] is search("set system name-server '192.0.2.1'")
- name: setup - name: setup
vyos_config: vyos_config:
lines: lines:
- delete system name-server 1.1.1.1 - delete system name-server 192.0.2.1
match: none match: none
- debug: msg="END vyos cli/net_system.yaml on connection={{ ansible_connection }}" - debug: msg="END vyos cli/net_system.yaml on connection={{ ansible_connection }}"

@ -2,9 +2,9 @@
! Last configuration change at Jan 11 12:26:08 2018 ! Last configuration change at Jan 11 12:26:08 2018
! !
snmp-server contact http://www.dell.com/support snmp-server contact http://www.dell.com/support
snmp-server host 1.1.1.1 traps version 1 c4 udp-port 5 snmp-server host 192.0.2.1 traps version 1 c4 udp-port 5
snmp-server host 1.1.1.1 traps version 2c c1 udp-port 4 snmp-server host 192.0.2.1 traps version 2c c1 udp-port 4
snmp-server host 2.2.2.2 traps version 1 c3 udp-port 162 snmp-server host 192.0.2.2 traps version 1 c3 udp-port 162
ip community-list expanded commex deny aaa ip community-list expanded commex deny aaa
ip community-list standard commstd deny internet ip community-list standard commstd deny internet
ip community-list standard commstd permit no-advertise ip community-list standard commstd permit no-advertise

@ -8,7 +8,7 @@ Interface State IP Address IP Mask Method
Vl1 Down 0.0.0.0 0.0.0.0 None Vl1 Down 0.0.0.0 0.0.0.0 None
Vl2 Up 0.0.0.0 0.0.0.0 DHCP Vl2 Up 0.0.0.0 0.0.0.0 DHCP
Vl99 Up 10.99.1.2 255.255.0.0 Manual Vl99 Up 10.99.1.2 255.255.0.0 Manual
Vl100 Up 3.3.3.3 255.255.255.0 Manual Vl100 Up 192.0.2.3 255.255.255.0 Manual
Vl999 Up 10.250.1.2 255.255.255.0 Manual Vl999 Up 10.250.1.2 255.255.255.0 Manual
Vl1010 Up 10.1.1.1 255.255.255.0 Manual Vl1010 Up 10.1.1.1 255.255.255.0 Manual
Vl1681 Up 192.168.100.1 255.255.255.0 Manual Vl1681 Up 192.168.100.1 255.255.255.0 Manual

@ -99,7 +99,7 @@ snmp-server enable traps captive-portal client-connect
snmp-server enable traps captive-portal client-db-full snmp-server enable traps captive-portal client-db-full
snmp-server enable traps captive-portal client-disconnect snmp-server enable traps captive-portal client-disconnect
router bgp 11 router bgp 11
bgp router-id 1.1.1.1 bgp router-id 192.0.2.1
maximum-paths 2 maximum-paths 2
maximum-paths ibgp 2 maximum-paths ibgp 2
network 101.1.2.0 mask 255.255.255.0 network 101.1.2.0 mask 255.255.255.0

@ -1,4 +1,4 @@
LSP LSP1, to 1.1.1.1 LSP LSP1, to 192.0.2.1
From: (n/a), admin: DOWN, status: DOWN From: (n/a), admin: DOWN, status: DOWN
revert timer: 300 seconds revert timer: 300 seconds
Times primary LSP goes up since enabled: 1 Times primary LSP goes up since enabled: 1
@ -17,7 +17,7 @@ LSP LSP1, to 1.1.1.1
Backup LSP: DOWN Backup LSP: DOWN
Global revertiveness enabled with hold time 5 secs Global revertiveness enabled with hold time 5 secs
FRR Forwarding State: Pri(down), Backup(down) FRR Forwarding State: Pri(down), Backup(down)
LSP LSP3, to 3.3.3.3 LSP LSP3, to 192.0.2.3
From: (n/a), admin: DOWN, status: DOWN From: (n/a), admin: DOWN, status: DOWN
Times primary LSP goes up since enabled: 0 Times primary LSP goes up since enabled: 0
Metric: 0 Metric: 0

@ -9,7 +9,7 @@ VLL TEST-VLL, VC-ID 111, VLL-INDEX 4
COS : 1 COS : 1
Extended Counters: Enabled Extended Counters: Enabled
Vll-Peer : 1.1.1.1 Vll-Peer : 192.0.2.1
State : DOWN - PW is Down (Reason:Wait for peer label) State : DOWN - PW is Down (Reason:Wait for peer label)
Remote VC type : -- Remote VC MTU : -- Remote VC type : -- Remote VC MTU : --
Local label : -- Remote label : -- Local label : -- Remote label : --

@ -10,7 +10,7 @@ VPLS TEST-VPLS, Id 333, Max mac entries: 2048
Untagged: ethe 2/7 Untagged: ethe 2/7
VC-Mode: Raw VC-Mode: Raw
Total VPLS peers: 1 (0 Operational) Total VPLS peers: 1 (0 Operational)
Peer address: 3.3.3.3, State: Wait for functional local ports Peer address: 192.0.2.3, State: Wait for functional local ports
Tnnl in use: tnl1(3)[RSVP] Peer Index:0 Tnnl in use: tnl1(3)[RSVP] Peer Index:0
Local VC lbl: N/A, Remote VC lbl: N/A Local VC lbl: N/A, Remote VC lbl: N/A
Local VC MTU: 9190, Remote VC MTU: 0 Local VC MTU: 9190, Remote VC MTU: 0

@ -43,14 +43,14 @@ qos-mapping
default-max-frame-size 9216 default-max-frame-size 9216
cpu-usage on cpu-usage on
aaa authentication login default tacacs+ local enable aaa authentication login default tacacs+ local enable
tacacs-server host 5.5.5.5 tacacs-server host 192.0.2.5
tacacs-server key 2 $X3FSZjgzKGzPIXVd tacacs-server key 2 $X3FSZjgzKGzPIXVd
! !
! !
enable password-display enable password-display
enable super-user-password 8 $1$WV1..Pi2$B6acbjDxeHsof2BKrpyqQ0 enable super-user-password 8 $1$WV1..Pi2$B6acbjDxeHsof2BKrpyqQ0
enable aaa console enable aaa console
logging host 5.5.5.5 logging host 192.0.2.5
logging facility local7 logging facility local7
logging buffered 5000 logging buffered 5000
logging console logging console
@ -244,13 +244,13 @@ router mpls
cos 1 cos 1
lsp LSP1 lsp LSP1
to 1.1.1.1 to 192.0.2.1
no cspf no cspf
adaptive adaptive
enable enable
lsp LSP3 lsp LSP3
to 3.3.3.3 to 192.0.2.3
shortcuts isis level2 shortcuts isis level2
adaptive adaptive
reoptimize-timer 1800 reoptimize-timer 1800
@ -260,7 +260,7 @@ router mpls
enable enable
vll TEST-VLL 111 raw-mode cos 1 vll TEST-VLL 111 raw-mode cos 1
vll-peer 1.1.1.1 vll-peer 192.0.2.1
vlan 2005 vlan 2005
tagged e 2/1 tagged e 2/1
@ -271,7 +271,7 @@ router mpls
tag e 2/9 tag e 2/9
vpls TEST-VPLS 333 vpls TEST-VPLS 333
vpls-peer 3.3.3.3 vpls-peer 192.0.2.3
vlan 5 vlan 5
untagged ethe 2/4 untagged ethe 2/4
vlan 6 vlan 6

@ -72,7 +72,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -86,7 +86,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -112,7 +112,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -136,7 +136,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -163,7 +163,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -190,7 +190,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -216,7 +216,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -244,7 +244,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -271,7 +271,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -303,7 +303,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -337,7 +337,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -371,7 +371,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -405,7 +405,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -439,7 +439,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -475,7 +475,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -511,7 +511,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -547,7 +547,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -583,7 +583,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action
@ -611,7 +611,7 @@ class TestNetscalerCSActionModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_action from ansible.modules.network.netscaler import netscaler_cs_action

@ -54,7 +54,7 @@ class TestNetscalerCSPolicyModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state=state, state=state,
)) ))

@ -79,7 +79,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -93,7 +93,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -119,7 +119,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -143,7 +143,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -170,7 +170,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -200,7 +200,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -226,7 +226,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -257,7 +257,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -284,7 +284,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -318,7 +318,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -354,7 +354,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -388,7 +388,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -423,7 +423,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -457,7 +457,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -494,7 +494,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -531,7 +531,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -567,7 +567,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -603,7 +603,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -631,7 +631,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver
@ -659,7 +659,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
@ -687,7 +687,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
servicetype='SSL', servicetype='SSL',
)) ))
@ -728,7 +728,7 @@ class TestNetscalerCSVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_cs_vserver from ansible.modules.network.netscaler import netscaler_cs_vserver

@ -80,7 +80,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -94,7 +94,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -120,7 +120,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -144,7 +144,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -172,7 +172,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -199,7 +199,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -228,7 +228,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -256,7 +256,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -286,7 +286,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -315,7 +315,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -349,7 +349,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -386,7 +386,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -421,7 +421,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -457,7 +457,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -493,7 +493,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -531,7 +531,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -569,7 +569,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -606,7 +606,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -643,7 +643,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -680,7 +680,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service
@ -709,7 +709,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_service from ansible.modules.network.netscaler import netscaler_gslb_service

@ -70,7 +70,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -84,7 +84,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -110,7 +110,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -134,7 +134,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -161,7 +161,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -187,7 +187,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -215,7 +215,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -242,7 +242,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -271,7 +271,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -299,7 +299,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -332,7 +332,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -367,7 +367,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -401,7 +401,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -436,7 +436,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -471,7 +471,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -507,7 +507,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -543,7 +543,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -579,7 +579,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -615,7 +615,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site
@ -643,7 +643,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_site from ansible.modules.network.netscaler import netscaler_gslb_site

@ -74,7 +74,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -88,7 +88,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -114,7 +114,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -138,7 +138,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -165,7 +165,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -192,7 +192,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -221,7 +221,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -248,7 +248,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -278,7 +278,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -306,7 +306,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -340,7 +340,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -378,7 +378,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -412,7 +412,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -448,7 +448,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -486,7 +486,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -524,7 +524,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -559,7 +559,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -596,7 +596,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -633,7 +633,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -669,7 +669,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -705,7 +705,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver
@ -733,7 +733,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_gslb_vserver from ansible.modules.network.netscaler import netscaler_gslb_vserver

@ -70,7 +70,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -84,7 +84,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -113,7 +113,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -135,7 +135,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -160,7 +160,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -186,7 +186,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -212,7 +212,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -239,7 +239,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -266,7 +266,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -294,7 +294,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -332,7 +332,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -358,7 +358,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -386,7 +386,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -412,7 +412,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -440,7 +440,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -464,7 +464,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_monitor from ansible.modules.network.netscaler import netscaler_lb_monitor
@ -489,7 +489,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))

@ -78,7 +78,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -92,7 +92,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -118,7 +118,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -140,7 +140,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -166,7 +166,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -193,7 +193,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -220,7 +220,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -248,7 +248,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -276,7 +276,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -307,7 +307,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -347,7 +347,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -376,7 +376,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -406,7 +406,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -456,7 +456,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -506,7 +506,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
servicetype='SSL', servicetype='SSL',
@ -542,7 +542,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
servicetype='HTTP', servicetype='HTTP',
@ -577,7 +577,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -609,7 +609,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -642,7 +642,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -673,7 +673,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -704,7 +704,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -735,7 +735,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -759,7 +759,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_lb_vserver from ansible.modules.network.netscaler import netscaler_lb_vserver
@ -784,7 +784,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
@ -811,7 +811,7 @@ class TestNetscalerLBVServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))

@ -54,7 +54,7 @@ class TestNetscalerSaveConfigModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
)) ))
from ansible.modules.network.netscaler import netscaler_save_config from ansible.modules.network.netscaler import netscaler_save_config
@ -79,7 +79,7 @@ class TestNetscalerSaveConfigModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
)) ))
from ansible.modules.network.netscaler import netscaler_save_config from ansible.modules.network.netscaler import netscaler_save_config
@ -102,7 +102,7 @@ class TestNetscalerSaveConfigModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
)) ))
from ansible.modules.network.netscaler import netscaler_save_config from ansible.modules.network.netscaler import netscaler_save_config
@ -128,7 +128,7 @@ class TestNetscalerSaveConfigModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
)) ))
class MockException(Exception): class MockException(Exception):

@ -70,7 +70,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
self.nitro_base_patcher.stop() self.nitro_base_patcher.stop()
@ -84,7 +84,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -110,7 +110,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -134,7 +134,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -161,7 +161,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -188,7 +188,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -215,7 +215,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
save_config=False, save_config=False,
)) ))
@ -243,7 +243,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
save_config=False, save_config=False,
)) ))
@ -270,7 +270,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -298,7 +298,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
disabled=True, disabled=True,
graceful=True graceful=True
@ -333,7 +333,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -365,7 +365,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -399,7 +399,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -433,7 +433,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -467,7 +467,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -501,7 +501,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -537,7 +537,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -573,7 +573,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -609,7 +609,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -645,7 +645,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='present', state='present',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server
@ -672,7 +672,7 @@ class TestNetscalerServerModule(TestModule):
set_module_args(dict( set_module_args(dict(
nitro_user='user', nitro_user='user',
nitro_pass='pass', nitro_pass='pass',
nsip='1.1.1.1', nsip='192.0.2.1',
state='absent', state='absent',
)) ))
from ansible.modules.network.netscaler import netscaler_server from ansible.modules.network.netscaler import netscaler_server

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save