test: upgrade: Adapt to yangerd

This commit is contained in:
Mattias Walström
2026-06-27 08:41:21 +02:00
parent 98022e2e5f
commit 0b193cb5bd
+6 -1
View File
@@ -124,7 +124,12 @@ with infamy.Test() as test:
with test.step("Wait for upgrade to finish"):
for _ in range(600):
oper = target.get_dict("/ietf-system:system-state/software")
# yanger may not yet has fully populated the operational
try:
oper = target.get_dict("/ietf-system:system-state/software")
except:
continue
installer = oper["system-state"]["software"]["installer"]
if installer["operation"] == "idle":
print(installer)