GithubHelp home page GithubHelp logo

Comments (3)

wolfspyre avatar wolfspyre commented on August 16, 2024

You made my day!

Thanks a bunch.

I wasn't sure about the 2317 formatting issues... it looked like exception handling was able to appease netaddr, or at least tell it

yes, yes, I know... thank you...

and continue with the migration once the uone -> zone alteration was made:
(sed to the 'rescue' ... well... admittedly sed's response was more akin to:

Are you kidding me? Really? You want me to do what?? sigh ... Okay fine...

)

root@pandora-01:/data/docker/overlay2# for file in `find . |grep 0018_zone_arpa_network.py`; do 
  sed -ie 's/uone.arpa_network/zone.arpa_network/' ${file};
  rm "${file}e";
done

Is there a formatting standard that netaddr DOES consider valid for subnet notation?

IF SO, aligning to that might be the least painful way forward... seeing as this is the formatting arbiter in netbox, it's likely to bite us in other ways elsewhere... but... ¯\_(ツ)_/¯

from netbox-dns.

peteeckel avatar peteeckel commented on August 16, 2024

Hi @wolfspyre, thanks for the feedback!

Regarding the netaddr stuff - just ignore it for the time being. The arpa_network field in the model is there for the purpose of matching reverse zones to IPAM prefixes, and it will gain some functionality with RFC 2317 later on.

The current logic is: If the domain name of an .arpa zone is a standard domain name for non-RFC 2317 delegation, derive the subnet from the name. If not, forget it. The main reason is that there is no standard for naming RFC 2317 zones (one of the aspects in which the RFC is rather sloppy), so there will not be a way to derive the subnet from the zone name. Essentially, you can name the zone whatever you want and just tell it explicitly which subnet it is for.

from netbox-dns.

wolfspyre avatar wolfspyre commented on August 16, 2024

sweet! well, cool! mischief managed.

from netbox-dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.