Do not add layer2 interfaces to a virtual router #461
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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