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
first draft for node tags & new node groups:
[plcapi.git]
/
PLC
/
Methods
/
GetInterfaces.py
diff --git
a/PLC/Methods/GetNodeNetworks.py
b/PLC/Methods/GetInterfaces.py
similarity index 57%
rename from
PLC/Methods/GetNodeNetworks.py
rename to
PLC/Methods/GetInterfaces.py
index
150f87d
..
2bd7f7c
100644
(file)
--- a/
PLC/Methods/GetNodeNetworks.py
+++ b/
PLC/Methods/GetInterfaces.py
@@
-2,13
+2,13
@@
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Filter import Filter
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Filter import Filter
-from PLC.
NodeNetworks import NodeNetwork, NodeNetwork
s
+from PLC.
Interfaces import Interface, Interface
s
from PLC.Auth import Auth
from PLC.Auth import Auth
-class Get
NodeNetwork
s(Method):
+class Get
Interface
s(Method):
"""
Returns an array of structs containing details about node network
"""
Returns an array of structs containing details about node network
- interfacess. If
nodenetwork
s_filter is specified and is an array
+ interfacess. If
interface
s_filter is specified and is an array
of node network identifiers, or a struct of node network
fields and values, only node network interfaces matching the filter
will be returned.
of node network identifiers, or a struct of node network
fields and values, only node network interfaces matching the filter
will be returned.
@@
-20,13
+20,13
@@
class GetNodeNetworks(Method):
accepts = [
Auth(),
accepts = [
Auth(),
- Mixed([
NodeNetwork.fields['nodenetwork
_id']],
- Parameter (int, "
nodenetwork
id"),
- Filter(
NodeNetwork
.fields)),
+ Mixed([
Interface.fields['interface
_id']],
+ Parameter (int, "
interface
id"),
+ Filter(
Interface
.fields)),
Parameter([str], "List of fields to return", nullok = True)
]
Parameter([str], "List of fields to return", nullok = True)
]
- returns = [
NodeNetwork
.fields]
+ returns = [
Interface
.fields]
- def call(self, auth,
nodenetwork
_filter = None, return_fields = None):
- return
NodeNetworks(self.api, nodenetwork
_filter, return_fields)
+ def call(self, auth,
interface
_filter = None, return_fields = None):
+ return
Interfaces(self.api, interface
_filter, return_fields)