X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FGetBootMedium.py;h=5abb2954010dfd7f95c569993bb1067e6eb3dee4;hb=55b03f96204cbe7f512ff890f7df9da6e841da57;hp=6c28d2b889f3308f9286e18a6d8903e0a317d7c8;hpb=37ec4cd11d6eb542e8b9a2c7bcb642bb0989c003;p=plcapi.git diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 6c28d2b..5abb295 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -12,7 +12,7 @@ from PLC.Auth import Auth from PLC.Nodes import Node, Nodes from PLC.Interfaces import Interface, Interfaces -from PLC.InterfaceSettings import InterfaceSetting, InterfaceSettings +from PLC.InterfaceTags import InterfaceTag, InterfaceTags from PLC.NodeTags import NodeTags # could not define this in the class.. @@ -197,7 +197,7 @@ class GetBootMedium(Method): file += 'DOMAIN_NAME="%s"\n' % domain # define various interface settings attached to the primary interface - settings = InterfaceSettings (self.api, {'interface_id':interface['interface_id']}) + settings = InterfaceTags (self.api, {'interface_id':interface['interface_id']}) categories = set() for setting in settings: @@ -205,7 +205,7 @@ class GetBootMedium(Method): categories.add(setting['category']) for category in categories: - category_settings = InterfaceSettings(self.api,{'interface_id':interface['interface_id'], + category_settings = InterfaceTags(self.api,{'interface_id':interface['interface_id'], 'category':category}) if category_settings: file += '### Category : %s\n'%category