f-75: e2e: 33-bridge vérifie le confinement de interface_ip entre deux hôtes, attente de cloud-init dans 23 et 27 #75
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
85abdaa1ef
commit
827d9599ef
6 changed files with 70 additions and 6 deletions
|
|
@ -124,6 +124,8 @@ def match(kind, a, f):
|
|||
t = f[12:14]
|
||||
if kind == 'arp-req':
|
||||
return t == b'\x08\x06' and f[20:22] == b'\x00\x01' and f[38:42] == ipb(a[0])
|
||||
if kind == 'arp-from':
|
||||
return t == b'\x08\x06' and f[28:32] == ipb(a[0])
|
||||
if kind == 'udp-from':
|
||||
return t == b'\x08\x00' and f[23] == 17 and f[26:30] == ipb(a[0]) and struct.unpack('!H', f[34:36])[0] == int(a[1])
|
||||
if kind == 'marker':
|
||||
|
|
|
|||
|
|
@ -142,6 +142,10 @@ vm_meta () {
|
|||
vm_ssh "${1}" "${2}" "curl -fsS http://169.254.169.254/${3}"
|
||||
}
|
||||
|
||||
vm_cloud_init_done () {
|
||||
vm_ssh "${1}" "${2}" "timeout ${3:-300} cloud-init status --wait"
|
||||
}
|
||||
|
||||
vm_boot_id () {
|
||||
vm_ssh "${1}" "${2}" 'cat /proc/sys/kernel/random/boot_id'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue