jay-g-mehta / pydhcpdparser

pydhcpdparser is a pure python based, DHCPD configuration parser. pydhcpdparser can be used to verify syntax of DHCPD configurations, parse and extract values from configuration files and access them as python variables.
GNU General Public License v3.0
9 stars 9 forks source link

How to check if subnet exists in DHCPD conf file! #11

Open sindhujit1 opened 1 year ago

sindhujit1 commented 1 year ago

I want to be able to check if a subnet is already defined in dhcpd.conf file. If not, then add the subnet block along with host declaration. Please let me know if that is possible.

Also is there any exception handling mechanisms built into this package ?!