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.
In the Palo Alto Firewall Web UI, if you go into the Network -> DHCP tab, you can see a list of interfaces along with IP ranges and Reserved addresses. However in the documentation, there is a single parameter, name.
Is the documentation correct? Is there currently no way to get information on DHCP leases using panos? I created a firewall instance and retrieved info on dhcp, which correctly shows the Layer3Subinterface names but nothing else:
dhcp_list = network.Dhcp().refreshall(fw)
for d in dhcp_list:
print(d.about())
Documentation link
https://pan-os-python.readthedocs.io/en/latest/module-network.html#panos.network.Dhcp
Describe the problem
In the Palo Alto Firewall Web UI, if you go into the Network -> DHCP tab, you can see a list of interfaces along with IP ranges and Reserved addresses. However in the documentation, there is a single parameter,
name
.Is the documentation correct? Is there currently no way to get information on DHCP leases using
panos
? I created a firewall instance and retrieved info on dhcp, which correctly shows theLayer3Subinterface
names but nothing else:Which returns the following
So only
name
parameter is implemented so far fornetwork.Dhcp
?Suggested fix