Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-29 Thread Gokulakrishnan Gopalakrishnan
Francis, Currently, I'm hardcoding 'next-server' in kea.conf. Is it possible to do it via hook code? On Fri, May 25, 2018 at 4:23 PM, Gokulakrishnan Gopalakrishnan < ggopalakrish...@salesforce.com> wrote: > Thanks, Francis. If I want to get rid of hardcoding 'next-server' from &

Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-25 Thread Gokulakrishnan Gopalakrishnan
Thanks, Francis. If I want to get rid of hardcoding 'next-server' from kea.conf and move it to the hooks library by setting the field dynamically, what it the right way? On Fri, May 25, 2018 at 4:00 PM, Francis Dupont <fdup...@isc.org> wrote: > Gokulakrishnan Gopalakrishnan writes

[Kea-users] next-server-address in hooks for UEFI config servers

2018-05-24 Thread Gokulakrishnan Gopalakrishnan
Hi, I'm trying to assign IPs to my servers using Kea 1.3.0. Some of my servers are UEFI configured ones and those are failing in getting IP. When I dig deep, I found out that setting "next-server": "192.168.1.1" manually in kea.conf works fine. I was setting next-server via hooks code (pasted

Re: [Kea-users] DHCP Offer Decline to UEFI Configured host

2018-04-16 Thread Gokulakrishnan Gopalakrishnan
fixed the issue for us. We then wrote a hook that can enforce unicast replies on certain subnets. Br, Thomas *From: *Kea-users <kea-users-boun...@lists.isc.org> on behalf of Gokulakrishnan Gopalakrishnan <ggopalakrish...@salesforce.com> *Date: *Monday, 16 April 2018 at 10.5

[Kea-users] DHCP Offer Decline to UEFI Configured host

2018-04-16 Thread Gokulakrishnan Gopalakrishnan
Currently, we are using Kea to assign IPs to my server and it works well. Now, we have configured UEFI on DELL Server and after that config, DHCP Offer is getting declined by the server. When I queried online, there was a change mentioned to change the boot filename and even that didn't help us in

[Kea-users] Assigning IP to Cisco Switch

2017-09-08 Thread Gokulakrishnan Gopalakrishnan
Hi I'm migrating from dhcpd to Kea in assigning IP to Nexus 3K Cisco Switches. I was able to assign IP using dhcpd but I'm facing issues with Kea. I've given below the

Re: [Kea-users] Unit test Linkage issue to dhcpsrv

2017-09-08 Thread Gokulakrishnan Gopalakrishnan
Any clue here? I'm adding <# include "load_unload.cc"> in my unit test and wondering how to fix this linkage issue. is there any other libs, I need to add in the list On Thu, Sep 7, 2017 at 10:55 PM, Gokulakrishnan Gopalakrishnan < ggopalakrish...@salesforce.com> wrote: &

[Kea-users] Unit test Linkage issue to dhcpsrv

2017-09-07 Thread Gokulakrishnan Gopalakrishnan
My user_chk hook unit test is failing with this following linkage issue: CXXLDlibdhcp_user_chk_unittests libdhcp_user_chk_unittests-user_unittests.o: In function `getHostNameIPAddress':

[Kea-users] Boost conflict while building Kea

2017-09-01 Thread Gokulakrishnan Gopalakrishnan
I'm using boost1_48 to build kea. In my Centos6 box, I've installed boost 1_48. Here is my configure command. ./configure --with-boost-include=/usr/include/boost148 --with-boost-lib-dir=/usr/lib64/boost148 I'm seeing this below-mentioned error while doing 'make'. There is already boost1_41

[Kea-users] Building Kea with C++11 compiler in Centos6

2017-08-31 Thread Gokulakrishnan Gopalakrishnan
I'm building Kea in Centos6 box, where C++11 compiler doesn't come as default with OS. So, I installed devtoolset as mentioned in https://hiltmon.com/blog/2015/08/09/c-plus-plus-11-on-centos-6-dot-6/ As per the blog, after installing devtoolset we have to enable C++11 compiler by using scl enable

Re: [Kea-users] Setting interface name while running

2017-08-24 Thread Gokulakrishnan Gopalakrishnan
et the interface name which you're planning to use. > > Marcin Siodelski > ISC > > On 24.08.2017 15:59, Gokulakrishnan Gopalakrishnan wrote: > > I have a use case like this. The interface name in which Kea needs to > > listen (eg: eth0) is not known before hand. I can deter

[Kea-users] Setting interface name while running

2017-08-24 Thread Gokulakrishnan Gopalakrishnan
I have a use case like this. The interface name in which Kea needs to listen (eg: eth0) is not known before hand. I can determine only after starting Kea Process. Is there any way to set the interface name during < int load(LibraryHandle&)> hook? Thanks Gokul

Re: [Kea-users] Getting the interface name in hooks

2017-08-24 Thread Gokulakrishnan Gopalakrishnan
()->getCfgIface(); > > because "staging" configuration should already contain the information > about interfaces (the interfaces parser is launched before the hooks > libs parser). > > Give it a try. > > Marcin > > On 23.08.2017 19:57, Gokulakrishnan Gopalakrishnan w

Re: [Kea-users] Getting the interface name in hooks

2017-08-23 Thread Gokulakrishnan Gopalakrishnan
t somehow? On Wed, Aug 23, 2017 at 8:02 PM, Gokulakrishnan Gopalakrishnan < ggopalakrish...@salesforce.com> wrote: > Thanks Marcin. It worked > > On Wed, Aug 23, 2017 at 4:28 PM, Marcin Siodelski <mar...@isc.org> wrote: > >> You'd rather need to link with

Re: [Kea-users] Getting the interface name in hooks

2017-08-23 Thread Gokulakrishnan Gopalakrishnan
Wed, Aug 23, 2017 at 3:09 PM, Marcin Siodelski <mar...@isc.org> wrote: > On 23.08.2017 11:24, Gokulakrishnan Gopalakrishnan wrote: > > "interfaces-config": { > > > > "interfaces": [ "eth0" ] > > > > } > > > &g

[Kea-users] Getting the interface name in hooks

2017-08-23 Thread Gokulakrishnan Gopalakrishnan
"interfaces-config": { "interfaces": [ "eth0" ] } Can we get the list of interface name in hooks code? In the example mentioned above, can we get the value "eth0" in hooks code in function? ___ Kea-users mailing list Kea-users@lists.isc.org

[Kea-users] Changing the order of DHCP Options in DHCP Offer Packet

2017-07-20 Thread Gokulakrishnan Gopalakrishnan
I'm intercepting the DHCP Offer packet and reading the DHCP options present in it. The options are present in the ascending order of its number. I want to change the order in which the options are packed in the DHCP Offer. Can someone help it? Thanks, Gokul

[Kea-users] Assigning IP to TOR Switch

2017-07-11 Thread Gokulakrishnan Gopalakrishnan
I'm trying to assign IP for a Cisco TOR Switch Nexus 3K via Kea. I'm supplying option-parameters like TFTP Server, Routers, boot file name, etc as specified here

[Kea-users] Specifying common boot-file-name

2017-07-06 Thread Gokulakrishnan Gopalakrishnan
My 'boot-file-name' is same for all the machines. Currently, I'm specifying one for each subnet pool via option-data like subnet4: [ { "pools": [{...}], "subnet" : ..., "option-data": [ {"name":"boot-file-name", "data":"abc.0" } ] }, { "pools": [{...}], "subnet" : ..., "option-data": [

Re: [Kea-users] Parsing Option 82

2017-07-05 Thread Gokulakrishnan Gopalakrishnan
sc.org] *On Behalf Of *Itay > Rozenberg > *Sent:* Tuesday, July 4, 2017 5:23 PM > *To:* 'Gokulakrishnan Gopalakrishnan' > *Cc:* 'kea-users@lists.isc.org' > *Subject:* Re: [Kea-users] Parsing Option 82 > > > > > > Greetings > > > > > > Type 001 – circu

[Kea-users] Parsing Option 82

2017-07-04 Thread Gokulakrishnan Gopalakrishnan
I'm trying to print and parse Option 82 but I couldn't understand the format in which it is received. My 'option->toText()' print this type=082, len=024:, options: type=001, len=014: 01:0c:45:74:68:65:72:6e:65:74:31:2f:32:39 type=002, len=006: 04:62:73:56:13:bc Can someone help me to

[Kea-users] Hook library .so file location after install

2017-06-27 Thread Gokulakrishnan Gopalakrishnan
I'm trying to install kea to a custom dir via ./configure --prefix=/opt/kea After doing make and make install, I'm not seeing libdhcp_user_chk.so (hook library) at /opt/kea/lib. I noticed libkea-hooks.so is present at /opt/kea/lib. is this equivalent of the user_chk lib? If not, what is the way

Re: [Kea-users] Custom Subnet in Hooks

2017-06-21 Thread Gokulakrishnan Gopalakrishnan
Thanks Francis On Wed, Jun 21, 2017 at 2:20 PM, Francis Dupont <fdup...@isc.org> wrote: > Gokulakrishnan Gopalakrishnan writes: > > I'm exploring Kea hooks for assigning Subnets. In subnet4_select(...) we > > can select a subnet among the existing list of subnets. I'm just c

[Kea-users] Custom Subnet in Hooks

2017-06-20 Thread Gokulakrishnan Gopalakrishnan
I'm exploring Kea hooks for assigning Subnets. In subnet4_select(...) we can select a subnet among the existing list of subnets. I'm just curious whether we can select a custom subnet which is not defined at Kea.conf file? Eg: Kea.conf has 2 subnets defined - 192.168.1.0/24, 192.168.2.0/24 In

Re: [Kea-users] Help - Making HTTPS Call from Kea Hook Library

2017-06-19 Thread Gokulakrishnan Gopalakrishnan
. On Thu, Jun 15, 2017 at 11:27 PM, Francis Dupont <fdup...@isc.org> wrote: > Gokulakrishnan Gopalakrishnan writes: > > ... > > for making HTTPS Call using boost. While starting the server, I'm getting > > error loading user_chk lib (*undefined Symbol: SSL_library_unit*). &g

[Kea-users] Help - Making HTTPS Call from Kea Hook Library

2017-06-15 Thread Gokulakrishnan Gopalakrishnan
Hi, I'm exploring Kea 1.2.0 and its example Hook Library user_chk. I've built Kea with Boost 1.48, OpenSSL 1.0.1. My requirement is to make a HTTPS GET Call from the user_chk library. I'm using this example for