svn keywords
[plcapi.git] / PLC / Methods / GetInterfaces.py
index 2bd7f7c..2c6b6b4 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -7,11 +9,11 @@ from PLC.Auth import Auth
 
 class GetInterfaces(Method):
     """
-    Returns an array of structs containing details about node network
-    interfacess. If interfaces_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.
+    Returns an array of structs containing details about network
+    interfaces. If interfaces_filter is specified and is an array of
+    interface identifiers, or a struct of interface fields and
+    values, only interfaces matching the filter will be
+    returned.
 
     If return_fields is given, only the specified details will be returned.
     """
@@ -20,8 +22,10 @@ class GetInterfaces(Method):
 
     accepts = [
         Auth(),
-        Mixed([Interface.fields['interface_id']],
+        Mixed([Mixed(Interface.fields['interface_id'],
+                     Interface.fields['ip'])],
               Parameter (int, "interface id"),
+              Parameter (str, "ip address"),
               Filter(Interface.fields)),
         Parameter([str], "List of fields to return", nullok = True)
         ]