mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
use new configuration syntax in loopback example
This commit is contained in:
parent
06ef762ad9
commit
79d5a58cd5
1 changed files with 31 additions and 13 deletions
|
@ -53,32 +53,50 @@ nodes = {
|
|||
node1 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
local = "*:12000", # Local ip:port, use '*' for random port
|
||||
remote = "127.0.0.1:12001",
|
||||
netem = {
|
||||
enabled = false,
|
||||
delay = 1000000, # In micro seconds!
|
||||
jitter = 300000,
|
||||
distribution = "normal"
|
||||
|
||||
in = {
|
||||
address = "*:12000", # Local ip:port, use '*' for random port
|
||||
}
|
||||
|
||||
out = {
|
||||
address = "127.0.0.1:12001",
|
||||
netem = {
|
||||
enabled = false,
|
||||
delay = 1000000, # In micro seconds!
|
||||
jitter = 300000,
|
||||
distribution = "normal"
|
||||
}
|
||||
}
|
||||
},
|
||||
node2 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
local = "*:12001", # Local ip:port, use '*' for random port
|
||||
remote = "127.0.0.1:12002",
|
||||
in = {
|
||||
address = "*:12001", # Local ip:port, use '*' for random port
|
||||
}
|
||||
out = {
|
||||
address = "127.0.0.1:12002",
|
||||
}
|
||||
},
|
||||
node3 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
local = "*:12002", # Local ip:port, use '*' for random port
|
||||
remote = "127.0.0.1:12000",
|
||||
in = {
|
||||
address = "*:12002", # Local ip:port, use '*' for random port
|
||||
}
|
||||
out = {
|
||||
address = "127.0.0.1:12000",
|
||||
}
|
||||
},
|
||||
loopback = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
local = "*:12003", # Local ip:port, use '*' for random port
|
||||
remote = "127.0.0.1:12003",
|
||||
in = {
|
||||
address = "127.0.0.1:12003", # Local ip:port, use '*' for random port
|
||||
}
|
||||
out = {
|
||||
address = "127.0.0.1:12003",
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue