test: update ietf_syslog topologies

This commit is contained in:
Ahmed Karic
2024-09-10 14:59:12 +02:00
committed by Tobias Waldekranz
parent b963788fbc
commit 4efe89b3ea
4 changed files with 18 additions and 43 deletions
-23
View File
@@ -1,23 +0,0 @@
graph "1x1" {
layout="neato";
overlap="false";
esep="+20";
node [shape=record, fontname="monospace"];
edge [color="cornflowerblue", penwidth="2"];
host [
label="host | { <tgt> tgt }",
pos="0,12!",
kind="controller",
];
target [
label="{ <mgmt> mgmt } | target",
pos="10,12!",
kind="infix",
];
host:tgt -- target:mgmt [kind=mgmt]
}
+1
View File
@@ -0,0 +1 @@
../../../infamy/topologies/1x1.dot
+6 -7
View File
@@ -9,15 +9,14 @@ import infamy
with infamy.Test() as test:
with test.step("Initialize"):
env = infamy.Env()
client = env.attach("target1", "mgmt")
server = env.attach("target2", "mgmt")
clientssh = env.attach("target1", "mgmt", "ssh")
serverssh = env.attach("target2", "mgmt", "ssh")
client = env.attach("client", "mgmt")
server = env.attach("server", "mgmt")
clientssh = env.attach("client", "mgmt", "ssh")
serverssh = env.attach("server", "mgmt", "ssh")
with test.step("Topology setup"):
_, client_e0 = env.ltop.xlate("target1", "data")
_, client_e1 = env.ltop.xlate("target1", "target2")
_, server_e0 = env.ltop.xlate("target2", "target1")
_, client_e1 = env.ltop.xlate("client", "to_server")
_, server_e0 = env.ltop.xlate("server", "to_client")
client.put_config_dict("ietf-interfaces", {
"interfaces": {
+11 -13
View File
@@ -1,32 +1,30 @@
graph "2x2" {
layout="neato";
overlap="false";
esep="+20";
esep="+60";
node [shape=record, fontname="monospace"];
edge [color="cornflowerblue", penwidth="2"];
host [
label="host | { <mgmt1> mgmt1 | <data1> data1 | <mgmt2> mgmt2 | <data2> data2 }",
label="host | { <cli_mgmt> cli_mgmt | <ser_mgmt> ser_mgmt }",
pos="0,12!",
kind="controller",
];
target1 [
label="{ <mgmt> mgmt | <data> data | <target2> target2} | target1",
pos="10,18!",
client [
label="{ <mgmt> mgmt | <to_server> to_server} | client",
pos="15,18!",
kind="infix",
];
target2 [
label="{ <target1> target1 |<mgmt> mgmt | <data> data } | target2",
pos="10,6!",
server [
label="{ <to_client> to_client | <mgmt> mgmt } | server",
pos="15,6!",
kind="infix",
];
host:mgmt1 -- target1:mgmt [kind=mgmt]
host:mgmt2 -- target2:mgmt [kind=mgmt]
host:data1 -- target1:data
host:data2 -- target2:data
target1:target2 -- target2:target1
host:cli_mgmt -- client:mgmt [kind=mgmt]
host:ser_mgmt -- server:mgmt [kind=mgmt]
client:to_server -- server:to_client [color=black, fontcolor=black, taillabel="10.0.0.2/24", headlabel="10.0.0.1/24"]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 22 KiB