From 5738434cd93329fd4d5379a521d49016f6c3e461 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 24 May 2019 15:55:19 +0000 Subject: [PATCH] Remove "_make_security_group_rule_filter_dict" In later patches, this method became unused. Trivial-Fix Change-Id: I9699a4bac0551c0292d9a7b88aedf421a3b24657 --- neutron/db/securitygroups_db.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/neutron/db/securitygroups_db.py b/neutron/db/securitygroups_db.py index 9eb28dfd198..afd17c381ef 100644 --- a/neutron/db/securitygroups_db.py +++ b/neutron/db/securitygroups_db.py @@ -585,24 +585,6 @@ class SecurityGroupDbMixin(ext_sg.SecurityGroupPluginBase, security_group_rule) return db_utils.resource_fields(res, fields) - def _make_security_group_rule_filter_dict(self, security_group_rule): - sgr = security_group_rule['security_group_rule'] - res = {'tenant_id': [sgr['tenant_id']], - 'security_group_id': [sgr['security_group_id']], - 'direction': [sgr['direction']]} - - include_if_present = ['protocol', 'port_range_max', 'port_range_min', - 'ethertype', 'remote_group_id'] - for key in include_if_present: - value = sgr.get(key) - if value: - res[key] = [value] - # protocol field will get corresponding name and number - value = sgr.get('protocol') - if value: - res['protocol'] = self._get_ip_proto_name_and_num(value) - return res - def _rule_to_key(self, rule): def _normalize_rule_value(key, value): # This string is used as a placeholder for str(None), but shorter.