From: Marc Fiuczynski Date: Sun, 24 May 2009 19:30:05 +0000 (+0000) Subject: Lets leave PL type checking enabled, as the type check on the 'auth' X-Git-Tag: PLCAPI-4.3-15~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=45ca83e55324322c355263a054f860a0aa3ea93c;p=plcapi.git Lets leave PL type checking enabled, as the type check on the 'auth' argument sets up self.caller that is needed in some of the calls. Tests of AddInterface & DeleteNodeNetwork and vice versa function correctly. Still need to validate the same for the others such as SliceAttributes & SliceTags, NodeNetworkSettings & InterfaceTag, and *Type calls. --- diff --git a/PLC/Methods/AddNodeNetwork.py b/PLC/Methods/AddNodeNetwork.py index 2462685..f91a438 100644 --- a/PLC/Methods/AddNodeNetwork.py +++ b/PLC/Methods/AddNodeNetwork.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.AddInterface import AddInterface class AddNodeNetwork(AddInterface): """ Legacy version of AddInterface. """ - skip_typecheck = True status = "deprecated" def call(self, auth, node_id_or_hostname, interface_fields): node_id_or_hostname=patch(node_id_or_hostname,v42rename) diff --git a/PLC/Methods/AddNodeNetworkSetting.py b/PLC/Methods/AddNodeNetworkSetting.py index 19074f4..99ea05b 100644 --- a/PLC/Methods/AddNodeNetworkSetting.py +++ b/PLC/Methods/AddNodeNetworkSetting.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.AddInterfaceTag import AddInterfaceTag class AddNodeNetworkSetting(AddInterfaceTag): """ Legacy version of AddInterfaceTag. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_id, tag_type_id_or_name, value): interface_id=patch(interface_id,v42rename) diff --git a/PLC/Methods/AddNodeNetworkSettingType.py b/PLC/Methods/AddNodeNetworkSettingType.py index 0a09f8d..da26c82 100644 --- a/PLC/Methods/AddNodeNetworkSettingType.py +++ b/PLC/Methods/AddNodeNetworkSettingType.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.AddTagType import AddTagType class AddNodeNetworkSettingType(AddTagType): """ Legacy version of AddTagType. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_fields): tag_type_fields=patch(tag_type_fields,v42rename) diff --git a/PLC/Methods/AddSliceAttribute.py b/PLC/Methods/AddSliceAttribute.py index cc112a2..79ebe5d 100644 --- a/PLC/Methods/AddSliceAttribute.py +++ b/PLC/Methods/AddSliceAttribute.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.AddSliceTag import AddSliceTag class AddSliceAttribute(AddSliceTag): """ Legacy version of AddSliceTag. """ - skip_typecheck = True status = "deprecated" def call(self, auth, slice_id_or_name, tag_type_id_or_name, value, node_id_or_hostname = None, nodegroup_id_or_name = None): slice_id_or_name=patch(slice_id_or_name,v42rename) diff --git a/PLC/Methods/AddSliceAttributeType.py b/PLC/Methods/AddSliceAttributeType.py index 8788124..09571c6 100644 --- a/PLC/Methods/AddSliceAttributeType.py +++ b/PLC/Methods/AddSliceAttributeType.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributeTypes import v42rename, v43rename from PLC.Methods.AddTagType import AddTagType class AddSliceAttributeType(AddTagType): """ Legacy version of AddTagType. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_fields): tag_type_fields=patch(tag_type_fields,v42rename) diff --git a/PLC/Methods/DeleteNodeNetwork.py b/PLC/Methods/DeleteNodeNetwork.py index b130aad..f9e1b12 100644 --- a/PLC/Methods/DeleteNodeNetwork.py +++ b/PLC/Methods/DeleteNodeNetwork.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.DeleteInterface import DeleteInterface class DeleteNodeNetwork(DeleteInterface): """ Legacy version of DeleteInterface. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_id): interface_id=patch(interface_id,v42rename) diff --git a/PLC/Methods/DeleteNodeNetworkSetting.py b/PLC/Methods/DeleteNodeNetworkSetting.py index 60d99ab..9ee8fe6 100644 --- a/PLC/Methods/DeleteNodeNetworkSetting.py +++ b/PLC/Methods/DeleteNodeNetworkSetting.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.DeleteInterfaceTag import DeleteInterfaceTag class DeleteNodeNetworkSetting(DeleteInterfaceTag): """ Legacy version of DeleteInterfaceTag. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_tag_id): interface_tag_id=patch(interface_tag_id,v42rename) diff --git a/PLC/Methods/DeleteNodeNetworkSettingType.py b/PLC/Methods/DeleteNodeNetworkSettingType.py index 51e8b84..206ffa9 100644 --- a/PLC/Methods/DeleteNodeNetworkSettingType.py +++ b/PLC/Methods/DeleteNodeNetworkSettingType.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.DeleteTagType import DeleteTagType class DeleteNodeNetworkSettingType(DeleteTagType): """ Legacy version of DeleteTagType. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_id_or_name): tag_type_id_or_name=patch(tag_type_id_or_name,v42rename) diff --git a/PLC/Methods/DeleteSliceAttribute.py b/PLC/Methods/DeleteSliceAttribute.py index 51046a1..057b4b9 100644 --- a/PLC/Methods/DeleteSliceAttribute.py +++ b/PLC/Methods/DeleteSliceAttribute.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.DeleteSliceTag import DeleteSliceTag class DeleteSliceAttribute(DeleteSliceTag): """ Legacy version of DeleteSliceTag. """ - skip_typecheck = True status = "deprecated" def call(self, auth, slice_tag_id): slice_tag_id=patch(slice_tag_id,v42rename) diff --git a/PLC/Methods/DeleteSliceAttributeType.py b/PLC/Methods/DeleteSliceAttributeType.py index 0672e12..6d4a992 100644 --- a/PLC/Methods/DeleteSliceAttributeType.py +++ b/PLC/Methods/DeleteSliceAttributeType.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributeTypes import v42rename, v43rename from PLC.Methods.DeleteTagType import DeleteTagType class DeleteSliceAttributeType(DeleteTagType): """ Legacy version of DeleteTagType. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_id_or_name): tag_type_id_or_name=patch(tag_type_id_or_name,v42rename) diff --git a/PLC/Methods/GetNodeNetworkSettingTypes.py b/PLC/Methods/GetNodeNetworkSettingTypes.py index 44f613d..a84debe 100644 --- a/PLC/Methods/GetNodeNetworkSettingTypes.py +++ b/PLC/Methods/GetNodeNetworkSettingTypes.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.GetTagTypes import GetTagTypes class GetNodeNetworkSettingTypes(GetTagTypes): """ Legacy version of GetTagTypes. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_filter = None, return_fields = None): tag_type_filter=patch(tag_type_filter,v42rename) diff --git a/PLC/Methods/GetNodeNetworkSettings.py b/PLC/Methods/GetNodeNetworkSettings.py index a936a92..e0d31c7 100644 --- a/PLC/Methods/GetNodeNetworkSettings.py +++ b/PLC/Methods/GetNodeNetworkSettings.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.GetInterfaceTags import GetInterfaceTags class GetNodeNetworkSettings(GetInterfaceTags): """ Legacy version of GetInterfaceTags. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_tag_filter = None, return_fields = None): interface_tag_filter=patch(interface_tag_filter,v42rename) diff --git a/PLC/Methods/GetNodeNetworks.py b/PLC/Methods/GetNodeNetworks.py index a4cc95c..25388dd 100644 --- a/PLC/Methods/GetNodeNetworks.py +++ b/PLC/Methods/GetNodeNetworks.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.GetInterfaces import GetInterfaces class GetNodeNetworks(GetInterfaces): """ Legacy version of GetInterfaces. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_filter = None, return_fields = None): interface_filter=patch(interface_filter,v42rename) diff --git a/PLC/Methods/GetSliceAttributeTypes.py b/PLC/Methods/GetSliceAttributeTypes.py index 1d9cba4..ad4cfea 100644 --- a/PLC/Methods/GetSliceAttributeTypes.py +++ b/PLC/Methods/GetSliceAttributeTypes.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributeTypes import v42rename, v43rename from PLC.Methods.GetTagTypes import GetTagTypes class GetSliceAttributeTypes(GetTagTypes): """ Legacy version of GetTagTypes. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_filter = None, return_fields = None): tag_type_filter=patch(tag_type_filter,v42rename) diff --git a/PLC/Methods/GetSliceAttributes.py b/PLC/Methods/GetSliceAttributes.py index c840c83..6015533 100644 --- a/PLC/Methods/GetSliceAttributes.py +++ b/PLC/Methods/GetSliceAttributes.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.GetSliceTags import GetSliceTags class GetSliceAttributes(GetSliceTags): """ Legacy version of GetSliceTags. """ - skip_typecheck = True status = "deprecated" def call(self, auth, slice_tag_filter = None, return_fields = None): slice_tag_filter=patch(slice_tag_filter,v42rename) diff --git a/PLC/Methods/UpdateNodeNetwork.py b/PLC/Methods/UpdateNodeNetwork.py index 9f0958b..c693745 100644 --- a/PLC/Methods/UpdateNodeNetwork.py +++ b/PLC/Methods/UpdateNodeNetwork.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworks import v42rename, v43rename from PLC.Methods.UpdateInterface import UpdateInterface class UpdateNodeNetwork(UpdateInterface): """ Legacy version of UpdateInterface. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_id, interface_fields): interface_id=patch(interface_id,v42rename) diff --git a/PLC/Methods/UpdateNodeNetworkSetting.py b/PLC/Methods/UpdateNodeNetworkSetting.py index 50645c1..46f463a 100644 --- a/PLC/Methods/UpdateNodeNetworkSetting.py +++ b/PLC/Methods/UpdateNodeNetworkSetting.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettings import v42rename, v43rename from PLC.Methods.UpdateInterfaceTag import UpdateInterfaceTag class UpdateNodeNetworkSetting(UpdateInterfaceTag): """ Legacy version of UpdateInterfaceTag. """ - skip_typecheck = True status = "deprecated" def call(self, auth, interface_tag_id, value): interface_tag_id=patch(interface_tag_id,v42rename) diff --git a/PLC/Methods/UpdateNodeNetworkSettingType.py b/PLC/Methods/UpdateNodeNetworkSettingType.py index 706a054..8da819d 100644 --- a/PLC/Methods/UpdateNodeNetworkSettingType.py +++ b/PLC/Methods/UpdateNodeNetworkSettingType.py @@ -4,7 +4,6 @@ from PLC.v42LegacyNodeNetworkSettingTypes import v42rename, v43rename from PLC.Methods.UpdateTagType import UpdateTagType class UpdateNodeNetworkSettingType(UpdateTagType): """ Legacy version of UpdateTagType. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_id_or_name, tag_type_fields): tag_type_id_or_name=patch(tag_type_id_or_name,v42rename) diff --git a/PLC/Methods/UpdateSliceAttribute.py b/PLC/Methods/UpdateSliceAttribute.py index 81169a9..2c272f3 100644 --- a/PLC/Methods/UpdateSliceAttribute.py +++ b/PLC/Methods/UpdateSliceAttribute.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributes import v42rename, v43rename from PLC.Methods.UpdateSliceTag import UpdateSliceTag class UpdateSliceAttribute(UpdateSliceTag): """ Legacy version of UpdateSliceTag. """ - skip_typecheck = True status = "deprecated" def call(self, auth, slice_tag_id, value): slice_tag_id=patch(slice_tag_id,v42rename) diff --git a/PLC/Methods/UpdateSliceAttributeType.py b/PLC/Methods/UpdateSliceAttributeType.py index 6c10f8f..e153e64 100644 --- a/PLC/Methods/UpdateSliceAttributeType.py +++ b/PLC/Methods/UpdateSliceAttributeType.py @@ -4,7 +4,6 @@ from PLC.v42LegacySliceAttributeTypes import v42rename, v43rename from PLC.Methods.UpdateTagType import UpdateTagType class UpdateSliceAttributeType(UpdateTagType): """ Legacy version of UpdateTagType. """ - skip_typecheck = True status = "deprecated" def call(self, auth, tag_type_id_or_name, tag_type_fields): tag_type_id_or_name=patch(tag_type_id_or_name,v42rename)