f-50: lab: résultats d'E5, contrôle DHCP de s1 sur les couples MAC/IP, perte du route reflector #50
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
b4660c95d3
commit
909b4110c2
4 changed files with 47 additions and 13 deletions
|
|
@ -146,6 +146,6 @@ while not buf.endswith(b"\n"):
|
|||
break
|
||||
buf += c
|
||||
state = json.loads(buf).get("state") or {}
|
||||
print(" ".join(sorted(h["mac"].lower() for h in state.get("hosts") or [])))
|
||||
print(" ".join(sorted(h["mac"].lower() + "=" + h["ip"] for h in state.get("hosts") or [])))
|
||||
PY
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue