diff --git a/catalystwan/api/feature_profile_api.py b/catalystwan/api/feature_profile_api.py index 8a9113c5..cceb6cf7 100644 --- a/catalystwan/api/feature_profile_api.py +++ b/catalystwan/api/feature_profile_api.py @@ -909,9 +909,8 @@ def get_parcel( def update_parcel( self, profile_id: UUID, - parcel_type: Type[AnyServiceParcel], - parcel_id: UUID, payload: AnyServiceParcel, + parcel_id: UUID, vpn_uuid: Optional[UUID] = None, ) -> ParcelCreationResponse: """ @@ -919,9 +918,9 @@ def update_parcel( """ if vpn_uuid is not None: return self.endpoint.update_lan_vpn_sub_parcel( - profile_id, vpn_uuid, removeprefix(parcel_type._get_parcel_type(), "lan/vpn/"), parcel_id, payload + profile_id, vpn_uuid, removeprefix(payload._get_parcel_type(), "lan/vpn/"), parcel_id, payload ) - return self.endpoint.update(profile_id, parcel_type._get_parcel_type(), parcel_id, payload) + return self.endpoint.update(profile_id, payload._get_parcel_type(), parcel_id, payload) class SystemFeatureProfileAPI: @@ -1869,7 +1868,7 @@ def create_parcel(self, profile_id: UUID, config: ConfigParcel) -> ParcelCreatio """ return self.endpoint.create(profile_id, config) - def update_parcel(self, profile_id: UUID, parcel_id: UUID, config: ConfigParcel) -> ParcelCreationResponse: + def update_parcel(self, profile_id: UUID, config: ConfigParcel, parcel_id: UUID) -> ParcelCreationResponse: """ Update CLI Parcel for selected profile_id """ diff --git a/pyproject.toml b/pyproject.toml index f09aa4ca..47cd2dbb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "catalystwan" -version = "0.35.4dev2" +version = "0.35.4dev3" description = "Cisco Catalyst WAN SDK for Python" authors = ["kagorski "] readme = "README.md"