Re: [anemon-devs] Anemon revision 137

[ Thread Index | Date Index | More anemon.org/devs Archives ]


You probably have found a bug in the cmp function I never seen because all my "subnet" fields in my database are defined. Setup all your subnet fields will probably "solved" the problem (with a network value like 192.168.0.0/24).

If the problem is not solved, sending me a dump of your db will help.

Dustin Wish with INDCo Networks wrote:
Humm.

I can't get anemon to work still. Getting this:


ERROR:root:Main exception. Anemon server stopped.
Traceback (most recent call last):
  File "/usr/sbin/anemon-d", line 87, in ?
    try : import main
  File "/usr/lib/python2.3/site-packages/anemon/server/main.py", line 41, in
?
    server.GetNextDhcpPacket()
  File "/usr/lib/python2.3/site-packages/anemon/common/dhcp_network.py",
line 53, in GetNextDhcpPacket
    self.HandleDhcpDiscover(packet)
  File "/usr/lib/python2.3/site-packages/anemon/server/dhcp_server.py", line
58, in HandleDhcpDiscover
    if self.reservation.Query(offer) : self.SendPacket(offer)
  File "/usr/lib/python2.3/site-packages/anemon/server/dhcp_backend.py",
line 32, in Query
    ip = self.database.GetFreeIp(packet)
  File "/usr/lib/python2.3/site-packages/anemon/server/dhcp_core.py", line
65, in GetFreeIp
    if (not giaddr) or giaddr=="0.0.0.0": giaddr = self.default_giaddr
  File "/usr/lib/python2.3/site-packages/anemon/common/type_ipv4.py", line
108, in __cmp__
    return cmp(self._ip_long, other._ip_long);
AttributeError: 'str' object has no attribute '_ip_long'



--
Mathieu Ignacio,
* mignacio@xxxxxxxxx
* tamtam@xxxxxxxxxx
* http://anemon.org/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/