+ for port in no_secured_ports:
+ port_update = {
+ "port": {
+ "port_security_enabled": False,
+ "security_groups": None
+ }
+ }
+
+ if port[1] == "allow-address-pairs":
+ port_update = {
+ "port": {
+ "allowed_address_pairs": [
+ {
+ "ip_address": "0.0.0.0/0"
+ }
+ ]
+ }
+ }
+