4 Kea module utilizing hooks api to notify SDNC of macaddr, yiaddr, dhcp-msg-name via HTTP POST request.
6 # ONAP installation of vDHCP will install and configure on the vDHCP VM
8 # for local development/testing follow these steps.
12 # install kea on ubuntu
13 apt-get install kea-dhcp4-server
18 Install the compiled library from the ./build direction to /usr/local/lib/kea-sdnc-notify.so
20 Configure /etc/kea/kea-sdnc-notify.conf using the ./etc example
22 Configure /etc/kea/kea-dhcp4.conf usign the ./etc example
24 The hook will POST json from the the variables from the DHCP Acknowledgement message to the SDNC "url" in the form of "url+macaddr"
25 "url": "http://localhost/sdnc.php?macaddr="
27 Example: http://localhost/sdnc.php?macaddr=aa:bb:cc:dd:ee:ff
29 In the ONAP installation instead of localhost it will be to either a DMaaP Topic or to SDNC directly.
35 ./kea-dhcp4-server start or
36 ./kea-dhcp4-server restart
38 ./kea-dhcp4-server stop
41 /var/log/kea-dhcp4.log
44 This software has been developed on Ubuntu 16.04.
46 apt-get install g++ libcurl4-gnutls-dev libboost-dev kea-dev
50 ## Installation in ONAP
51 The vdhcp install scripts for ONAP will do the build on the vDHCP VM from these source files and copy the resulting library into /usr/local/lib and the configuration files into /etc/kea
55 #### USE THIS ON OPENSTACK UBUNTU 16.04 GUEST VM
59 ip link add veth0 type veth peer name veth1
61 ip link set veth0 up && ip link set veth1 up
63 ip address add dev veth0 10.3.0.1/24
67 dhclient -d -v veth1 -r (to release)