Merge "ovs-fw: Don't modify passed rules to update"
This commit is contained in:
commit
768aa152fd
@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
|
import copy
|
||||||
|
|
||||||
import netaddr
|
import netaddr
|
||||||
from neutron_lib import constants as lib_const
|
from neutron_lib import constants as lib_const
|
||||||
@ -91,7 +92,7 @@ class SecurityGroup(object):
|
|||||||
"""
|
"""
|
||||||
self.raw_rules = []
|
self.raw_rules = []
|
||||||
self.remote_rules = []
|
self.remote_rules = []
|
||||||
for rule in rules:
|
for rule in copy.deepcopy(rules):
|
||||||
protocol = rule.get('protocol')
|
protocol = rule.get('protocol')
|
||||||
if protocol is not None:
|
if protocol is not None:
|
||||||
if protocol.isdigit():
|
if protocol.isdigit():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user