Coder Social home page Coder Social logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
As dhcp option 3 (router) is a list of ip addresses, 
databases.generic.Definition should store an Array of IPv4 entries in the 
gateway attribute .
Changing Line 95 of generic.py to
self.gateway = gateway and [IPv4(gateway)]
seems to do the trick.

Cheers,
Fabian

Original comment by [email protected] on 29 Jun 2014 at 9:30

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
You're quite right. For some reason, I thought option 3 was just one IPv4 
address.

I'll verify that this is consistent throughout the code, then apply the change.

Original comment by red.hamsterx on 5 Jul 2014 at 4:27

  • Changed state: Accepted

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Addressed and should be consistent everywhere.

'gateway' input is now conditionally treated as a list of addresses, whether 
it's an actual sequence object or a comma-delimited string. This should be 
fully backwards-compatible with existing database setups, but I did change the 
'Definition' to call its input-field 'gateways', rather than 'gateway', so any 
kwarg-style passing, which httpdb does, will need to be updated to match.

Thanks again for your help in finding these issues!

Original comment by red.hamsterx on 5 Jul 2014 at 5:07

  • Changed state: Fixed

from staticdhcpd.

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.