Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion aos/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,7 @@ def create_security_zone(
routing_policy: dict = None,
import_policy: str = None,
vlan_id: int = None,
vni_id: int = None,
leaf_loopback_ip_pools: list = None,
dhcp_servers: list = None,
timeout: int = 60,
Expand Down Expand Up @@ -1677,6 +1678,8 @@ def create_security_zone(
(str) - change the route import policy. Default is
"default_only
["default_only", "all", "extra_only"]
vni_id
(int) - VxLAN VNI assosiated with the routing zone
vlan_id
(int) - VLAN ID use for sub-interface tagging with external system
connections. Must be unique across all security zones
Expand Down Expand Up @@ -1716,6 +1719,7 @@ def create_security_zone(
"label": name,
"vrf_name": name,
"vlan_id": vlan_id,
"vni_id": vni_id
}

sz_task = self.create_security_zone_from_json(
Expand All @@ -1732,7 +1736,7 @@ def create_security_zone(
# SZ leaf loopback pool
if leaf_loopback_ip_pools:
group_name = "leaf_loopback_ips"
group_path = requote_uri(f"sz:{sz.id} {group_name}")
group_path = requote_uri(f"sz:{sz.id},{group_name}")
self.apply_resource_groups(
bp_id=bp_id,
resource_type="ip",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def test_create_security_zone(
sz_id = "78eff7d7-e936-4e6e-a9f7-079b9aa45f98"
resource_type = "ip"
group_name = "leaf_loopback_ips"
group_path = requote_uri(f"sz:{sz_id} {group_name}")
group_path = requote_uri(f"sz:{sz_id},{group_name}")
pool_id = "leaf-loopback-pool-id"

aos_session.add_response(
Expand Down