diff options
author | Marco Platania <platania@research.att.com> | 2017-08-04 18:21:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-04 18:21:56 +0000 |
commit | a94e309943d51a2d56e9aa19a582ac9eb40966e6 (patch) | |
tree | 3304d9250e478670988a447e076367c590c9bf13 /vnfs/vCPE/kea-sdnc-notify-mod/etc | |
parent | 98e9a903f874816de88c99beef5871910e1a83f0 (diff) | |
parent | f08fe6bfad6f9d044512142f104609d5c092a4f1 (diff) |
Merge "Initial KEA DHCP Hook"
Diffstat (limited to 'vnfs/vCPE/kea-sdnc-notify-mod/etc')
-rw-r--r-- | vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-dhcp4.conf.example | 64 | ||||
-rw-r--r-- | vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-sdnc-notify.conf | 3 |
2 files changed, 67 insertions, 0 deletions
diff --git a/vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-dhcp4.conf.example b/vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-dhcp4.conf.example new file mode 100644 index 00000000..b3149af1 --- /dev/null +++ b/vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-dhcp4.conf.example @@ -0,0 +1,64 @@ +{ +"Dhcp4": + { +# For testing, you can use veth pair as described in README.md + "interfaces-config": { + "interfaces": ["veth0" ] + }, + +# How to load the hook library. + "hooks-libraries": [ + {"library": "/usr/local/lib/kea-sdnc-notify.so"} + ], + + "lease-database": { + "type": "memfile" + }, + + "expired-leases-processing": { + "reclaim-timer-wait-time": 10, + "flush-reclaimed-timer-wait-time": 25, + "hold-reclaimed-time": 3600, + "max-reclaim-leases": 100, + "max-reclaim-time": 250, + "unwarned-reclaim-cycles": 5 + }, + + "valid-lifetime": 300, + +# Ensure you set some sensible defaults for the siaddr and option-data, +# otherwise the options won't be added at all. +# Also keep in mind that if kea doesn't receive the desired values for some +# reason, these values will be sent to the client. + "subnet4": [ + { "subnet": "10.3.0.0/24", + "pools" : [ { "pool": "10.3.0.2 - 10.3.0.255"} ], + "next-server": "10.3.0.1", + "option-data": [ + {"name": "tftp-server-name", + "data": "10.4.0.1"}, + {"name": "boot-file-name", + "data": "/dev/null"} + ] + } + ] + +}, + +"Logging": +{ + "loggers": [ + { + "name": "kea-dhcp4", + "output_options": [ + { + "output": "/var/log/kea-dhcp4.log" + } + ], + "severity": "DEBUG", + "debuglevel": 0 + }, + ] +} + +} diff --git a/vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-sdnc-notify.conf b/vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-sdnc-notify.conf new file mode 100644 index 00000000..1a8ee2e3 --- /dev/null +++ b/vnfs/vCPE/kea-sdnc-notify-mod/etc/kea-sdnc-notify.conf @@ -0,0 +1,3 @@ +{"url": "http://localhost/sdnc.php?macaddr=", + "siaddr": "siaddr" +} |