rename IlinkType into LinkType as these types will be used for Nlinks as well
[plcapi.git] / PLC / Ilinks.py
index f6c9586..0267702 100644 (file)
@@ -8,7 +8,7 @@ from PLC.Parameter import Parameter
 from PLC.Filter import Filter
 from PLC.Table import Row, Table
 from PLC.Interfaces import Interface, Interfaces
-from PLC.IlinkTypes import IlinkType, IlinkTypes
+from PLC.LinkTypes import LinkType, LinkTypes
 
 class Ilink(Row):
     """
@@ -20,7 +20,7 @@ class Ilink(Row):
     primary_key = 'ilink_id'
     fields = {
         'ilink_id': Parameter(int, "ilink identifier"),
-        'ilink_type_id': IlinkType.fields['ilink_type_id'],
+        'link_type_id': LinkType.fields['link_type_id'],
         'src_interface_id': Parameter(int, "source interface identifier"),
         'dst_interface_id': Parameter(int, "destination interface identifier"),
         'value': Parameter( str, "optional ilink value"),