pan-os-python icon indicating copy to clipboard operation
pan-os-python copied to clipboard

network module docs for network.Dhcp doesn't contain info about defining/reading DHCP leases

Open gojun077 opened this issue 2 years ago • 1 comments

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 the Layer3Subinterface names but nothing else:

dhcp_list = network.Dhcp().refreshall(fw)
for d in dhcp_list:
    print(d.about())

Which returns the following

{'name': 'ae1.10'}
{'name': 'ae1.20'}
{'name': 'ae1.60'}
{'name': 'ae1.100'}
{'name': 'ae1.102'}

So only name parameter is implemented so far for network.Dhcp?

Suggested fix

gojun077 avatar Feb 07 '23 10:02 gojun077

:tada: Thanks for opening your first issue here! Welcome to the community!