Skip to content

Commit

Permalink
test: update ietf-syslog topologies
Browse files Browse the repository at this point in the history
  • Loading branch information
axkar committed Sep 10, 2024
1 parent b963788 commit 949bcfb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 43 deletions.
23 changes: 0 additions & 23 deletions test/case/ietf_syslog/basic/topology.dot

This file was deleted.

1 change: 1 addition & 0 deletions test/case/ietf_syslog/basic/topology.dot
13 changes: 6 additions & 7 deletions test/case/ietf_syslog/remote/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
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": {
Expand Down
24 changes: 11 additions & 13 deletions test/case/ietf_syslog/remote/topology.dot
Original file line number Diff line number Diff line change
@@ -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 | <cli_data> cli_data | <ser_mgmt> ser_mgmt | <ser_data> ser_data }",
pos="0,12!",
kind="controller",
];

target1 [
label="{ <mgmt> mgmt | <data> data | <target2> target2} | target1",
pos="10,18!",
client [
label="{ <mgmt> mgmt | <data> data | <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 | <data> data } | 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 modified test/case/ietf_syslog/remote/topology.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 949bcfb

Please sign in to comment.