Add test for container specific extra network interface
Change-Id: Ia13c037640eea751edfe521009144d12a6684c44 Depends-On: I0cfed0ad6cce99c420c31920446e0a69a82fa602 Depends-On: I5346fdf81967d6eb7f69e61a187166c076ca4b60
This commit is contained in:
parent
f08146b377
commit
59e4ba865a
|
@ -12,3 +12,9 @@ container_networks:
|
|||
address: "{{ ansible_host }}"
|
||||
netmask: "255.255.255.0"
|
||||
bridge: "br-mgmt"
|
||||
|
||||
container_extra_networks:
|
||||
extra_address:
|
||||
address: "172.29.254.103"
|
||||
netmask: "255.255.255.0"
|
||||
bridge: "br-extra"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
bridges:
|
||||
- "br-mgmt"
|
||||
- "br-extra"
|
||||
|
||||
ansible_python_interpreter: "/usr/bin/python2"
|
||||
|
||||
|
@ -25,3 +26,10 @@ container_networks:
|
|||
address: "172.29.236.100"
|
||||
netmask: "255.255.255.0"
|
||||
bridge: "br-mgmt"
|
||||
|
||||
container_extra_networks:
|
||||
extra_address:
|
||||
address: "172.29.254.100"
|
||||
netmask: "255.255.255.0"
|
||||
private_device: true
|
||||
bridge: "br-extra"
|
||||
|
|
|
@ -39,3 +39,13 @@
|
|||
with_items: "{{ groups['all_containers'] }}"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Test connectivity to container specific extra address
|
||||
command: ping -c 1 172.29.254.100
|
||||
register: machinectl_ping
|
||||
retries: 3
|
||||
delay: 5
|
||||
until: machinectl_ping is success
|
||||
delegate_to: container3
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
|
Loading…
Reference in New Issue