From 665f50b36d39bf161a93ea2788d5848f11ad2350 Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Thu, 14 Apr 2016 10:50:41 -0400 Subject: [PATCH] Remove APIParamsCall references This decorator is no longer supported by the Neutron Client, so we can safely remove it. Change-Id: Ib12f18a4430725e703c7a680324d948fee306758 Closes-Bug:1570423 --- astara/api/neutron.py | 2 -- tools/astara-byonf | 3 --- 2 files changed, 5 deletions(-) diff --git a/astara/api/neutron.py b/astara/api/neutron.py index 3d27bee1..9ca278eb 100644 --- a/astara/api/neutron.py +++ b/astara/api/neutron.py @@ -737,14 +737,12 @@ class AstaraExtClientWrapper(client.Client): routerstatus_path = '/dhrouterstatus' lbstatus_path = '/akloadbalancerstatus' - @client.APIParamsCall def update_router_status(self, router, status): return self.put( '%s/%s' % (self.routerstatus_path, router), body={'routerstatus': {'status': status}} ) - @client.APIParamsCall def update_loadbalancer_status(self, load_balancer, status): return self.put( '%s/%s' % (self.lbstatus_path, load_balancer), diff --git a/tools/astara-byonf b/tools/astara-byonf index f20e1373..27263763 100755 --- a/tools/astara-byonf +++ b/tools/astara-byonf @@ -31,7 +31,6 @@ class ByoExtClientWrapper(client.Client): byonfs_path = '/byonfs' - @client.APIParamsCall def create_byonf(self, byonf): return self.post( self.byonf_path, @@ -49,11 +48,9 @@ class ByoExtClientWrapper(client.Client): body={'byonf': byonf} ) - @client.APIParamsCall def list_byonfs(self, retrieve_all=True, **_params): return self.list('byonfs', self.byonf_path, retrieve_all, **_params) - @client.APIParamsCall def delete_byonf(self, byonf_id): return self.delete('%s/%s' % (self.byonf_path, byonf_id))