[Kea-users] using flex_id for combined reservation identifiers

agiimaa.b agiimaa.b at unitel.mn
Thu Nov 21 02:26:17 UTC 2019


Hello,


I'm trying to identify and reserve a host by combination of "mac address AND circuit id" with no luck.

How should I express it? Any reply would be appreciated, Thank you


MAC address: e8:37:7a:00:00:00

Circuit ID: 4857544394969D21


...

  "reservations": [

     {
        "flex-id": "0x4857544394969D21 0xe8377a000000",
        "ip-address": "10.215.160.101"
    } ],
...

   "hooks-libraries": [
        {
            "library": "/usr/local/lib/hooks/libdhcp_flex_id.so",
            "parameters": {
                //"identifier-expression": "concat(relay4[1].hex, substring(pkt4.mac, ':'))",
                "identifier-expression": "concat(relay4[1].hex, hexstring(pkt4.mac, ':'))",
                "replace-client-id": "false"
            }
        }
    ],


The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information.

-------------------------------------------------------------------------------------------------------------------------------------

Энэхүү и-мэйл болон хавсралт дахь мэдээлэл нь тодорхой хүнд хаяглагдсан бөгөөд нууцлалтай мэдээлэл агуулж байж болзошгүй тул бусдад дамжуулах, олон нийтэд тараах, өөр бусад зорилгоор ашиглахыг хориглоно. Хэрэв та уг и-мэйлийг санамсаргүй байдлаар хүлээн авсан бол и-мэйл илгээгчид мэдэгдэж, хуулбар баримт үлдээлгүй устгана уу.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20191121/3a5069e0/attachment.htm>


More information about the Kea-users mailing list