Improvement in hook scripts (feature request) to add routes
Hi friends,
I'm trying to create a script to add routes when IPv6 addresses and prefixes are allocated, but the "committed" hook is not displaying the address, prefix, and type.(iana or iapd)
If possible, please include the address, prefix, and type in the "committed" hook.
Thank you very much!
my debug:
2023-06-11T10:05:08.100984-03:00 router kea-dhcp6[6794]: QUERY6_TYPE: REQUEST
2023-06-11T10:05:08.101714-03:00 router kea-dhcp6[6794]: QUERY6_REMOTE_ADDR: fe80::d080:d807:a57f:d2cf
2023-06-11T10:05:08.102103-03:00 router kea-dhcp6[6794]: QUERY6_IFACE_NAME: enp1s0
2023-06-11T10:05:08.102418-03:00 router kea-dhcp6[6794]: LEASE6_TYPE:
2023-06-11T10:05:08.102719-03:00 router kea-dhcp6[6794]: LEASE6_ADDRESS:
2023-06-11T10:05:08.103161-03:00 router kea-dhcp6[6794]: LEASE6_PREFIX_LEN:
2023-06-11T10:05:08.103495-03:00 router kea-dhcp6[6794]: LEASE6_AT0_ADDRESS:
2023-06-11T10:05:08.103794-03:00 router kea-dhcp6[6794]: LEASES6_AT0_STATE: default
2023-06-11T10:05:08.104093-03:00 router kea-dhcp6[6794]: LEASES6_AT0_SUBNET_ID: 1
2023-06-11T10:05:08.104394-03:00 router kea-dhcp6[6794]: LEASE6_AT0_PREFIX_LEN:
2023-06-11T10:05:08.104689-03:00 router kea-dhcp6[6794]: LEASE6_AT0_TYPE:
2023-06-11T10:05:08.104981-03:00 router kea-dhcp6[6794]: LEASE6_AT1_ADDRESS:
2023-06-11T10:05:08.105282-03:00 router kea-dhcp6[6794]: LEASES6_AT1_STATE: default
2023-06-11T10:05:08.105757-03:00 router kea-dhcp6[6794]: LEASES6_AT1_SUBNET_ID: 1
2023-06-11T10:05:08.106111-03:00 router kea-dhcp6[6794]: LEASE6_AT1_PREFIX_LEN:
2023-06-11T10:05:08.106418-03:00 router kea-dhcp6[6794]: LEASE6_AT1_TYPE:
2023-06-11T10:05:08.106719-03:00 router kea-dhcp6[6794]: LEASE6_AT2_ADDRESS:
2023-06-11T10:05:08.107018-03:00 router kea-dhcp6[6794]: LEASES6_AT2_STATE: default
2023-06-11T10:05:08.107315-03:00 router kea-dhcp6[6794]: LEASES6_AT2_SUBNET_ID: 1
2023-06-11T10:05:08.107615-03:00 router kea-dhcp6[6794]: LEASE6_AT2_PREFIX_LEN:
2023-06-11T10:05:08.107913-03:00 router kea-dhcp6[6794]: LEASE6_AT2_TYPE:
2023-06-11T10:05:08.108264-03:00 router kea-dhcp6[6794]: LEASE6_AT3_ADDRESS:
2023-06-11T10:05:08.108577-03:00 router kea-dhcp6[6794]: LEASES6_AT3_STATE: default
2023-06-11T10:05:08.108874-03:00 router kea-dhcp6[6794]: LEASES6_AT3_SUBNET_ID: 1
2023-06-11T10:05:08.109173-03:00 router kea-dhcp6[6794]: LEASE6_AT3_PREFIX_LEN:
2023-06-11T10:05:08.109544-03:00 router kea-dhcp6[6794]: LEASE6_AT3_TYPE:
Edited by Tomek Mrugalski