Skip to content

Commit 97e62a7

Browse files
fix: logical routers attachable to vsys objects #605
1 parent cecf2df commit 97e62a7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

panos/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3479,6 +3479,7 @@ def set_vsys(
34793479
"vlan": "vlans",
34803480
"virtual-wire": "virtual_wires",
34813481
"virtual-router": "virtual_routers",
3482+
"logical-router": "logical_routers",
34823483
"interface": "interface",
34833484
}
34843485
for key, param_name in import_to_vsys_param.items():

panos/device.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class Vsys(VersionedPanObject):
9999
vlans (list): A list of strings of VLANs
100100
virtual_wires (list): A list of strings of virtual wires
101101
virtual_routers (list): A list of strings of virtual routers
102+
logical_routers (list): (10.2+) A list of strings of logical routers
102103
visible_vsys (list): A list of strings of the vsys visible
103104
dns_proxy (str): DNS Proxy server
104105
decrypt_forwarding (bool): Allow forwarding of decrypted content
@@ -188,6 +189,10 @@ def _setup(self):
188189
path="import/network/virtual-router",
189190
)
190191
)
192+
params.append(VersionedParamPath("logical_routers", exclude=True))
193+
params[-1].add_profile(
194+
"10.2.0", path="import/network/logical-router", vartype="member"
195+
)
191196
params.append(
192197
VersionedParamPath(
193198
"visible_vsys", vartype="member", path="import/visible-vsys"

0 commit comments

Comments
 (0)