Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

{
  # exists boolean expression
  # empty configs are not accepted by Kea
  "Dhcp4": {
    "valid-lifetime": 1800,
    "client-classes": [
      # use exists in a reductible match if
      {
        "name": "reductible",
        /// from: match if exists dhcp.host-name
        "test": "option[12].exists"
      }
    ]
//  # if test is a boolean too
//  "statement": {
//    "if": {
//      "condition": {
//        "exists": {
//          "universe": "dhcp",
//          "name": "host-name",
//          "code": 12
//        }
//      },
//      "then": [
//        {
//          /// Kea does not support yet log statements
//          /// Reference Kea #234
//          "log": {
//            "priority": "info",
//            "message": {
//              "concat": {
//                "left": "hostname:",
//                "right": {
//                  "option": {
//                    "universe": "dhcp",
//                    "name": "host-name",
//                    "code": 12
//                  }
//                }
//              }
//            }
//          }
//        }
//      ]
//    }
//  }
  }
}