test: Set hostname for OSPF tests to detect the role

This commit is contained in:
Mattias Walström
2024-01-15 16:29:06 +01:00
committed by Joachim Wiberg
parent 15aaa70d63
commit b48798b23a
2 changed files with 22 additions and 1 deletions
+10 -1
View File
@@ -44,7 +44,11 @@ def config_target1(target, data, link):
]
}
})
target.put_config_dict("ietf-system", {
"system": {
"hostname": "R1"
}
})
target.put_config_dict("ietf-routing", {
"routing": {
"control-plane-protocols": {
@@ -111,6 +115,11 @@ def config_target2(target, link):
}
})
target.put_config_dict("ietf-system", {
"system": {
"hostname": "R2"
}
})
target.put_config_dict("ietf-routing", {
"routing": {
"control-plane-protocols": {
@@ -48,6 +48,12 @@ def config_target1(target, data, link):
]
}
})
target.put_config_dict("ietf-system", {
"system": {
"hostname": "R1"
}
})
target.put_config_dict("ietf-routing", {
"routing": {
@@ -116,6 +122,12 @@ def config_target2(target, link):
}
})
target.put_config_dict("ietf-system", {
"system": {
"hostname": "R2"
}
})
target.put_config_dict("ietf-routing", {
"routing": {
"control-plane-protocols": {