git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Installs iptables for internet2.
[nodemanager.git]
/
nm.py
diff --git
a/nm.py
b/nm.py
index
ae92e07
..
c4760fc
100644
(file)
--- a/
nm.py
+++ b/
nm.py
@@
-14,7
+14,7
@@
import logger
import tools
from config import Config
import tools
from config import Config
-from plcapi import PLCAPI
+from plcapi import PLCAPI
savedargv = sys.argv[:]
savedargv = sys.argv[:]
@@
-31,9
+31,13
@@
modules = []
def GetSlivers(plc):
data = plc.GetSlivers()
def GetSlivers(plc):
data = plc.GetSlivers()
+ # net needs access to API for i2 nodes.
for module in modules:
for module in modules:
- callback = getattr(module, 'GetSlivers')
- callback(data)
+ if module.__name__ == 'net':
+ module.GetSlivers(plc, data)
+ else:
+ callback = getattr(module, 'GetSlivers')
+ callback(data)
def run():
try:
def run():
try: