-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Hello,
Thanks for your API.
I started to use it this week but I have a little issue.
In my application, I try to delete the connexion betwenn MAC adress and IP adress. To do so I get the DHCP config and remove the element of the satic map I want to.
self.get_config()
for i in range(0, len(self.config["dhcpd"]["lan"]["staticmap"])-1):
if self.config["dhcpd"]["lan"]["staticmap"][i]["mac"] == mac_to_delete:
self.config["dhcpd"]["lan"]["staticmap"].pop(i)
self.execute()
It works well but when I want to delete the last element of the static map it doesn't work and I don't have any error. How can I solve this problem ?
Thanks
Thibaut
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels