- Ubuntu 16.04
- apt-get install kea-dhcp4-server
- install library : kea-sdnc-notify.so (/usr/local/lib)
- this library is built from source (hacked up copy of kea-pxe-replace4-mod)
- creates the hook which listens on pkt4_send
- sends an HTTP POST via libcurl if message is DHCPACK (that is response to client after Discover/Offer/Request)
- POST has macaddr, msg_name, yiaddr (yiaddr is the one we want in SDNC)
- No response required since we are not re-writing the packet
- install conf files:
- /etc/kea/kea-dhcp4.conf
i. This file sets ups the giaddr and ip blocks to be served
ii. In the demo its 192.0.2.0/24
- /etc/kea/kea-sdnc-notify.conf
i. This file sets the desintation url
ii. For testing “http://localhost/sdnc.php?macaddr=”
iii. For ONAP it would be a DMaaP TOPIC
- Start kea-dhcp4-server
- Logs in /var/log/kea-dhcp4.log
View file | ||||
---|---|---|---|---|
|
...