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
This commit is contained in:
parent
91eb4a034e
commit
82dfa542c2
111 changed files with 1136 additions and 1136 deletions
|
@ -221,10 +221,10 @@ EXAMPLES = """
|
|||
- name: load an acl into the device
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
replace: block
|
||||
|
|
|
@ -241,11 +241,11 @@ EXAMPLES = """
|
|||
- name: load new acl into device
|
||||
ios_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 50 permit ip host 5.5.5.5 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
- 50 permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list extended test
|
||||
before: no ip access-list extended test
|
||||
match: exact
|
||||
|
@ -279,12 +279,12 @@ updates:
|
|||
description: The set of commands that will be pushed to the remote device
|
||||
returned: always
|
||||
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:
|
||||
description: The set of commands that will be pushed to the remote device
|
||||
returned: always
|
||||
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:
|
||||
description: The full path to the backup file
|
||||
returned: when backup is yes
|
||||
|
|
|
@ -74,18 +74,18 @@ EXAMPLES = """
|
|||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
|
||||
- name: Delete ipv4 address using aggregate
|
||||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
state: absent
|
||||
"""
|
||||
|
||||
|
@ -96,7 +96,7 @@ diff:
|
|||
type: string
|
||||
sample: >
|
||||
[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]
|
||||
+ address fd5d:12c9:2201:1::1/128;
|
||||
"""
|
||||
|
|
|
@ -94,7 +94,7 @@ EXAMPLES = """
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: present
|
||||
|
||||
|
@ -105,7 +105,7 @@ EXAMPLES = """
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: absent
|
||||
|
||||
|
@ -116,7 +116,7 @@ EXAMPLES = """
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
active: False
|
||||
|
||||
|
@ -127,7 +127,7 @@ EXAMPLES = """
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
active: True
|
||||
|
||||
|
@ -139,14 +139,14 @@ EXAMPLES = """
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
- name: test-2
|
||||
description: test-vrf-2
|
||||
interfaces:
|
||||
- ge-0/0/4
|
||||
- ge-0/0/5
|
||||
rd: 2.2.2.2:10
|
||||
rd: 192.0.2.2:10
|
||||
target: target:65515:114
|
||||
state: present
|
||||
"""
|
||||
|
@ -163,7 +163,7 @@ diff.prepared:
|
|||
+ instance-type vrf;
|
||||
+ interface ge-0/0/2.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;
|
||||
+ }
|
||||
"""
|
||||
|
|
|
@ -158,7 +158,7 @@ EXAMPLES = '''
|
|||
seq: 10
|
||||
action: permit
|
||||
proto: tcp
|
||||
src: 1.1.1.1/24
|
||||
src: 192.0.2.1/24
|
||||
dest: any
|
||||
state: present
|
||||
'''
|
||||
|
@ -168,7 +168,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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 nxos_argument_spec, check_args
|
||||
|
|
|
@ -220,7 +220,7 @@ EXAMPLES = '''
|
|||
nxos_bgp:
|
||||
asn: 65535
|
||||
vrf: test
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
state: present
|
||||
'''
|
||||
|
||||
|
@ -229,7 +229,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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
|
||||
|
|
|
@ -151,7 +151,7 @@ EXAMPLES = '''
|
|||
# create a new neighbor
|
||||
- nxos_bgp_neighbor:
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3
|
||||
neighbor: 192.0.2.3
|
||||
local_as: 20
|
||||
remote_as: 30
|
||||
description: "just a description"
|
||||
|
@ -164,7 +164,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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",
|
||||
"description just a description", "local-as 20"]
|
||||
'''
|
||||
|
|
|
@ -213,7 +213,7 @@ EXAMPLES = '''
|
|||
- name: configure RR client
|
||||
nxos_bgp_neighbor_af:
|
||||
asn: 65535
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
route_reflector_client: true
|
||||
|
@ -225,7 +225,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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"]
|
||||
'''
|
||||
|
||||
|
|
|
@ -226,21 +226,21 @@ EXAMPLES = """
|
|||
|
||||
- nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: exact
|
||||
|
||||
- nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
replace: block
|
||||
|
|
|
@ -73,30 +73,30 @@ proposed:
|
|||
description: k/v pairs of parameters passed into module
|
||||
returned: always
|
||||
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",
|
||||
"source": "3.3.3.3", "source_type": "source"}
|
||||
"source": "192.0.2.3", "source_type": "source"}
|
||||
existing:
|
||||
description:
|
||||
- k/v pairs of existing ntp server/peer
|
||||
returned: always
|
||||
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",
|
||||
"source": "ethernet2/1", "source_type": "source-interface"}
|
||||
end_state:
|
||||
description: k/v pairs of ntp info after module execution
|
||||
returned: always
|
||||
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",
|
||||
"source": "3.3.3.3", "source_type": "source"}
|
||||
"source": "192.0.2.3", "source_type": "source"}
|
||||
updates:
|
||||
description: command sent to the device
|
||||
returned: always
|
||||
type: list
|
||||
sample: ["ntp server 2.2.2.2 prefer key 48",
|
||||
"no ntp source-interface ethernet2/1", "ntp source 3.3.3.3"]
|
||||
sample: ["ntp server 192.0.2.2 prefer key 48",
|
||||
"no ntp source-interface ethernet2/1", "ntp source 192.0.2.3"]
|
||||
changed:
|
||||
description: check to see if a change was made on the device
|
||||
returned: always
|
||||
|
|
|
@ -74,7 +74,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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 = '''
|
||||
# ensure snmp host is configured
|
||||
- nxos_snmp_host:
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
state: present
|
||||
'''
|
||||
|
@ -98,7 +98,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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 = '''
|
||||
- nxos_static_route:
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
'''
|
||||
|
@ -84,7 +84,7 @@ commands:
|
|||
description: commands sent to the device
|
||||
returned: always
|
||||
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
|
||||
from copy import deepcopy
|
||||
|
|
|
@ -65,7 +65,7 @@ EXAMPLES = """
|
|||
- name: configure host logging
|
||||
net_logging:
|
||||
dest: host
|
||||
name: 1.1.1.1
|
||||
name: 192.0.2.1
|
||||
facility: kernel
|
||||
level: critical
|
||||
|
||||
|
|
|
@ -4,21 +4,21 @@
|
|||
- name: setup
|
||||
asa_config:
|
||||
lines:
|
||||
- "clear configure tunnel-group 1.1.1.1"
|
||||
- "clear configure tunnel-group 192.0.2.1"
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
- name: Prepare tunnel-group
|
||||
asa_config:
|
||||
before: tunnel-group 1.1.1.1 type ipsec-l2l
|
||||
before: tunnel-group 192.0.2.1 type ipsec-l2l
|
||||
lines:
|
||||
- "tunnel-group 1.1.1.1 ipsec-attributes"
|
||||
- "tunnel-group 192.0.2.1 ipsec-attributes"
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: Setup tunnel-group
|
||||
asa_config:
|
||||
parents: tunnel-group 1.1.1.1 ipsec-attributes
|
||||
parents: tunnel-group 192.0.2.1 ipsec-attributes
|
||||
lines:
|
||||
- "ikev1 pre-shared-key abc123"
|
||||
passwords: yes
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
- name: Test idempotency
|
||||
asa_config:
|
||||
parents: tunnel-group 1.1.1.1 ipsec-attributes
|
||||
parents: tunnel-group 192.0.2.1 ipsec-attributes
|
||||
lines:
|
||||
- "ikev1 pre-shared-key abc123"
|
||||
passwords: yes
|
||||
|
@ -40,7 +40,7 @@
|
|||
- name: teardown
|
||||
asa_config:
|
||||
lines:
|
||||
- "clear configure tunnel-group 1.1.1.1"
|
||||
- "clear configure tunnel-group 192.0.2.1"
|
||||
provider: "{{ cli }}"
|
||||
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
parents: ['ip access-list test']
|
||||
before: ['no ip access-list test']
|
||||
after: ['exit']
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
parents: ['ip access-list test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
@ -30,18 +30,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'seq 5 permit ip host 1.1.1.1 any count byte' in result.updates"
|
||||
- "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates"
|
||||
- "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates"
|
||||
- "'seq 20 permit ip host 4.4.4.4 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 192.0.2.2 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 192.0.2.4 any count byte' in result.updates"
|
||||
|
||||
- name: check sub level command using block replace
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
parents: ['ip access-list test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 25 permit ip host 5.5.5.5 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
- seq 25 permit ip host 192.0.2.5 any count byte
|
||||
parents: ['ip access-list test']
|
||||
before: ['no ip access-list test']
|
||||
after: ['exit']
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
parents: ['ip access-list test']
|
||||
after: ['exit']
|
||||
match: exact
|
||||
|
@ -32,20 +32,20 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'seq 5 permit ip host 1.1.1.1 any count byte' in result.updates"
|
||||
- "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates"
|
||||
- "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates"
|
||||
- "'seq 20 permit ip host 4.4.4.4 any count byte' in result.updates"
|
||||
- "'seq 25 permit ip host 5.5.5.5 any count byte' not in result.updates"
|
||||
- "'seq 5 permit ip host 192.0.2.1 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 192.0.2.3 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 192.0.2.5 any count byte' not in result.updates"
|
||||
|
||||
- name: check sub level command using exact match
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 25 permit ip host 5.5.5.5 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
- seq 25 permit ip host 192.0.2.5 any count byte
|
||||
parents: ['ip access-list test']
|
||||
after: ['exit']
|
||||
match: exact
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 25 permit ip host 5.5.5.5 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
- seq 25 permit ip host 192.0.2.5 any count byte
|
||||
parents: ['ip access-list test']
|
||||
before: ['no ip access-list test']
|
||||
after: ['exit']
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 20 permit ip host 4.4.4.4 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 20 permit ip host 192.0.2.4 any count byte
|
||||
parents: ['ip access-list test']
|
||||
match: strict
|
||||
provider: "{{ cli }}"
|
||||
|
@ -34,9 +34,9 @@
|
|||
- name: check sub level command using strict match
|
||||
dellos10_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.1 any count byte
|
||||
- seq 15 permit ip host 3.3.3.3 any count byte
|
||||
- seq 10 permit ip host 2.2.2.2 any count byte
|
||||
- seq 5 permit ip host 192.0.2.1 any count byte
|
||||
- seq 15 permit ip host 192.0.2.3 any count byte
|
||||
- seq 10 permit ip host 192.0.2.2 any count byte
|
||||
parents: ['ip access-list test']
|
||||
after: ['exit']
|
||||
match: strict
|
||||
|
@ -47,11 +47,11 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'seq 5 permit ip host 1.1.1.1 any count byte' not in result.updates"
|
||||
- "'seq 10 permit ip host 2.2.2.2 any count byte' in result.updates"
|
||||
- "'seq 15 permit ip host 3.3.3.3 any count byte' in result.updates"
|
||||
- "'seq 20 permit ip host 4.4.4.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 5 permit ip host 192.0.2.1 any count byte' not in result.updates"
|
||||
- "'seq 10 permit ip host 192.0.2.2 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 192.0.2.4 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
|
||||
dellos10_config:
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
dellos6_config:
|
||||
lines:
|
||||
- permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- permit ip 2.2.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.1 0.0.0.0 any log
|
||||
- permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- permit ip 192.0.2.3 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
before: ['no ip access-list test']
|
||||
after: ['exit']
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
dellos6_config:
|
||||
lines:
|
||||
- 1000 permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- 1010 permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- 1030 permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- 1000 permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- 1010 permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- 1030 permit ip 192.0.2.4 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
@ -30,18 +30,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'1000 permit ip 1.1.1.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"
|
||||
- "'1020 permit ip 3.3.3.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"
|
||||
- "'1000 permit ip 192.0.2.1 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 192.0.2.3 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
|
||||
dellos6_config:
|
||||
lines:
|
||||
- 1000 permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- 1010 permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- 1030 permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- 1000 permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- 1010 permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- 1030 permit ip 192.0.2.4 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
dellos6_config:
|
||||
lines:
|
||||
- permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- permit ip 5.5.5.5 0.0.0.0 any log
|
||||
- permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- permit ip 192.0.2.4 0.0.0.0 any log
|
||||
- permit ip 192.0.2.5 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
before: ['no ip access-list test']
|
||||
after: ['exit']
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
dellos6_config:
|
||||
lines:
|
||||
- 1000 permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- 1010 permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- 1030 permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- 1000 permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- 1010 permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- 1030 permit ip 192.0.2.4 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
after: ['exit']
|
||||
match: exact
|
||||
|
@ -32,20 +32,20 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'1000 permit ip 1.1.1.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"
|
||||
- "'1020 permit ip 3.3.3.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"
|
||||
- "'1040 permit ip 5.5.5.5 0.0.0.0 any log' not in result.updates"
|
||||
- "'1000 permit ip 192.0.2.1 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 192.0.2.3 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 192.0.2.5 0.0.0.0 any log' not in result.updates"
|
||||
|
||||
- name: check sub level command using exact match
|
||||
dellos6_config:
|
||||
lines:
|
||||
- 1000 permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- 1010 permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- 1030 permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- 1040 permit ip 5.5.5.5 0.0.0.0 any log
|
||||
- 1000 permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- 1010 permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- 1030 permit ip 192.0.2.4 0.0.0.0 any log
|
||||
- 1040 permit ip 192.0.2.5 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
after: ['exit']
|
||||
match: exact
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
dellos6_config:
|
||||
lines:
|
||||
- permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- permit ip 5.5.5.5 0.0.0.0 any log
|
||||
- permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- permit ip 192.0.2.4 0.0.0.0 any log
|
||||
- permit ip 192.0.2.5 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
before: ['no ip access-list test']
|
||||
after: ['exit']
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
dellos6_config:
|
||||
lines:
|
||||
- 1000 permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- 1010 permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- 1030 permit ip 4.4.4.4 0.0.0.0 any log
|
||||
- 1000 permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- 1010 permit ip 192.0.2.2 0.0.0.0 any log
|
||||
- 1020 permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- 1030 permit ip 192.0.2.4 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
match: strict
|
||||
provider: "{{ cli }}"
|
||||
|
@ -34,9 +34,9 @@
|
|||
- name: check sub level command using strict match
|
||||
dellos6_config:
|
||||
lines:
|
||||
- 1000 permit ip 1.1.1.1 0.0.0.0 any log
|
||||
- 1010 permit ip 3.3.3.3 0.0.0.0 any log
|
||||
- 1020 permit ip 2.2.2.2 0.0.0.0 any log
|
||||
- 1000 permit ip 192.0.2.1 0.0.0.0 any log
|
||||
- 1010 permit ip 192.0.2.3 0.0.0.0 any log
|
||||
- 1020 permit ip 192.0.2.2 0.0.0.0 any log
|
||||
parents: ['ip access-list test']
|
||||
after: ['exit']
|
||||
match: strict
|
||||
|
@ -47,11 +47,11 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'1000 permit ip 1.1.1.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"
|
||||
- "'1010 permit ip 3.3.3.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"
|
||||
- "'1040 permit ip 5.5.5.5 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 192.0.2.2 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 192.0.2.4 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
|
||||
dellos6_config:
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.3 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 192.0.2.2 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']
|
||||
before: ['no ip access-list extended test']
|
||||
after: ['exit']
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using block replace
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 5 permit ip host 192.0.2.1 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 192.0.2.3 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']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
@ -30,18 +30,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'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 10 permit ip host 2.2.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 20 permit ip host 4.4.4.4 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 192.0.2.2 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 192.0.2.4 any log threshold-in-msgs 10 interval 5' in result.updates"
|
||||
|
||||
- name: check sub level command using block replace
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 5 permit ip host 192.0.2.1 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 192.0.2.3 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']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 25 permit ip host 5.5.5.5 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 192.0.2.2 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 192.0.2.4 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']
|
||||
before: ['no ip access-list extended test']
|
||||
after: ['exit']
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 5 permit ip host 192.0.2.1 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 192.0.2.3 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']
|
||||
after: ['exit']
|
||||
match: exact
|
||||
|
@ -32,20 +32,20 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'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 10 permit ip host 2.2.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 20 permit ip host 4.4.4.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 5 permit ip host 192.0.2.1 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 192.0.2.3 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 192.0.2.5 any log threshold-in-msgs 10 interval 5' not in result.updates"
|
||||
|
||||
- name: check sub level command using exact match
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 25 permit ip host 5.5.5.5 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 192.0.2.2 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 192.0.2.4 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']
|
||||
after: ['exit']
|
||||
match: exact
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 25 permit ip host 5.5.5.5 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 192.0.2.2 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 192.0.2.4 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']
|
||||
before: ['no ip access-list extended test']
|
||||
after: ['exit']
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 3.3.3.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 5 permit ip host 192.0.2.1 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 192.0.2.3 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']
|
||||
match: strict
|
||||
provider: "{{ cli }}"
|
||||
|
@ -34,9 +34,9 @@
|
|||
- name: check sub level command using strict match
|
||||
dellos9_config:
|
||||
lines:
|
||||
- seq 5 permit ip host 1.1.1.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 15 permit ip host 2.2.2.2 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 192.0.2.3 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']
|
||||
after: ['exit']
|
||||
match: strict
|
||||
|
@ -47,11 +47,11 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'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 15 permit ip host 2.2.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 20 permit ip host 4.4.4.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 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 192.0.2.2 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 192.0.2.4 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
|
||||
dellos9_config:
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
after: exit
|
||||
|
@ -30,18 +30,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'20 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.3 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
after: exit
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 50 permit ip host 5.5.5.5 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
- 50 permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -34,19 +34,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'20 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'50 permit ip host 5.5.5.5 any log' not in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'40 permit ip host 192.0.2.4 any log' 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
match: exact
|
||||
become: yes
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 50 permit ip host 5.5.5.5 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
- 50 permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 3.3.3.3 any log
|
||||
- 30 permit ip host 2.2.2.2 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.3 any log
|
||||
- 30 permit ip host 192.0.2.2 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -34,19 +34,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'30 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'20 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'50 permit ip host 5.5.5.5 any log' not in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'40 permit ip host 192.0.2.4 any log' 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 3.3.3.3 any log
|
||||
- 30 permit ip host 2.2.2.2 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.3 any log
|
||||
- 30 permit ip host 192.0.2.2 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
match: strict
|
||||
become: yes
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: none
|
||||
|
@ -15,10 +15,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
after: end
|
||||
replace: block
|
||||
|
@ -29,18 +29,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'20 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.3 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
become: yes
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 50 permit ip host 5.5.5.5 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
- 50 permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -33,19 +33,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'20 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'50 permit ip host 5.5.5.5 any log' not in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'40 permit ip host 192.0.2.4 any log' 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
before: no ip access-list test
|
||||
parents: ip access-list test
|
||||
match: exact
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 50 permit ip host 5.5.5.5 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
- 50 permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: none
|
||||
|
@ -17,10 +17,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 3.3.3.3 any log
|
||||
- 30 permit ip host 2.2.2.2 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.3 any log
|
||||
- 30 permit ip host 192.0.2.2 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -33,19 +33,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'30 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'20 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'50 permit ip host 5.5.5.5 any log' not in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'40 permit ip host 192.0.2.4 any log' 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 3.3.3.3 any log
|
||||
- 30 permit ip host 2.2.2.2 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.3 any log
|
||||
- 30 permit ip host 192.0.2.2 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
match: strict
|
||||
become: yes
|
||||
|
|
|
@ -49,9 +49,9 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -62,10 +62,10 @@
|
|||
- name: configure sub level command using block replace
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
after: exit
|
||||
|
@ -78,18 +78,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'20 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.3 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
after: exit
|
||||
|
|
|
@ -49,9 +49,9 @@
|
|||
- name: setup
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
after: exit
|
||||
|
@ -62,10 +62,10 @@
|
|||
- name: configure sub level command using block replace
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
after: exit
|
||||
|
@ -78,18 +78,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'20 permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'40 permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'10 permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'20 permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'30 permit ip host 192.0.2.3 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
|
||||
eos_config:
|
||||
lines:
|
||||
- 10 permit ip host 1.1.1.1 any log
|
||||
- 20 permit ip host 2.2.2.2 any log
|
||||
- 30 permit ip host 3.3.3.3 any log
|
||||
- 40 permit ip host 4.4.4.4 any log
|
||||
- 10 permit ip host 192.0.2.1 any log
|
||||
- 20 permit ip host 192.0.2.2 any log
|
||||
- 30 permit ip host 192.0.2.3 any log
|
||||
- 40 permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
after: exit
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
- name: configure name_servers
|
||||
eos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
@ -22,16 +22,16 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- result.commands|length == 3
|
||||
- "'ip name-server 1.1.1.1' in result.commands"
|
||||
- "'ip name-server 2.2.2.2' in result.commands"
|
||||
- "'ip name-server 3.3.3.3' in result.commands"
|
||||
- "'ip name-server 192.0.2.1' in result.commands"
|
||||
- "'ip name-server 192.0.2.2' in result.commands"
|
||||
- "'ip name-server 192.0.2.3' in result.commands"
|
||||
|
||||
- name: verify name_servers
|
||||
eos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
@ -42,9 +42,9 @@
|
|||
#- name: change to vrf
|
||||
# eos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# become: yes
|
||||
# register: result
|
||||
|
||||
|
@ -52,15 +52,15 @@
|
|||
# that:
|
||||
# - result.changed == true
|
||||
# - result.commands|length == 2
|
||||
# - "'no ip name-server 2.2.2.2' in result.commands"
|
||||
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands"
|
||||
# - "'no ip name-server 192.0.2.2' in result.commands"
|
||||
# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
|
||||
|
||||
#- name: verify change to vrf
|
||||
# eos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# become: yes
|
||||
# register: result
|
||||
#
|
||||
|
@ -71,8 +71,8 @@
|
|||
- name: remove one
|
||||
eos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
eos_config:
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
- name: configure name_servers
|
||||
eos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
@ -22,16 +22,16 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- result.commands|length == 3
|
||||
- "'ip name-server 1.1.1.1' in result.commands"
|
||||
- "'ip name-server 2.2.2.2' in result.commands"
|
||||
- "'ip name-server 3.3.3.3' in result.commands"
|
||||
- "'ip name-server 192.0.2.1' in result.commands"
|
||||
- "'ip name-server 192.0.2.2' in result.commands"
|
||||
- "'ip name-server 192.0.2.3' in result.commands"
|
||||
|
||||
- name: verify name_servers
|
||||
eos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
@ -42,9 +42,9 @@
|
|||
#- name: change to vrf
|
||||
# eos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# become: yes
|
||||
# register: result
|
||||
|
||||
|
@ -52,15 +52,15 @@
|
|||
# that:
|
||||
# - result.changed == true
|
||||
# - result.commands|length == 2
|
||||
# - "'no ip name-server 2.2.2.2' in result.commands"
|
||||
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands"
|
||||
# - "'no ip name-server 192.0.2.2' in result.commands"
|
||||
# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
|
||||
|
||||
#- name: verify change to vrf
|
||||
# eos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# become: yes
|
||||
# register: result
|
||||
#
|
||||
|
@ -71,8 +71,8 @@
|
|||
- name: remove one
|
||||
eos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
become: yes
|
||||
register: result
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
eos_config:
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
parents: ['ip access-list extended test']
|
||||
before: ['no ip access-list extended test']
|
||||
after: ['exit']
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
parents: ['ip access-list extended test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
@ -30,18 +30,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list extended test' in result.updates"
|
||||
- "'permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.3 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
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
parents: ['ip access-list extended test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 5.5.5.5 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
- permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list extended test
|
||||
before: no ip access-list extended test
|
||||
after: exit
|
||||
|
@ -18,10 +18,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list extended test
|
||||
before: no ip access-list extended test
|
||||
after: exit
|
||||
|
@ -33,19 +33,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list extended test' in result.updates"
|
||||
- "'permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'permit ip host 4.4.4.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.1 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.4 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.5 any log' not in result.updates"
|
||||
|
||||
- name: check sub level command using exact match
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list extended test
|
||||
match: exact
|
||||
provider: "{{ cli }}"
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 5.5.5.5 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
- permit ip host 192.0.2.5 any log
|
||||
parents: ip access-list extended test
|
||||
before: no ip access-list extended test
|
||||
match: none
|
||||
|
@ -17,10 +17,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
parents: ip access-list extended test
|
||||
match: strict
|
||||
provider: "{{ cli }}"
|
||||
|
@ -33,9 +33,9 @@
|
|||
- name: check sub level command using strict match
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
parents: ip access-list extended test
|
||||
after: exit
|
||||
match: strict
|
||||
|
@ -46,11 +46,11 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list extended test' in result.updates"
|
||||
- "'permit ip host 1.1.1.1 any log' not in result.updates"
|
||||
- "'permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'permit ip host 4.4.4.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.1 any log' not in result.updates"
|
||||
- "'permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.4 any log' not in result.updates"
|
||||
- "'permit ip host 192.0.2.5 any log' not in result.updates"
|
||||
|
||||
- name: teardown
|
||||
ios_config:
|
||||
|
|
|
@ -42,9 +42,9 @@
|
|||
- name: setup test NetworkConfig.difference, replace=block
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
parents: ['ip access-list extended test']
|
||||
before: ['no ip access-list extended test']
|
||||
after: ['exit']
|
||||
|
@ -54,10 +54,10 @@
|
|||
- name: test NetworkConfig.difference, replace=block
|
||||
ios_config:
|
||||
lines:
|
||||
- permit ip host 1.1.1.1 any log
|
||||
- permit ip host 2.2.2.2 any log
|
||||
- permit ip host 3.3.3.3 any log
|
||||
- permit ip host 4.4.4.4 any log
|
||||
- permit ip host 192.0.2.1 any log
|
||||
- permit ip host 192.0.2.2 any log
|
||||
- permit ip host 192.0.2.3 any log
|
||||
- permit ip host 192.0.2.4 any log
|
||||
parents: ['ip access-list extended test']
|
||||
replace: block
|
||||
after: ['exit']
|
||||
|
@ -68,10 +68,10 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list extended test' in result.updates"
|
||||
- "'permit ip host 1.1.1.1 any log' in result.updates"
|
||||
- "'permit ip host 2.2.2.2 any log' in result.updates"
|
||||
- "'permit ip host 3.3.3.3 any log' in result.updates"
|
||||
- "'permit ip host 4.4.4.4 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.1 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.2 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.3 any log' in result.updates"
|
||||
- "'permit ip host 192.0.2.4 any log' in result.updates"
|
||||
|
||||
- name: teardown- NetworkConfig.difference, replace=block
|
||||
ios_config:
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
- name: configure name_servers
|
||||
ios_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -21,16 +21,16 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- result.commands|length == 3
|
||||
- "'ip name-server 1.1.1.1' in result.commands"
|
||||
- "'ip name-server 2.2.2.2' in result.commands"
|
||||
- "'ip name-server 3.3.3.3' in result.commands"
|
||||
- "'ip name-server 192.0.2.1' in result.commands"
|
||||
- "'ip name-server 192.0.2.2' in result.commands"
|
||||
- "'ip name-server 192.0.2.3' in result.commands"
|
||||
|
||||
- name: verify name_servers
|
||||
ios_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -41,9 +41,9 @@
|
|||
#- name: change to vrf
|
||||
# ios_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# provider: "{{ cli }}"
|
||||
# register: result
|
||||
|
||||
|
@ -51,15 +51,15 @@
|
|||
# that:
|
||||
# - result.changed == true
|
||||
# - result.commands|length == 2
|
||||
# - "'no ip name-server 2.2.2.2' in result.commands"
|
||||
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands"
|
||||
# - "'no ip name-server 192.0.2.2' in result.commands"
|
||||
# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
|
||||
|
||||
#- name: verify change to vrf
|
||||
# ios_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# provider: "{{ cli }}"
|
||||
# register: result
|
||||
#
|
||||
|
@ -70,8 +70,8 @@
|
|||
- name: remove one
|
||||
ios_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
ios_config:
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
- name: setup
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
before: ['no ipv4 access-list test']
|
||||
match: none
|
||||
|
@ -14,10 +14,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
replace: block
|
||||
register: result
|
||||
|
@ -26,18 +26,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ipv4 access-list test' in result.commands"
|
||||
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
|
||||
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
|
||||
- "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 192.0.2.3 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
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
replace: block
|
||||
register: result
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 50 permit ipv4 host 5.5.5.5 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
- 50 permit ipv4 host 192.0.2.5 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
before: ['no ipv4 access-list test']
|
||||
match: none
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
match: exact
|
||||
register: result
|
||||
|
@ -28,20 +28,20 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ipv4 access-list test' in result.commands"
|
||||
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
|
||||
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
|
||||
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands"
|
||||
- "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 192.0.2.3 any log' in result.commands"
|
||||
- "'40 permit ipv4 host 192.0.2.4 any log' 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
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 50 permit ipv4 host 5.5.5.5 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
- 50 permit ipv4 host 192.0.2.5 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
match: exact
|
||||
register: result
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 3.3.3.3 any log
|
||||
- 30 permit ipv4 host 2.2.2.2 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 50 permit ipv4 host 5.5.5.5 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.3 any log
|
||||
- 30 permit ipv4 host 192.0.2.2 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
- 50 permit ipv4 host 192.0.2.5 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
before: ['no ipv4 access-list test']
|
||||
match: none
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
before: ['no ipv4 access-list test']
|
||||
match: strict
|
||||
|
@ -30,19 +30,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ipv4 access-list test' in result.commands"
|
||||
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
|
||||
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
|
||||
- "'50 permit ipv4 host 5.5.5.5 any log' not in result.commands"
|
||||
- "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 192.0.2.3 any log' in result.commands"
|
||||
- "'40 permit ipv4 host 192.0.2.4 any log' 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
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
match: strict
|
||||
register: result
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
- name: setup
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
before: ['no ipv4 access-list test']
|
||||
match: none
|
||||
|
@ -15,10 +15,10 @@
|
|||
- name: configure sub level command using block resplace
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
replace: block
|
||||
register: result
|
||||
|
@ -27,18 +27,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ipv4 access-list test' in result.commands"
|
||||
- "'10 permit ipv4 host 1.1.1.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 2.2.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 3.3.3.3 any log' in result.commands"
|
||||
- "'40 permit ipv4 host 4.4.4.4 any log' in result.commands"
|
||||
- "'10 permit ipv4 host 192.0.2.1 any log' in result.commands"
|
||||
- "'20 permit ipv4 host 192.0.2.2 any log' in result.commands"
|
||||
- "'30 permit ipv4 host 192.0.2.3 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
|
||||
iosxr_config:
|
||||
commands:
|
||||
- 10 permit ipv4 host 1.1.1.1 any log
|
||||
- 20 permit ipv4 host 2.2.2.2 any log
|
||||
- 30 permit ipv4 host 3.3.3.3 any log
|
||||
- 40 permit ipv4 host 4.4.4.4 any log
|
||||
- 10 permit ipv4 host 192.0.2.1 any log
|
||||
- 20 permit ipv4 host 192.0.2.2 any log
|
||||
- 30 permit ipv4 host 192.0.2.3 any log
|
||||
- 40 permit ipv4 host 192.0.2.4 any log
|
||||
parents: ['ipv4 access-list test']
|
||||
replace: block
|
||||
register: result
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
- name: setup
|
||||
iosxr_config:
|
||||
lines:
|
||||
- no ip name-server 1.1.1.1
|
||||
- no ip name-server 2.2.2.2
|
||||
- no ip name-server 3.3.3.3
|
||||
- no ip name-server 192.0.2.1
|
||||
- no ip name-server 192.0.2.2
|
||||
- no ip name-server 192.0.2.3
|
||||
match: none
|
||||
provider: "{{ cli }}"
|
||||
|
||||
- name: configure name_servers
|
||||
iosxr_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -23,16 +23,16 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- result.commands|length == 3
|
||||
- "'domain name-server 1.1.1.1' in result.commands"
|
||||
- "'domain name-server 2.2.2.2' in result.commands"
|
||||
- "'domain name-server 3.3.3.3' in result.commands"
|
||||
- "'domain name-server 192.0.2.1' in result.commands"
|
||||
- "'domain name-server 192.0.2.2' in result.commands"
|
||||
- "'domain name-server 192.0.2.3' in result.commands"
|
||||
|
||||
- name: verify name_servers
|
||||
iosxr_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -43,8 +43,8 @@
|
|||
- name: remove one
|
||||
iosxr_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
|
@ -52,13 +52,13 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
iosxr_config:
|
||||
lines:
|
||||
- no ip name-server 1.1.1.1
|
||||
- no ip name-server 2.2.2.2
|
||||
- no ip name-server 192.0.2.1
|
||||
- no ip name-server 192.0.2.2
|
||||
match: none
|
||||
provider: "{{ cli }}"
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
- name: setup
|
||||
iosxr_config:
|
||||
lines:
|
||||
- no domain name-server 1.1.1.1
|
||||
- no domain name-server 2.2.2.2
|
||||
- no domain name-server 3.3.3.3
|
||||
- no domain name-server 192.0.2.1
|
||||
- no domain name-server 192.0.2.2
|
||||
- no domain name-server 192.0.2.3
|
||||
match: none
|
||||
provider: "{{ cli }}"
|
||||
connection: network_cli
|
||||
|
@ -16,9 +16,9 @@
|
|||
iosxr_system:
|
||||
vrf: ansible
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ netconf }}"
|
||||
state: absent
|
||||
connection: netconf
|
||||
|
@ -28,9 +28,9 @@
|
|||
- name: configure name_servers
|
||||
iosxr_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ netconf }}"
|
||||
connection: netconf
|
||||
register: result
|
||||
|
@ -39,16 +39,16 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- result.xml|length == 1
|
||||
- "'1.1.1.1' in result.xml[0]"
|
||||
- "'2.2.2.2' in result.xml[0]"
|
||||
- "'3.3.3.3' in result.xml[0]"
|
||||
- "'192.0.2.1' in result.xml[0]"
|
||||
- "'192.0.2.2' in result.xml[0]"
|
||||
- "'192.0.2.3' in result.xml[0]"
|
||||
|
||||
- name: verify name_servers
|
||||
iosxr_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ netconf }}"
|
||||
connection: netconf
|
||||
register: result
|
||||
|
@ -61,9 +61,9 @@
|
|||
iosxr_system: &addvrf
|
||||
vrf: ansible
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
provider: "{{ netconf }}"
|
||||
connection: netconf
|
||||
register: result
|
||||
|
@ -73,9 +73,9 @@
|
|||
- result.changed == true
|
||||
- result.xml|length == 1
|
||||
- "'ansible' in result.xml[0]"
|
||||
- "'1.1.1.1' in result.xml[0]"
|
||||
- "'2.2.2.2' in result.xml[0]"
|
||||
- "'3.3.3.3' in result.xml[0]"
|
||||
- "'192.0.2.1' in result.xml[0]"
|
||||
- "'192.0.2.2' in result.xml[0]"
|
||||
- "'192.0.2.3' in result.xml[0]"
|
||||
|
||||
- name: verify change to vrf
|
||||
iosxr_system: *addvrf
|
||||
|
@ -89,8 +89,8 @@
|
|||
- name: remove one
|
||||
iosxr_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
provider: "{{ netconf }}"
|
||||
connection: netconf
|
||||
register: result
|
||||
|
@ -99,14 +99,14 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
iosxr_system:
|
||||
vrf: ansible
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
provider: "{{ netconf }}"
|
||||
connection: netconf
|
||||
ignore_errors: True
|
||||
|
@ -115,8 +115,8 @@
|
|||
- name: teardown
|
||||
iosxr_config:
|
||||
lines:
|
||||
- no domain name-server 1.1.1.1
|
||||
- no domain name-server 2.2.2.2
|
||||
- no domain name-server 192.0.2.1
|
||||
- no domain name-server 192.0.2.2
|
||||
match: none
|
||||
provider: "{{ cli }}"
|
||||
connection: network_cli
|
||||
|
@ -125,8 +125,8 @@
|
|||
iosxr_system:
|
||||
vrf: ansible
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
provider: "{{ netconf }}"
|
||||
state: absent
|
||||
connection: netconf
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
junos_config:
|
||||
lines:
|
||||
- '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 }}"
|
||||
register: result
|
||||
|
||||
|
@ -23,13 +23,13 @@
|
|||
# Ensure host-name *hasn't* been updated
|
||||
- "'host-name;' not in result.diff.prepared"
|
||||
# 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
|
||||
junos_config:
|
||||
lines:
|
||||
- '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 }}"
|
||||
register: result
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "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
|
||||
junos_config:
|
||||
|
@ -79,7 +79,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "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
|
||||
junos_config:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- name: setup - remove interface address
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -12,7 +12,7 @@
|
|||
- name: Configure interface address
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -27,15 +27,15 @@
|
|||
- assert:
|
||||
that:
|
||||
- "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"
|
||||
- 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")
|
||||
|
||||
- name: Configure interface address (idempotent)
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -48,7 +48,7 @@
|
|||
- name: Deactivate interface address
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: present
|
||||
active: False
|
||||
|
@ -65,13 +65,13 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'<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")
|
||||
|
||||
- name: Activate interface address
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: present
|
||||
active: True
|
||||
|
@ -81,13 +81,13 @@
|
|||
- assert:
|
||||
that:
|
||||
- "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")
|
||||
|
||||
- name: Delete interface address
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -95,13 +95,13 @@
|
|||
|
||||
- assert:
|
||||
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")
|
||||
|
||||
- name: Delete interface address (idempotent)
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -114,7 +114,7 @@
|
|||
- name: Aggregate setup- delete interface ge-0/0/1
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -123,7 +123,7 @@
|
|||
- name: Aggregate setup- delete interface ge-0/0/2
|
||||
junos_l3_interface:
|
||||
name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -133,10 +133,10 @@
|
|||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
@ -145,11 +145,11 @@
|
|||
that:
|
||||
- 'result.changed == true'
|
||||
- "'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"
|
||||
- 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"
|
||||
- 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"
|
||||
- result.diff.prepared is search("\+ *address fd5d:12c9:2201:2::2/128")
|
||||
|
||||
|
@ -157,10 +157,10 @@
|
|||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
active: True
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -174,10 +174,10 @@
|
|||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
active: False
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -186,19 +186,19 @@
|
|||
- assert:
|
||||
that:
|
||||
- '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 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")
|
||||
|
||||
- name: Activate l3 interface configuration
|
||||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
active: True
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -207,19 +207,19 @@
|
|||
- assert:
|
||||
that:
|
||||
- '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 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")
|
||||
|
||||
- name: Delete l3 interface configuration
|
||||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -229,11 +229,11 @@
|
|||
that:
|
||||
- 'result.changed == true'
|
||||
- "'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"
|
||||
- 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"
|
||||
- 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"
|
||||
- result.diff.prepared is search("\- *address fd5d:12c9:2201:2::2/128")
|
||||
|
||||
|
@ -241,10 +241,10 @@
|
|||
junos_l3_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
- name: ge-0/0/2
|
||||
ipv4: 2.2.2.2
|
||||
ipv4: 192.0.2.2
|
||||
ipv6: fd5d:12c9:2201:2::2
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
- name: setup - remove interface address
|
||||
net_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -15,7 +15,7 @@
|
|||
- name: Configure interface address using platform agnostic module
|
||||
net_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -30,15 +30,15 @@
|
|||
- assert:
|
||||
that:
|
||||
- "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"
|
||||
- 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")
|
||||
|
||||
- name: teardown - remove interface address
|
||||
net_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
- name: setup - remove interface address
|
||||
net_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -70,7 +70,7 @@
|
|||
- name: Configure interface address using platform agnostic module
|
||||
net_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -85,15 +85,15 @@
|
|||
- assert:
|
||||
that:
|
||||
- "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"
|
||||
- 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")
|
||||
|
||||
- name: teardown - remove interface address
|
||||
net_l3_interface:
|
||||
name: ge-0/0/1
|
||||
ipv4: 1.1.1.1
|
||||
ipv4: 192.0.2.1
|
||||
ipv6: fd5d:12c9:2201:1::1
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/6
|
||||
- ge-0/0/5
|
||||
rd: 3.3.3.3:10
|
||||
rd: 192.0.2.3:10
|
||||
target: target:65513:111
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -28,7 +28,7 @@
|
|||
- 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/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")
|
||||
|
||||
- name: Configure vrf and its parameter (idempotent)
|
||||
|
@ -38,7 +38,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/6
|
||||
- ge-0/0/5
|
||||
rd: 3.3.3.3:10
|
||||
rd: 192.0.2.3:10
|
||||
target: target:65513:111
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -55,7 +55,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: present
|
||||
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/3.0")
|
||||
- "'[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")
|
||||
|
||||
- name: Deactivate vrf
|
||||
|
@ -78,7 +78,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: present
|
||||
active: False
|
||||
|
@ -104,7 +104,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: present
|
||||
active: True
|
||||
|
@ -130,7 +130,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -144,7 +144,7 @@
|
|||
- 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/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")
|
||||
|
||||
- name: Delete vrf (idempotent)
|
||||
|
@ -154,7 +154,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
state: absent
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -181,14 +181,14 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
- name: test-2
|
||||
description: test-vrf-2
|
||||
interfaces:
|
||||
- ge-0/0/4
|
||||
- ge-0/0/5
|
||||
rd: 2.2.2.2:10
|
||||
rd: 192.0.2.2:10
|
||||
target: target:65515:114
|
||||
provider: "{{ netconf }}"
|
||||
register: result
|
||||
|
@ -201,14 +201,14 @@
|
|||
- 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/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("\+ *test-2")
|
||||
- result.diff.prepared is search("\+ *description test-vrf-2")
|
||||
- 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/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")
|
||||
|
||||
- name: Deactivate vrf configuration using aggregate
|
||||
|
@ -219,14 +219,14 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
- name: test-2
|
||||
description: test-vrf-2
|
||||
interfaces:
|
||||
- ge-0/0/4
|
||||
- ge-0/0/5
|
||||
rd: 2.2.2.2:10
|
||||
rd: 192.0.2.2:10
|
||||
target: target:65515:114
|
||||
active: False
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -254,14 +254,14 @@
|
|||
interfaces:
|
||||
- ge-0/0/3
|
||||
- ge-0/0/2
|
||||
rd: 1.1.1.1:10
|
||||
rd: 192.0.2.1:10
|
||||
target: target:65514:113
|
||||
- name: test-2
|
||||
description: test-vrf-2
|
||||
interfaces:
|
||||
- ge-0/0/4
|
||||
- ge-0/0/5
|
||||
rd: 2.2.2.2:10
|
||||
rd: 192.0.2.2:10
|
||||
target: target:65515:114
|
||||
active: True
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -298,14 +298,14 @@
|
|||
- 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/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("\- *test-2")
|
||||
- result.diff.prepared is search("\- *description test-vrf-2")
|
||||
- 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/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")
|
||||
|
||||
- name: Delete vrf configuration using aggregate (idempotent)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
interfaces:
|
||||
- ge-0/0/6
|
||||
- ge-0/0/5
|
||||
rd: 3.3.3.3:10
|
||||
rd: 192.0.2.3:10
|
||||
target: target:65513:111
|
||||
state: present
|
||||
provider: "{{ netconf }}"
|
||||
|
@ -31,7 +31,7 @@
|
|||
- 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/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")
|
||||
|
||||
- name: teardown - remove vrf
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
seq: 10
|
||||
action: permit
|
||||
proto: tcp
|
||||
src: 1.1.1.1/24
|
||||
src: 192.0.2.1/24
|
||||
src_port_op: range
|
||||
src_port1: 1900
|
||||
src_port2: 1910
|
||||
|
@ -57,7 +57,7 @@
|
|||
seq: 10
|
||||
action: deny
|
||||
proto: tcp
|
||||
src: 1.1.1.1/24
|
||||
src: 192.0.2.1/24
|
||||
src_port_op: range
|
||||
src_port1: 1900
|
||||
src_port2: 1910
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
seq: 10
|
||||
action: permit
|
||||
proto: tcp
|
||||
src: 1.1.1.1/24
|
||||
src: 192.0.2.1/24
|
||||
dest: any
|
||||
|
||||
- block:
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
nxos_bgp: &set_multi_vrf
|
||||
asn: 65535
|
||||
vrf: "{{ item }}"
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
bestpath_always_compare_med: true
|
||||
bestpath_aspath_multipath_relax: true
|
||||
bestpath_compare_routerid: true
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
- name: "Configure BGP defaults"
|
||||
nxos_bgp: &configure_default
|
||||
asn: 65535
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
state: present
|
||||
register: result
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
- name: "Configure BGP non defaults"
|
||||
nxos_bgp: &configure_non_default
|
||||
asn: 65535
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
bestpath_always_compare_med: true
|
||||
bestpath_aspath_multipath_relax: true
|
||||
bestpath_compare_routerid: true
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
- name: "Setup"
|
||||
nxos_bgp_neighbor: &removenp
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3
|
||||
neighbor: 192.0.2.3
|
||||
vrf: "{{ item }}"
|
||||
state: absent
|
||||
with_items: "{{ vrfs }}"
|
||||
|
@ -33,7 +33,7 @@
|
|||
- name: "Setup"
|
||||
nxos_bgp_neighbor: &remove
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
state: absent
|
||||
with_items: "{{ vrfs }}"
|
||||
|
@ -43,7 +43,7 @@
|
|||
- name: "Configure BGP neighbor1"
|
||||
nxos_bgp_neighbor: &configure1
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
connected_check: true
|
||||
capability_negotiation: true
|
||||
|
@ -80,7 +80,7 @@
|
|||
- name: "Configure BGP neighbor2"
|
||||
nxos_bgp_neighbor: &configure2
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
connected_check: False
|
||||
capability_negotiation: False
|
||||
|
@ -127,7 +127,7 @@
|
|||
- name: "Configure BGP neighbor3"
|
||||
nxos_bgp_neighbor: &configure3
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
description: "tested by ansible"
|
||||
remove_private_as: "{{remove_private_asa|default(omit)}}"
|
||||
|
@ -147,7 +147,7 @@
|
|||
- name: "Configure BGP neighbor4"
|
||||
nxos_bgp_neighbor: &configure4
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
description: "tested by ansible"
|
||||
remove_private_as: "{{remove_private_asr|default(omit)}}"
|
||||
|
@ -174,7 +174,7 @@
|
|||
- name: "Configure BGP neighbor 3des password"
|
||||
nxos_bgp_neighbor: &configure_3des_password
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
remote_as: 30
|
||||
pwd: '386c0565965f89de'
|
||||
|
@ -201,7 +201,7 @@
|
|||
- name: "Configure BGP neighbor type 7 password"
|
||||
nxos_bgp_neighbor: &configure_type7_password
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
remote_as: 30
|
||||
pwd: '386c0565965f89de'
|
||||
|
@ -221,7 +221,7 @@
|
|||
- name: "Remove BGP neighbor password"
|
||||
nxos_bgp_neighbor: &remove_password
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3/32
|
||||
neighbor: 192.0.2.3/32
|
||||
vrf: "{{ item }}"
|
||||
remote_as: 30
|
||||
pwd: default
|
||||
|
@ -248,7 +248,7 @@
|
|||
- name: "Configure BGP neighbor transport type passive"
|
||||
nxos_bgp_neighbor: &configure_transport_passive
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3
|
||||
neighbor: 192.0.2.3
|
||||
vrf: "{{ item }}"
|
||||
remote_as: 30
|
||||
transport_passive_only: true
|
||||
|
@ -267,7 +267,7 @@
|
|||
- name: "Configure BGP neighbor transport type default"
|
||||
nxos_bgp_neighbor: &configure_transport_default
|
||||
asn: 65535
|
||||
neighbor: 3.3.3.3
|
||||
neighbor: 192.0.2.3
|
||||
vrf: "{{ item }}"
|
||||
remote_as: 30
|
||||
transport_passive_only: false
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
- name: "Configure BGP neighbor address-family"
|
||||
nxos_bgp_neighbor_af: &configure1
|
||||
asn: 65535
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
additional_paths_receive: 'enable'
|
||||
|
@ -63,7 +63,7 @@
|
|||
- name: "Configure BGP neighbor address-family def1"
|
||||
nxos_bgp_neighbor_af: &configure_def1
|
||||
asn: 65535
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
additional_paths_receive: 'inherit'
|
||||
|
@ -100,7 +100,7 @@
|
|||
- name: "Setup: Remove BGP config"
|
||||
nxos_bgp_neighbor_af: &removenaf
|
||||
asn: 65535
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
state: absent
|
||||
|
@ -117,7 +117,7 @@
|
|||
- name: "Configure BGP neighbor address-family"
|
||||
nxos_bgp_neighbor_af: &configure2
|
||||
asn: 65535
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
allowas_in_max: '5'
|
||||
|
@ -142,7 +142,7 @@
|
|||
- name: "Configure BGP neighbor address-family def2"
|
||||
nxos_bgp_neighbor_af: &configure_def2
|
||||
asn: 65535
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
allowas_in_max: default
|
||||
|
@ -180,14 +180,14 @@
|
|||
nxos_bgp_neighbor:
|
||||
asn: 65535
|
||||
vrf: 'blue'
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
remote_as: 2
|
||||
|
||||
- name: "Configure BGP neighbor 3"
|
||||
nxos_bgp_neighbor_af: &configure3
|
||||
asn: 65535
|
||||
vrf: 'blue'
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
additional_paths_receive: 'disable'
|
||||
|
@ -211,7 +211,7 @@
|
|||
nxos_bgp_neighbor_af: &configure_def3
|
||||
asn: 65535
|
||||
vrf: 'blue'
|
||||
neighbor: '3.3.3.3'
|
||||
neighbor: '192.0.2.3'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
additional_paths_receive: 'inherit'
|
||||
|
@ -241,13 +241,13 @@
|
|||
- name: "Configure BGP neighbor af route_reflector_client"
|
||||
nxos_bgp_neighbor:
|
||||
asn: 65535
|
||||
neighbor: '2.2.2.2'
|
||||
neighbor: '192.0.2.2'
|
||||
remote_as: 65535
|
||||
|
||||
- name: "Configure BGP neighbor 4"
|
||||
nxos_bgp_neighbor_af: &configure4
|
||||
asn: 65535
|
||||
neighbor: '2.2.2.2'
|
||||
neighbor: '192.0.2.2'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
route_reflector_client: 'true'
|
||||
|
@ -264,7 +264,7 @@
|
|||
- name: "Configure BGP neighbor def4"
|
||||
nxos_bgp_neighbor_af: &configure_def4
|
||||
asn: 65535
|
||||
neighbor: '2.2.2.2'
|
||||
neighbor: '192.0.2.2'
|
||||
afi: ipv4
|
||||
safi: unicast
|
||||
route_reflector_client: False
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
- name: "Configure BGP defaults"
|
||||
nxos_bgp: &configure_default
|
||||
asn: 65535
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
state: present
|
||||
register: result
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
- name: "Configure BGP defaults"
|
||||
nxos_bgp: &configure_default
|
||||
asn: 65535
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
state: present
|
||||
register: result
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
nxos_config:
|
||||
commands:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: none
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
nxos_config:
|
||||
commands:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
match: exact
|
||||
register: result
|
||||
|
@ -28,20 +28,20 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip 1.1.1.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 2.2.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 3.3.3.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 4.4.4.4/32 any log' in result.updates"
|
||||
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates"
|
||||
- "'10 permit ip 192.0.2.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 192.0.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 192.0.2.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 192.0.2.4/32 any log' 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
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
match: exact
|
||||
register: result
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
nxos_config:
|
||||
commands:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: none
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using strict match
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: strict
|
||||
|
@ -30,19 +30,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip 1.1.1.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 2.2.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 3.3.3.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 4.4.4.4/32 any log' in result.updates"
|
||||
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates"
|
||||
- "'10 permit ip 192.0.2.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 192.0.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 192.0.2.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 192.0.2.4/32 any log' 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
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
match: strict
|
||||
register: result
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
- name: "nxos_config sanity test"
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: exact
|
||||
|
@ -21,10 +21,10 @@
|
|||
- name: "nxos_config sanity test - replace block"
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
replace: block
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
- name: configure sub level command using block replace
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
register: result
|
||||
|
@ -22,18 +22,18 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip 1.1.1.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 2.2.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 3.3.3.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 4.4.4.4/32 any log' in result.updates"
|
||||
- "'10 permit ip 192.0.2.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 192.0.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 192.0.2.3/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
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
register: result
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
- name: setup
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
match: none
|
||||
ignore_errors: yes
|
||||
|
@ -16,10 +16,10 @@
|
|||
- name: configure sub level command using exact match
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: exact
|
||||
|
@ -30,19 +30,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip 1.1.1.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 2.2.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 3.3.3.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 4.4.4.4/32 any log' in result.updates"
|
||||
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates"
|
||||
- "'10 permit ip 192.0.2.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 192.0.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 192.0.2.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 192.0.2.4/32 any log' 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
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
match: exact
|
||||
register: result
|
||||
|
|
|
@ -4,21 +4,21 @@
|
|||
- name: setup
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 50 permit ip 5.5.5.5/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
- 50 permit ip 192.0.2.5/32 any log
|
||||
parents: ip access-list test
|
||||
match: none
|
||||
|
||||
- name: configure sub level command using strict match
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 30 permit ip 2.2.2.2/32 any log
|
||||
- 20 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 30 permit ip 192.0.2.2/32 any log
|
||||
- 20 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
before: no ip access-list test
|
||||
match: strict
|
||||
|
@ -29,19 +29,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip 1.1.1.1/32 any log' in result.updates"
|
||||
- "'30 permit ip 2.2.2.2/32 any log' in result.updates"
|
||||
- "'20 permit ip 3.3.3.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 4.4.4.4/32 any log' in result.updates"
|
||||
- "'50 permit ip 5.5.5.5/32 any log' not in result.updates"
|
||||
- "'10 permit ip 192.0.2.1/32 any log' in result.updates"
|
||||
- "'30 permit ip 192.0.2.2/32 any log' in result.updates"
|
||||
- "'20 permit ip 192.0.2.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 192.0.2.4/32 any log' 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
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 3.3.3.3/32 any log
|
||||
- 30 permit ip 2.2.2.2/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.3/32 any log
|
||||
- 30 permit ip 192.0.2.2/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
match: strict
|
||||
register: result
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
route_target_export:
|
||||
- auto
|
||||
- "5000:10"
|
||||
- "1.1.1.1:43"
|
||||
- "192.0.2.1:43"
|
||||
register: result
|
||||
|
||||
- assert: &true
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
nxos_hsrp: &conf100
|
||||
group: 100
|
||||
version: 2
|
||||
vip: 2.2.2.2
|
||||
vip: 192.0.2.2
|
||||
priority: 25
|
||||
interface: "{{ intname1 }}"
|
||||
preempt: enabled
|
||||
|
@ -96,7 +96,7 @@
|
|||
- name: "configure group 200"
|
||||
nxos_hsrp: &conf200
|
||||
group: 200
|
||||
vip: 3.3.3.3
|
||||
vip: 192.0.2.3
|
||||
version: 1
|
||||
interface: "{{ intname2 }}"
|
||||
auth_type: text
|
||||
|
@ -114,7 +114,7 @@
|
|||
- name: "change group 200"
|
||||
nxos_hsrp: &chg200
|
||||
group: 200
|
||||
vip: 3.3.3.3
|
||||
vip: 192.0.2.3
|
||||
version: 2
|
||||
interface: "{{ intname2 }}"
|
||||
auth_type: text
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
group_timeout: 300
|
||||
# deprecated
|
||||
oif_prefix: 239.255.255.2
|
||||
oif_source: 1.1.1.1
|
||||
oif_source: 192.0.2.1
|
||||
state: present
|
||||
register: result
|
||||
|
||||
|
@ -82,7 +82,7 @@
|
|||
oif_ps:
|
||||
- {'prefix': '238.2.2.6'}
|
||||
- {'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
|
||||
register: result
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@
|
|||
nxos_interface_ospf: &configurelb
|
||||
interface: LOOPBACK55
|
||||
ospf: 1
|
||||
area: 4.4.4.4
|
||||
area: 192.0.2.4
|
||||
cost: 55
|
||||
hello_interval: 15
|
||||
dead_interval: 75
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
key_id: 32
|
||||
prefer: disabled
|
||||
vrf_name: management
|
||||
source_addr: 5.5.5.5
|
||||
source_addr: 192.0.2.5
|
||||
state: absent
|
||||
ignore_errors: yes
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
|||
key_id: 32
|
||||
prefer: enabled
|
||||
vrf_name: management
|
||||
source_addr: 5.5.5.5
|
||||
source_addr: 192.0.2.5
|
||||
state: present
|
||||
register: result
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
- name: Configure ospf vrf
|
||||
nxos_ospf_vrf: &config
|
||||
ospf: 1
|
||||
router_id: 1.1.1.1
|
||||
router_id: 192.0.2.1
|
||||
timer_throttle_spf_start: 50
|
||||
timer_throttle_spf_hold: 1000
|
||||
timer_throttle_spf_max: 2000
|
||||
|
|
|
@ -70,10 +70,10 @@
|
|||
- name: configure sub level command using block replace - exact
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
provider: "{{ connection }}"
|
||||
|
@ -84,19 +84,19 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'ip access-list test' in result.updates"
|
||||
- "'10 permit ip 1.1.1.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 2.2.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 3.3.3.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 4.4.4.4/32 any log' in result.updates"
|
||||
- "'10 permit ip 192.0.2.1/32 any log' in result.updates"
|
||||
- "'20 permit ip 192.0.2.2/32 any log' in result.updates"
|
||||
- "'30 permit ip 192.0.2.3/32 any log' in result.updates"
|
||||
- "'40 permit ip 192.0.2.4/32 any log' in result.updates"
|
||||
|
||||
# hit NetworkConfig._diff_strict
|
||||
- name: configure sub level command using block replace strict
|
||||
nxos_config:
|
||||
lines:
|
||||
- 10 permit ip 1.1.1.1/32 any log
|
||||
- 20 permit ip 2.2.2.2/32 any log
|
||||
- 30 permit ip 3.3.3.3/32 any log
|
||||
- 40 permit ip 4.4.4.4/32 any log
|
||||
- 10 permit ip 192.0.2.1/32 any log
|
||||
- 20 permit ip 192.0.2.2/32 any log
|
||||
- 30 permit ip 192.0.2.3/32 any log
|
||||
- 40 permit ip 192.0.2.4/32 any log
|
||||
parents: ip access-list test
|
||||
replace: block
|
||||
provider: "{{ connection }}"
|
||||
|
@ -111,7 +111,7 @@
|
|||
- name: create static route
|
||||
nxos_static_route: &configure
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
tag: 5500
|
||||
|
@ -126,7 +126,7 @@
|
|||
- name: remove static route
|
||||
nxos_static_route: &remove
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
tag: 5500
|
||||
|
@ -141,7 +141,7 @@
|
|||
- name: remove static route
|
||||
nxos_static_route:
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
tag: 5500
|
||||
|
@ -153,8 +153,8 @@
|
|||
- name: remove static route aggregate
|
||||
nxos_static_route:
|
||||
aggregate:
|
||||
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" }
|
||||
- { prefix: "192.168.24.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: "192.0.2.3" }
|
||||
state: absent
|
||||
provider: "{{ connection }}"
|
||||
ignore_errors: yes
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
- name: Setup - Remove snmp_host if configured
|
||||
nxos_snmp_host: &remove
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
version: "{{ snmp_version }}"
|
||||
snmp_type: "{{ snmp_type }}"
|
||||
|
@ -27,7 +27,7 @@
|
|||
|
||||
- name: Configure snmp host
|
||||
nxos_snmp_host: &config
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
version: "{{ snmp_version }}"
|
||||
snmp_type: "{{ snmp_type }}"
|
||||
|
@ -53,7 +53,7 @@
|
|||
- block:
|
||||
- name: Add another vrf to filter
|
||||
nxos_snmp_host: &config1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
vrf_filter: default
|
||||
udp: 222
|
||||
state: present
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
- name: remove some configuration
|
||||
nxos_snmp_host: &rem1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
src_intf: "{{ intname|default(omit) }}"
|
||||
vrf: management
|
||||
|
@ -89,7 +89,7 @@
|
|||
- block:
|
||||
- name: remove some more configuration
|
||||
nxos_snmp_host: &rem2
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
vrf_filter: default
|
||||
state: absent
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
- name: Setup - Remove snmp_host if configured
|
||||
nxos_snmp_host: &remove
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
version: "{{ snmp_version }}"
|
||||
snmp_type: "{{ snmp_type }}"
|
||||
|
@ -27,7 +27,7 @@
|
|||
|
||||
- name: Configure snmp host
|
||||
nxos_snmp_host: &config
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
version: "{{ snmp_version }}"
|
||||
snmp_type: "{{ snmp_type }}"
|
||||
|
@ -53,7 +53,7 @@
|
|||
- block:
|
||||
- name: Add another vrf to filter
|
||||
nxos_snmp_host: &config1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
vrf_filter: default
|
||||
udp: 222
|
||||
state: present
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
- name: remove some configuration
|
||||
nxos_snmp_host: &rem1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
src_intf: "{{ intname|default(omit) }}"
|
||||
vrf: management
|
||||
|
@ -89,7 +89,7 @@
|
|||
- block:
|
||||
- name: remove some more configuration
|
||||
nxos_snmp_host: &rem2
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
vrf_filter: default
|
||||
state: absent
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
- name: Setup - Remove snmp_host if configured
|
||||
nxos_snmp_host: &remove
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
version: "{{ snmp_version }}"
|
||||
snmp_type: "{{ snmp_type }}"
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
- name: Configure snmp host
|
||||
nxos_snmp_host: &config
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
v3: "{{ snmp_auth|default(omit) }}"
|
||||
version: "{{ snmp_version }}"
|
||||
|
@ -58,7 +58,7 @@
|
|||
- block:
|
||||
- name: Add another vrf to filter
|
||||
nxos_snmp_host: &config1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
vrf_filter: default
|
||||
state: present
|
||||
register: result
|
||||
|
@ -74,7 +74,7 @@
|
|||
|
||||
- name: remove some configuration
|
||||
nxos_snmp_host: &rem1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
src_intf: "{{ intname|default(omit) }}"
|
||||
vrf: management
|
||||
vrf_filter: management
|
||||
|
@ -92,7 +92,7 @@
|
|||
- block:
|
||||
- name: remove some more configuration
|
||||
nxos_snmp_host: &rem2
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
vrf_filter: default
|
||||
state: absent
|
||||
register: result
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
- name: Setup - Remove snmp_host if configured
|
||||
nxos_snmp_host: &remove
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
udp: 222
|
||||
v3: "{{ snmp_auth|default(omit) }}"
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
- name: Configure snmp host
|
||||
nxos_snmp_host: &config
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
community: TESTING
|
||||
udp: 222
|
||||
v3: "{{ snmp_auth|default(omit) }}"
|
||||
|
@ -56,7 +56,7 @@
|
|||
- block:
|
||||
- name: Add another vrf to filter
|
||||
nxos_snmp_host: &config1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
vrf_filter: default
|
||||
state: present
|
||||
|
@ -73,7 +73,7 @@
|
|||
|
||||
- name: remove some configuration
|
||||
nxos_snmp_host: &rem1
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
src_intf: "{{ intname|default(omit) }}"
|
||||
vrf: management
|
||||
|
@ -92,7 +92,7 @@
|
|||
- block:
|
||||
- name: remove some more configuration
|
||||
nxos_snmp_host: &rem2
|
||||
snmp_host: 3.3.3.3
|
||||
snmp_host: 192.0.2.3
|
||||
udp: 222
|
||||
vrf_filter: default
|
||||
state: absent
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
- name: create static route
|
||||
nxos_static_route: &configure
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
tag: 5500
|
||||
|
@ -31,7 +31,7 @@
|
|||
- name: change static route
|
||||
nxos_static_route: &configure1
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: default
|
||||
pref: 10
|
||||
tag: default
|
||||
|
@ -51,7 +51,7 @@
|
|||
- name: remove static route
|
||||
nxos_static_route: &remove
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
vrf: "{{ item }}"
|
||||
|
@ -71,8 +71,8 @@
|
|||
- name: configure static route(aggregate)
|
||||
nxos_static_route: &conf_agg
|
||||
aggregate:
|
||||
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" }
|
||||
- { prefix: "192.168.24.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: "192.0.2.3" }
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -90,8 +90,8 @@
|
|||
- name: remove static route aggregate
|
||||
nxos_static_route: &remove_agg
|
||||
aggregate:
|
||||
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" }
|
||||
- { prefix: "192.168.24.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: "192.0.2.3" }
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
|
@ -111,7 +111,7 @@
|
|||
- name: remove static route
|
||||
nxos_static_route:
|
||||
prefix: "192.168.20.64/24"
|
||||
next_hop: "3.3.3.3"
|
||||
next_hop: "192.0.2.3"
|
||||
route_name: testing
|
||||
pref: 100
|
||||
tag: 5500
|
||||
|
@ -123,8 +123,8 @@
|
|||
- name: remove static route aggregate
|
||||
nxos_static_route:
|
||||
aggregate:
|
||||
- { prefix: "192.168.22.64/24", next_hop: "3.3.3.3" }
|
||||
- { prefix: "192.168.24.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: "192.0.2.3" }
|
||||
state: absent
|
||||
ignore_errors: yes
|
||||
|
||||
|
|
|
@ -4,32 +4,32 @@
|
|||
- name: setup
|
||||
nxos_config: &reset
|
||||
lines:
|
||||
- no ip name-server 1.1.1.1
|
||||
- no ip name-server 2.2.2.2
|
||||
- no ip name-server 3.3.3.3
|
||||
- no ip name-server 192.0.2.1
|
||||
- no ip name-server 192.0.2.2
|
||||
- no ip name-server 192.0.2.3
|
||||
match: none
|
||||
|
||||
- name: configure name_servers
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- "'ip name-server 1.1.1.1' in result.commands"
|
||||
- "'ip name-server 2.2.2.2' in result.commands"
|
||||
- "'ip name-server 3.3.3.3' in result.commands"
|
||||
- "'ip name-server 192.0.2.1' in result.commands"
|
||||
- "'ip name-server 192.0.2.2' in result.commands"
|
||||
- "'ip name-server 192.0.2.3' in result.commands"
|
||||
|
||||
- name: verify name_servers
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -39,24 +39,24 @@
|
|||
#- name: change to vrf
|
||||
# nxos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# register: result
|
||||
|
||||
#- assert:
|
||||
# that:
|
||||
# - result.changed == true
|
||||
# - result.commands|length == 2
|
||||
# - "'no ip name-server 2.2.2.2' in result.commands"
|
||||
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands"
|
||||
# - "'no ip name-server 192.0.2.2' in result.commands"
|
||||
# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
|
||||
|
||||
#- name: verify change to vrf
|
||||
# nxos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# register: result
|
||||
#
|
||||
#- assert:
|
||||
|
@ -66,15 +66,15 @@
|
|||
- name: remove one
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
nxos_system: &defns
|
||||
|
|
|
@ -11,31 +11,31 @@
|
|||
match: none
|
||||
ignore_errors: yes
|
||||
with_items:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
|
||||
- name: configure name_servers
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- "'ip name-server 1.1.1.1' in result.commands"
|
||||
- "'ip name-server 2.2.2.2' in result.commands"
|
||||
- "'ip name-server 3.3.3.3' in result.commands"
|
||||
- "'ip name-server 192.0.2.1' in result.commands"
|
||||
- "'ip name-server 192.0.2.2' in result.commands"
|
||||
- "'ip name-server 192.0.2.3' in result.commands"
|
||||
|
||||
- name: verify name_servers
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -45,24 +45,24 @@
|
|||
#- name: change to vrf
|
||||
# nxos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# register: result
|
||||
|
||||
#- assert:
|
||||
# that:
|
||||
# - result.changed == true
|
||||
# - result.commands|length == 2
|
||||
# - "'no ip name-server 2.2.2.2' in result.commands"
|
||||
# - "'ip name-server 2.2.2.2 vrf ansible' in result.commands"
|
||||
# - "'no ip name-server 192.0.2.2' in result.commands"
|
||||
# - "'ip name-server 192.0.2.2 vrf ansible' in result.commands"
|
||||
|
||||
#- name: verify change to vrf
|
||||
# nxos_system:
|
||||
# name_servers:
|
||||
# - 1.1.1.1
|
||||
# - { server: 2.2.2.2, vrf: ansible }
|
||||
# - 3.3.3.3
|
||||
# - 192.0.2.1
|
||||
# - { server: 192.0.2.2, vrf: ansible }
|
||||
# - 192.0.2.3
|
||||
# register: result
|
||||
#
|
||||
#- assert:
|
||||
|
@ -72,15 +72,15 @@
|
|||
- name: remove one
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
nxos_system: &defns
|
||||
|
@ -102,9 +102,9 @@
|
|||
- name: teardown
|
||||
nxos_config: *reset
|
||||
with_items:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
ignore_errors: yes
|
||||
|
||||
- debug: msg="END nxapi/set_name_servers.yaml"
|
||||
|
|
|
@ -179,10 +179,10 @@
|
|||
interface: nve1
|
||||
vni: 8000
|
||||
peer_list:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 4.4.4.4
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
- 192.0.2.4
|
||||
ingress_replication: static
|
||||
register: result
|
||||
|
||||
|
|
|
@ -4,33 +4,33 @@
|
|||
- name: setup
|
||||
vyos_config:
|
||||
lines:
|
||||
- delete system name-server 1.1.1.1
|
||||
- delete system name-server 2.2.2.2
|
||||
- delete system name-server 3.3.3.3
|
||||
- delete system name-server 192.0.2.1
|
||||
- delete system name-server 192.0.2.2
|
||||
- delete system name-server 192.0.2.3
|
||||
match: none
|
||||
|
||||
- name: configure name servers
|
||||
vyos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == true
|
||||
- result.commands|length == 3
|
||||
- result.commands[0] is search("set system name-server '1.1.1.1'")
|
||||
- result.commands[1] is search("set system name-server '2.2.2.2'")
|
||||
- result.commands[2] is search("set system name-server '3.3.3.3'")
|
||||
- result.commands[0] is search("set system name-server '192.0.2.1'")
|
||||
- result.commands[1] is search("set system name-server '192.0.2.2'")
|
||||
- result.commands[2] is search("set system name-server '192.0.2.3'")
|
||||
|
||||
- name: verify name_servers
|
||||
vyos_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 2.2.2.2
|
||||
- 3.3.3.3
|
||||
- 192.0.2.1
|
||||
- 192.0.2.2
|
||||
- 192.0.2.3
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -40,7 +40,7 @@
|
|||
- name: remove one
|
||||
vyos_system:
|
||||
name_servers:
|
||||
- 3.3.3.3
|
||||
- 192.0.2.3
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
|
@ -48,14 +48,14 @@
|
|||
that:
|
||||
- result.changed == true
|
||||
- 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
|
||||
vyos_config:
|
||||
lines:
|
||||
- delete system name-server name-server 1.1.1.1
|
||||
- delete system name-server name-server 2.2.2.2
|
||||
- delete system name-server name-server 3.3.3.3
|
||||
- delete system name-server name-server 192.0.2.1
|
||||
- delete system name-server name-server 192.0.2.2
|
||||
- delete system name-server name-server 192.0.2.3
|
||||
match: none
|
||||
|
||||
- debug: msg="END cli/basic.yaml on connection={{ ansible_connection }}"
|
||||
|
|
|
@ -7,24 +7,24 @@
|
|||
- name: setup
|
||||
vyos_config:
|
||||
lines:
|
||||
- delete system name-server 1.1.1.1
|
||||
- delete system name-server 192.0.2.1
|
||||
match: none
|
||||
|
||||
- name: configure name servers using platform agnostic module
|
||||
net_system:
|
||||
name_servers:
|
||||
- 1.1.1.1
|
||||
- 192.0.2.1
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 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
|
||||
vyos_config:
|
||||
lines:
|
||||
- delete system name-server 1.1.1.1
|
||||
- delete system name-server 192.0.2.1
|
||||
match: none
|
||||
|
||||
- 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
|
||||
!
|
||||
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 1.1.1.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.1 traps version 1 c4 udp-port 5
|
||||
snmp-server host 192.0.2.1 traps version 2c c1 udp-port 4
|
||||
snmp-server host 192.0.2.2 traps version 1 c3 udp-port 162
|
||||
ip community-list expanded commex deny aaa
|
||||
ip community-list standard commstd deny internet
|
||||
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
|
||||
Vl2 Up 0.0.0.0 0.0.0.0 DHCP
|
||||
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
|
||||
Vl1010 Up 10.1.1.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-disconnect
|
||||
router bgp 11
|
||||
bgp router-id 1.1.1.1
|
||||
bgp router-id 192.0.2.1
|
||||
maximum-paths 2
|
||||
maximum-paths ibgp 2
|
||||
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
|
||||
revert timer: 300 seconds
|
||||
Times primary LSP goes up since enabled: 1
|
||||
|
@ -17,7 +17,7 @@ LSP LSP1, to 1.1.1.1
|
|||
Backup LSP: DOWN
|
||||
Global revertiveness enabled with hold time 5 secs
|
||||
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
|
||||
Times primary LSP goes up since enabled: 0
|
||||
Metric: 0
|
||||
|
|
|
@ -9,7 +9,7 @@ VLL TEST-VLL, VC-ID 111, VLL-INDEX 4
|
|||
COS : 1
|
||||
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)
|
||||
Remote VC type : -- Remote VC MTU : --
|
||||
Local label : -- Remote label : --
|
||||
|
|
|
@ -10,7 +10,7 @@ VPLS TEST-VPLS, Id 333, Max mac entries: 2048
|
|||
Untagged: ethe 2/7
|
||||
VC-Mode: Raw
|
||||
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
|
||||
Local VC lbl: N/A, Remote VC lbl: N/A
|
||||
Local VC MTU: 9190, Remote VC MTU: 0
|
||||
|
|
|
@ -43,14 +43,14 @@ qos-mapping
|
|||
default-max-frame-size 9216
|
||||
cpu-usage on
|
||||
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
|
||||
!
|
||||
!
|
||||
enable password-display
|
||||
enable super-user-password 8 $1$WV1..Pi2$B6acbjDxeHsof2BKrpyqQ0
|
||||
enable aaa console
|
||||
logging host 5.5.5.5
|
||||
logging host 192.0.2.5
|
||||
logging facility local7
|
||||
logging buffered 5000
|
||||
logging console
|
||||
|
@ -244,13 +244,13 @@ router mpls
|
|||
cos 1
|
||||
|
||||
lsp LSP1
|
||||
to 1.1.1.1
|
||||
to 192.0.2.1
|
||||
no cspf
|
||||
adaptive
|
||||
enable
|
||||
|
||||
lsp LSP3
|
||||
to 3.3.3.3
|
||||
to 192.0.2.3
|
||||
shortcuts isis level2
|
||||
adaptive
|
||||
reoptimize-timer 1800
|
||||
|
@ -260,7 +260,7 @@ router mpls
|
|||
enable
|
||||
|
||||
vll TEST-VLL 111 raw-mode cos 1
|
||||
vll-peer 1.1.1.1
|
||||
vll-peer 192.0.2.1
|
||||
vlan 2005
|
||||
tagged e 2/1
|
||||
|
||||
|
@ -271,7 +271,7 @@ router mpls
|
|||
tag e 2/9
|
||||
|
||||
vpls TEST-VPLS 333
|
||||
vpls-peer 3.3.3.3
|
||||
vpls-peer 192.0.2.3
|
||||
vlan 5
|
||||
untagged ethe 2/4
|
||||
vlan 6
|
||||
|
|
|
@ -72,7 +72,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -86,7 +86,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -112,7 +112,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -136,7 +136,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -163,7 +163,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -190,7 +190,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -216,7 +216,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -244,7 +244,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -271,7 +271,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -303,7 +303,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -337,7 +337,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -371,7 +371,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -405,7 +405,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -439,7 +439,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -475,7 +475,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -511,7 +511,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -547,7 +547,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -583,7 +583,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
@ -611,7 +611,7 @@ class TestNetscalerCSActionModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_action
|
||||
|
|
|
@ -54,7 +54,7 @@ class TestNetscalerCSPolicyModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state=state,
|
||||
))
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -93,7 +93,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -119,7 +119,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -143,7 +143,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -170,7 +170,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -200,7 +200,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -226,7 +226,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -257,7 +257,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -284,7 +284,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -318,7 +318,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -354,7 +354,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -388,7 +388,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -423,7 +423,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -457,7 +457,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -494,7 +494,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -531,7 +531,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -567,7 +567,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -603,7 +603,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -631,7 +631,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
@ -659,7 +659,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
|
||||
|
@ -687,7 +687,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
servicetype='SSL',
|
||||
))
|
||||
|
@ -728,7 +728,7 @@ class TestNetscalerCSVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_cs_vserver
|
||||
|
|
|
@ -80,7 +80,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -94,7 +94,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -120,7 +120,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -144,7 +144,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -172,7 +172,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -199,7 +199,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -228,7 +228,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -256,7 +256,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -286,7 +286,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -315,7 +315,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -349,7 +349,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -386,7 +386,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -421,7 +421,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -457,7 +457,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -493,7 +493,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -531,7 +531,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -569,7 +569,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -606,7 +606,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -643,7 +643,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -680,7 +680,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
@ -709,7 +709,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_service
|
||||
|
|
|
@ -70,7 +70,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -84,7 +84,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -110,7 +110,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -134,7 +134,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -161,7 +161,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -187,7 +187,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -215,7 +215,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -242,7 +242,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -271,7 +271,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -299,7 +299,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -332,7 +332,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -367,7 +367,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -401,7 +401,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -436,7 +436,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -471,7 +471,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -507,7 +507,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -543,7 +543,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -579,7 +579,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -615,7 +615,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
@ -643,7 +643,7 @@ class TestNetscalerGSLBSiteModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_site
|
||||
|
|
|
@ -74,7 +74,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -88,7 +88,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -114,7 +114,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -138,7 +138,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -165,7 +165,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -192,7 +192,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -221,7 +221,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -248,7 +248,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -278,7 +278,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -306,7 +306,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -340,7 +340,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -378,7 +378,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -412,7 +412,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -448,7 +448,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -486,7 +486,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -524,7 +524,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -559,7 +559,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -596,7 +596,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -633,7 +633,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -669,7 +669,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -705,7 +705,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
@ -733,7 +733,7 @@ class TestNetscalerGSLBVserverModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_gslb_vserver
|
||||
|
|
|
@ -70,7 +70,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -84,7 +84,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -113,7 +113,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -135,7 +135,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -160,7 +160,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -186,7 +186,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -212,7 +212,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -239,7 +239,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -266,7 +266,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -294,7 +294,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -332,7 +332,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -358,7 +358,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -386,7 +386,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -412,7 +412,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -440,7 +440,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -464,7 +464,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_monitor
|
||||
|
@ -489,7 +489,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -92,7 +92,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -118,7 +118,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -140,7 +140,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -166,7 +166,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -193,7 +193,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -220,7 +220,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -248,7 +248,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -276,7 +276,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -307,7 +307,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -347,7 +347,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -376,7 +376,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -406,7 +406,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -456,7 +456,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -506,7 +506,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
servicetype='SSL',
|
||||
|
@ -542,7 +542,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
servicetype='HTTP',
|
||||
|
@ -577,7 +577,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -609,7 +609,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -642,7 +642,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -673,7 +673,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -704,7 +704,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -735,7 +735,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -759,7 +759,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_lb_vserver
|
||||
|
@ -784,7 +784,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
|
||||
|
@ -811,7 +811,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class TestNetscalerSaveConfigModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_save_config
|
||||
|
||||
|
@ -79,7 +79,7 @@ class TestNetscalerSaveConfigModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_save_config
|
||||
|
||||
|
@ -102,7 +102,7 @@ class TestNetscalerSaveConfigModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_save_config
|
||||
|
||||
|
@ -128,7 +128,7 @@ class TestNetscalerSaveConfigModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
))
|
||||
|
||||
class MockException(Exception):
|
||||
|
|
|
@ -70,7 +70,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
self.nitro_base_patcher.stop()
|
||||
|
@ -84,7 +84,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -110,7 +110,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -134,7 +134,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -161,7 +161,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -188,7 +188,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -215,7 +215,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -243,7 +243,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
save_config=False,
|
||||
))
|
||||
|
@ -270,7 +270,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -298,7 +298,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
disabled=True,
|
||||
graceful=True
|
||||
|
@ -333,7 +333,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -365,7 +365,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -399,7 +399,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -433,7 +433,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -467,7 +467,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -501,7 +501,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -537,7 +537,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -573,7 +573,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -609,7 +609,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -645,7 +645,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='present',
|
||||
))
|
||||
from ansible.modules.network.netscaler import netscaler_server
|
||||
|
@ -672,7 +672,7 @@ class TestNetscalerServerModule(TestModule):
|
|||
set_module_args(dict(
|
||||
nitro_user='user',
|
||||
nitro_pass='pass',
|
||||
nsip='1.1.1.1',
|
||||
nsip='192.0.2.1',
|
||||
state='absent',
|
||||
))
|
||||
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…
Reference in a new issue