mpenning / ciscoconfparse

Parse, Audit, Query, Build, and Modify Arista / Cisco / Juniper / Palo Alto / F5 configurations.
http://www.pennington.net/py/ciscoconfparse/
GNU General Public License v3.0
793 stars 220 forks source link

Deprecation warnings: dns_lookup() #213

Closed mpenning closed 2 years ago

mpenning commented 2 years ago

During unit tests on version 1.6.6, we get deprecation warnings...

test_Ccp_Util.py::test_dns_lookup
test_Ccp_Util.py::test_dns_lookup
  ../ciscoconfparse/ccp_util.py:1718: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead
    records = resolver.query(input_str, "A")

test_Ccp_Util.py::test_reverse_dns_lookup
  ../ciscoconfparse/ccp_util.py:1771: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead
    records = resolver.query(inaddr, "PTR")
github-actions[bot] commented 2 years ago

This issue has automatically been marked stale due to inactivity. The issue will close unless further activity occurs. Please understand that the CiscoConfParse team is not obligated to comment on every issue. For more detailed information, please refer to our CONTRIBUTING guidance -> https://github.com/mpenning/ciscoconfparse/blob/main/.github/CONTRIBUTING.md

github-actions[bot] commented 2 years ago

Due to inactivity, CiscoConfParse's maintainers are closing this issue. Please refrain from further comments. In the future, CiscoConfParse's maintainers may reopen it solely at their own discretion. For more detailed information, please refer to our CONTRIBUTING guidance -> https://github.com/mpenning/ciscoconfparse/blob/main/.github/CONTRIBUTING.md