fuel-web/dhcp-checker
Dima 9bd1db420e Refactor dhcp checker to use pcap
Scapy packet filtering is slow and blocking.
Pcap filtering can be used in same thread,
this allows us to use higher timeout for dhcp offer waiting

Setup proper logger for dhcp_checker app.
ERROR level logs will be redirected to stderr
DEBUG level to /var/log/dhcp_checker.log

Change-Id: I7d9a0f1b8e3082637bc2474302fc0f7c17e0adb8
Closes-Bug: #1247284
2014-02-19 09:59:45 +00:00
..
dhcp_checker Refactor dhcp checker to use pcap 2014-02-19 09:59:45 +00:00
test_env Greatly improved code in dhcp checker. Fixed bug with dhcp behaviour on network down 2013-09-30 16:49:36 +03:00
MANIFEST.in Exclude tests from build script 2013-10-25 13:57:55 +03:00
README.md Split repos 2013-09-23 15:59:40 +04:00
Vagrantfile Refactor dhcp checker to use pcap 2014-02-19 09:59:45 +00:00
setup.py Exclude tests from build script 2013-10-25 13:57:55 +03:00
tox.ini Split repos 2013-09-23 15:59:40 +04:00

README.md

FIND DHCP SERVER IN NETWORK

=Install vagrant= wget http://files.vagrantup.com/packages/7ec0ee1d00a916f80b109a298bab08e391945243/vagrant_1.2.7_x86_64.deb

dpkg -i vagrant_1.2.7_x86_64.deb

=Get code= git clone git@github.com:dshulyak/test_roque_dhcp.git cd test_roque_dhcp & vagrant up

=Use cli= DEFAULT TIMEOUT 5 sec dhcpcheck discover --ifaces eth0 eth1 eth2 dhcpcheck discover --ifaces eth0 --timeout=10

=Usefull stuff= Also you could make dhcpchecks from your host dhcpcheck discover --ifaces vboxnet4

I sugest to look at trafic with wireshark or tcpdump writing to .pcap file