Skip to content

Commit 424c74c

Browse files
fix: layer2 interface creation (#496)
1 parent 689d9c3 commit 424c74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

panos/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ def set_virtual_router(
426426
Zone: The zone for this interface after the operation completes
427427
428428
"""
429-
# Don't add HA or aggregate-group interfaces to virtual router.
430-
if getattr(self, "mode", "") in ("ha", "aggregate-group"):
429+
# Don't add HA, layer 2 or aggregate-group interfaces to virtual router.
430+
if getattr(self, "mode", "") in ("ha", "aggregate-group", "layer2"):
431431
return False
432432

433433
return self._set_reference(

0 commit comments

Comments
 (0)