Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Kea Kea
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 556
    • Issues 556
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 66
    • Merge requests 66
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • KeaKea
  • Issues
  • #2028
Closed
Open
Issue created Aug 12, 2021 by Peter Davies@peterdDeveloper

remote-class4-set fails if it depends options that are created in the CB

remote-class4-set fails if it depends options that are created in the CB:

The following command fails if the option-data is defined in the CB. It succeeds if the option-data is defined in the configuration file

curl -kSs -H "Content-Type:application/json" -u 'admin:<pass>' https://10.0.0.1 -d '{"service":["dhcp4"],"command":"remote-class4-set","arguments":{"client-classes":[{ "name": "xxxx", "boot-file-name": "bootfile", "valid-lifetime": 180, "test": "substring(option[60].hex,0,11) == '\''xxxx'\''", "option-data": [ { "space": "XXXX", "name": "config-file-name", "code": 1, "data": "xyz", "always-send": true }, { "space": "dhcp4", "name": "tftp-server-name", "code": 66, "data": "10.0.0.1", "always-send": true } ] }],"remote":{"type":"mysql"},"server-tags":["all"]}}'
[
{
"result": 1,
"text": "option data is not a valid string of hexadecimal digits: xyz (<wire>:0:151)"
}
]

RT #18879

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking