Coder Social home page Coder Social logo

Default-Gateway Option about staticdhcpd HOT 9 CLOSED

flan avatar flan commented on August 26, 2024
Default-Gateway Option

from staticdhcpd.

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Hi, Alexsandr.

This is actually intentional, as part of the resolution for issue #26.

I can still revert the token to 'gateway' to maintain compatibility, but I 
wanted to communicate that it is actually possible to supply multiple default 
gateways as part of option 3 (router).

I'll re-read the code and decide whether to stick with 'gateways' or 'gateway' 
in a few hours.

-Neil

Original comment by red.hamsterx on 7 Jul 2014 at 1:53

  • Changed state: Accepted

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Oh, wait. I see the actual problem you're having now.

It's actually splitting the IP address into four addresses. That's not good and 
I'll get that fixed as soon as possible.

Original comment by red.hamsterx on 7 Jul 2014 at 3:49

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Thanks

Original comment by [email protected] on 7 Jul 2014 at 3:53

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
r736 should correct this problem. For some strange reason, I hadn't considered 
the possibility that a Definition might be initialised with IPv4 objects as 
input.


After discussing the "gateway" -> "gateways" change from issue #26 with others, 
that will stay (so please update your httpdb.py file to include the 's'). 
Please let me know if you come across any places in the code where it was not 
changed, however.

-Neil

Original comment by red.hamsterx on 7 Jul 2014 at 4:34

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Sorry that write her. 

Update to latest svn ( svn checkout 
http://staticdhcpd.googlecode.com/svn/branches/2.0.0 staticdhcpd-read-only ), 
and get error on startup:
Traceback (most recent call last):
  File "./staticDHCPd", line 60, in <module>
    import staticdhcpdlib.config
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/config.py", line 374, in <module>
    conf.extensions = _Namespace()
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/config.py", line 315, in __init__
    self.__final = final
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/config.py", line 328, in __setattr__
    raise AttributeError("Namespace does not support direct assignment")
AttributeError: Namespace does not support direct assignment

Change in 
/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/config.py 
string 308 
from:
    __final = False #: If True, then no new layers will be created
to:
    __final = True #: If True, then no new layers will be created

server starting but error then process request get new error:

2014-07-07 21:53:59,029 : DEBUG : dhcp:178[Thread-8] : REQUEST:RENEW request 
from 00:0b:82:4e:16:0d processed in 0.0124 seconds
2014-07-07 21:53:59,031 : DEBUG : extension.httpdb:73[Thread-9] : MAC response 
received from 'http://exemple.serer/api/g-voip/dhcp/get/' for 
'00:0b:82:4e:16:0d'
2014-07-07 21:53:59,031 : ERROR : extension.httpdb:116[Thread-9] : Failed to 
lookup '00:0b:82:4e:16:0d' on 'http://exemple.serer/api/g-voip/dhcp/get/': 
'Definition' object has no attribute '_parse_address'
2014-07-07 21:53:59,031 : CRITICAL : dhcp:164[Thread-9] : Unable to handle 
REQUEST:RENEW from  00:0b:82:4e:16:0d:
Traceback (most recent call last):
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/dhcp.py", line 388, in wrappedHandler
    f(self, wrapper)
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/dhcp.py", line 576, in _handleDHCPRequest
    self._handleDHCPRequest_RENEW_REBIND(wrapper)
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/dhcp.py", line 666, in _handleDHCPRequest_RENEW_REBIND
    definition = wrapper.retrieveDefinition()
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/dhcp.py", line 369, in retrieveDefinition
    self._definition = self._server.getDatabase().lookupMAC(self.mac) or config.handleUnknownMAC(
  File "/etc/staticDHCPd/1/httpdb.py", line 129, in lookupMAC
    return self._lookupMAC(mac)
  File "/etc/staticDHCPd/1/httpdb.py", line 104, in _lookupMAC
    extra=result.get('extra'),
  File "/usr/local/src/staticdhcpd-read-only/staticDHCPd/staticdhcpdlib/databases/generic.py", line 95, in __init__
    self.ip = self._parse_address(ip)
AttributeError: 'Definition' object has no attribute '_parse_address'




Original comment by [email protected] on 7 Jul 2014 at 6:55

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
The first one is because that feature was meant to be tested by someone else, 
as part of issue #22. I thought I had left it disabled for now; this has been 
fixed in r738.

The second is a lesson in why writing code on a phone is a bad idea: the 
indentation levels were wrong and the display was too small for me to notice. 
This is fixed in r739.

Original comment by red.hamsterx on 7 Jul 2014 at 8:23

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Big thanks again  

Original comment by [email protected] on 7 Jul 2014 at 8:41

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
No, thank you for reporting these problems. :)

I should be done with documentation work for now, so I'll get a testing 
environment online shortly and try to make sure everything is stable for 2.0.0.

Original comment by red.hamsterx on 7 Jul 2014 at 10:00

from staticdhcpd.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024

Original comment by red.hamsterx on 7 Jul 2014 at 10:00

  • 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.