git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added PLCAPI support for Dummynet Boxes.
[plcapi.git]
/
PLC
/
Methods
/
UpdateEmulationLink.py
diff --git
a/PLC/Methods/UpdateEmulationLink.py
b/PLC/Methods/UpdateEmulationLink.py
index
046f881
..
007faba
100644
(file)
--- a/
PLC/Methods/UpdateEmulationLink.py
+++ b/
PLC/Methods/UpdateEmulationLink.py
@@
-10,7
+10,7
@@
from PLC.Nodes import Node, Nodes
from PLC.NodeGroups import NodeGroup, NodeGroups
from PLC.Sites import Site, Sites
from PLC.Auth import Auth
from PLC.NodeGroups import NodeGroup, NodeGroups
from PLC.Sites import Site, Sites
from PLC.Auth import Auth
-from PLC.Accessors.Accessors_
standard import *
# import dummynet accessors
+from PLC.Accessors.Accessors_
dummynetbox import *
# import dummynet accessors
class UpdateEmulationLink(Method):
"""
class UpdateEmulationLink(Method):
"""
@@
-80,7
+80,7
@@
class UpdateEmulationLink(Method):
raise PLCPermissionDenied, "Not allowed to manage on this link"
# Add the dummynetbox
raise PLCPermissionDenied, "Not allowed to manage on this link"
# Add the dummynetbox
-
emulation_link = SetNodeDummynet
(self.api)
+
emulation_link = SetNodeDummynetBox
(self.api)
emulation_link.call(auth, node_id, dummynet_id)
return 1
emulation_link.call(auth, node_id, dummynet_id)
return 1