1. Ubuntu 16.04
  2. apt-get install  kea-dhcp4-server
  3. install library  : kea-sdnc-notify.so  (/usr/local/lib)
    1. this library is built from source (hacked up copy of kea-pxe-replace4-mod)
    2. creates the hook which listens on pkt4_send
    3. sends an HTTP POST via libcurl if message is DHCPACK (that is response to client after Discover/Offer/Request)
    4. POST has macaddr, msg_name,  yiaddr (yiaddr is the one we want in SDNC)
    5. No response required since we are not re-writing the packet

 

  1. install conf files:
    1. /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

    1. /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

  1. Start kea-dhcp4-server
  2. Logs in /var/log/kea-dhcp4.log

mso.config.20180810.tar



            "vnf-id": "12312f32-cdcb-47cc-a6e5-822b849cc58e",

            "vnf-name": "zRegionOne05",

            "vnf-type": "vcpesvc_rescust_0529a/vcpevsp_vgw_0412 0",

            "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",


service-VcpesvcInfra0529a-csar.csar


service-VcpesvcInfra0412a-csar.csar


  • No labels