The PAN-OS SDK for Python is a package to help interact with Palo Alto Networks devices (including physical and virtualized Next-generation Firewalls and Panorama). The pan-os-python SDK is object oriented and mimics the traditional interaction with the device via the GUI or CLI/API.
Prevent layer2 interfaces being added to virtual routers
Motivation and Context
The origin of this PR stems downstream from pan-os-ansible, where adding a aggregate interface with mode set to layer2 results in an error. This error seems to be due to the network module trying to add the layer2 interface to a virtual-router.
Description
Prevent
layer2
interfaces being added to virtual routersMotivation and Context
The origin of this PR stems downstream from
pan-os-ansible
, where adding a aggregate interface with mode set tolayer2
results in an error. This error seems to be due to the network module trying to add thelayer2
interface to a virtual-router.code example
As
layer2
interfaces do not have any routable properties, and cannot be added to a virtual-router in the PAN-OS interface, they should be excluded.downstream error message
How Has This Been Tested?
I have tested and can confirm that
layer2
andlayer3
aggregate interfaces are now correctly deployed. This has been tested against PAN-OS 10.1.6Types of changes
Checklist