Hi

Im trying to read user-context with a hook

lease4_select(CalloutHandle& handle) {
     Subnet4Ptr subnet4_ptr;
     handle.getArgument("subnet4", subnet4_ptr); // <-- getting selected
subnet
     ConstElementPtr subnet_ctx;
     subnet_ctx = subnet4_ptr->getContext(); // <-- this is working !

    Pool4Ptr pool_ptr;
    handle.getArgument("pool", pool_ptr);  // <-- getting selected pool ??
    ConstElementPtr pool4_ctx;
    pool4_ctx = pool4_ptr->getContext(); // <-- this NOT working

}
 can some one advise how to read user-context at the pool level ?

thank you
_______________________________________________
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to