merged latest from develop
This commit is contained in:
commit
83f66d33f7
16 changed files with 81 additions and 83 deletions
|
@ -1134,7 +1134,7 @@ class CoreNetworkBase(NodeBase):
|
|||
bandwidth=netif.getparam("bw"),
|
||||
dup=netif.getparam("duplicate"),
|
||||
jitter=netif.getparam("jitter"),
|
||||
per=netif.getparam("loss"),
|
||||
loss=netif.getparam("loss"),
|
||||
)
|
||||
|
||||
all_links.append(link_data)
|
||||
|
@ -1153,7 +1153,7 @@ class CoreNetworkBase(NodeBase):
|
|||
bandwidth=netif.getparam("bw"),
|
||||
dup=netif.getparam("duplicate"),
|
||||
jitter=netif.getparam("jitter"),
|
||||
per=netif.getparam("loss"),
|
||||
loss=netif.getparam("loss"),
|
||||
)
|
||||
netif.swapparams("_params_up")
|
||||
|
||||
|
|
|
@ -482,7 +482,7 @@ class CoreNetwork(CoreNetworkBase):
|
|||
netem = "netem"
|
||||
delay = options.delay
|
||||
changed = max(changed, netif.setparam("delay", delay))
|
||||
loss = options.per
|
||||
loss = options.loss
|
||||
if loss is not None:
|
||||
loss = float(loss)
|
||||
changed = max(changed, netif.setparam("loss", loss))
|
||||
|
@ -939,7 +939,7 @@ class PtpNet(CoreNetwork):
|
|||
unidirectional=unidirectional,
|
||||
delay=if1.getparam("delay"),
|
||||
bandwidth=if1.getparam("bw"),
|
||||
per=if1.getparam("loss"),
|
||||
loss=if1.getparam("loss"),
|
||||
dup=if1.getparam("duplicate"),
|
||||
jitter=if1.getparam("jitter"),
|
||||
interface1_id=if1.node.getifindex(if1),
|
||||
|
@ -970,7 +970,7 @@ class PtpNet(CoreNetwork):
|
|||
node2_id=if1.node.id,
|
||||
delay=if2.getparam("delay"),
|
||||
bandwidth=if2.getparam("bw"),
|
||||
per=if2.getparam("loss"),
|
||||
loss=if2.getparam("loss"),
|
||||
dup=if2.getparam("duplicate"),
|
||||
jitter=if2.getparam("jitter"),
|
||||
unidirectional=1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue