cleanup and support for editing links within the web app and rest api
This commit is contained in:
parent
5f6f718e92
commit
f9200db939
8 changed files with 180 additions and 38 deletions
|
@ -578,6 +578,7 @@ class PyCoreNet(PyCoreObj):
|
|||
delay=netif.getparam("delay"),
|
||||
bandwidth=netif.getparam("bw"),
|
||||
dup=netif.getparam("duplicate"),
|
||||
per=netif.getparam("loss"),
|
||||
jitter=netif.getparam("jitter")
|
||||
)
|
||||
|
||||
|
@ -595,6 +596,7 @@ class PyCoreNet(PyCoreObj):
|
|||
delay=netif.getparam("delay"),
|
||||
bandwidth=netif.getparam("bw"),
|
||||
dup=netif.getparam("duplicate"),
|
||||
per=netif.getparam("loss"),
|
||||
jitter=netif.getparam("jitter")
|
||||
)
|
||||
netif.swapparams('_params_up')
|
||||
|
|
|
@ -83,6 +83,7 @@ def link_config(network, interface, link_options, devname=None, interface_two=No
|
|||
if not nodeutils.is_node(network, [NodeTypes.EMANE, NodeTypes.PHYSICAL]):
|
||||
config["devname"] = devname
|
||||
|
||||
logger.info("configuring link for network(%s): %s", network.name, config)
|
||||
network.linkconfig(**config)
|
||||
|
||||
|
||||
|
|
|
@ -264,6 +264,7 @@ class PtpNet(LxBrNet):
|
|||
delay=if1.getparam("delay"),
|
||||
bandwidth=if1.getparam("bw"),
|
||||
dup=if1.getparam("duplicate"),
|
||||
per=if1.getparam("loss"),
|
||||
jitter=if1.getparam("jitter"),
|
||||
interface1_id=if1.node.getifindex(if1),
|
||||
interface1_mac=if1.hwaddr,
|
||||
|
@ -291,6 +292,7 @@ class PtpNet(LxBrNet):
|
|||
delay=if1.getparam("delay"),
|
||||
bandwidth=if1.getparam("bw"),
|
||||
dup=if1.getparam("duplicate"),
|
||||
per=if1.getparam("loss"),
|
||||
jitter=if1.getparam("jitter"),
|
||||
unidirectional=1,
|
||||
interface1_id=if2.node.getifindex(if2),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue