Closed kanagasivan closed 2 years ago
:tada: Thanks for opening your first issue here! Welcome to the community!
from panos.firewall import Firewall
from panos.network import EthernetInterface, Layer2Subinterface
fw = Firewall(..........)
eth = EthernetInterface('ethernet1/1', mode='virtual-wire')
fw.add(eth)
l2 = Layer2Subinterface('ethernet1/1.2', 2)
eth.add(l2)
l2.create()
Thanks for the update. But the interface type should be "virtual-wire" when i executed this script interface type is changed to "Layer2" Interface.
https://pan-os-python.readthedocs.io/en/latest/_modules/panos/network.html#AbstractSubinterface
Team kindly suggest how to add virtual wire subinterface in palo alto firewall.