projects
/
invirt/packages/invirt-dhcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pydhcplib is not terribly pythonic
[invirt/packages/invirt-dhcp.git]
/
invirt-dhcpserver
diff --git
a/invirt-dhcpserver
b/invirt-dhcpserver
index
1f57a8d
..
e7f37e8
100755
(executable)
--- a/
invirt-dhcpserver
+++ b/
invirt-dhcpserver
@@
-262,7
+262,7
@@
if '__main__' == __name__:
print "invirt-dhcpserver: cannot determine local IP address by looking up %s" % socket.gethostname()
sys.exit(1)
print "invirt-dhcpserver: cannot determine local IP address by looking up %s" % socket.gethostname()
sys.exit(1)
- dhcp_options['server_identifier'] = ipv4(myip)
+ dhcp_options['server_identifier'] = ipv4(myip).int()
backend = DhcpBackend()
server = DhcpServer(backend, options)
backend = DhcpBackend()
server = DhcpServer(backend, options)