diff options
author | George Paraskevopoulos <geopar@intracom-telecom.com> | 2017-03-23 13:05:28 +0200 |
---|---|---|
committer | Manuel Buil <mbuil@suse.com> | 2017-03-23 16:56:23 +0000 |
commit | 691228af4657cb71af629443cc0e58072b2bc469 (patch) | |
tree | 8f924337e8ef1ec58788effd6983be179a4a88e7 /sfc/lib/utils.py | |
parent | 2a999ce2dd9f270e5e6cb3cc1c17970ec4a6c540 (diff) |
Delete ACL when deleting a classifier
Change-Id: I8e54892450e903aa51f888229940e6371a0710f7
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
(cherry picked from commit d41124f9c8cd14cfab61d4848a70aa227e80eefb)
Diffstat (limited to 'sfc/lib/utils.py')
-rw-r--r-- | sfc/lib/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py index 65942b9f..5666b381 100644 --- a/sfc/lib/utils.py +++ b/sfc/lib/utils.py @@ -567,3 +567,11 @@ def delete_odl_acl(odl_ip, odl_port, acl_type, acl_name): acl_list_url = format_odl_acl_list_url(odl_ip, odl_port) acl_url = '{0}/acl/{1}/{2}'.format(acl_list_url, acl_type, acl_name) requests.delete(acl_url) + + +def delete_classifier_and_acl(tacker_client, clf_name, odl_ip, odl_port): + os_tacker.delete_sfc_classifier(tacker_client, sfc_clf_name=clf_name) + delete_odl_acl(odl_ip, + odl_port, + 'ietf-access-control-list:ipv4-acl', + clf_name) |