Page MenuHomeVyOS Platform

dhcp: add vendor option support for Ubiquity Unifi controller
Closed, ResolvedPublicFEATURE REQUEST

Description

Certain Vendors use special DHCP options (so called vendor specific options).
We should add a CLI variant to pass the IP address of the Ubiquity Unify Controller to clients.

Usecase (actually ma home):
VyOS router with several UniFi APs. Initial provisioning requires a controller to be present. One can either adopt them via SSH or by a DHCP option.

See: https://community.ui.com/questions/DHCP-Options/ca4c4113-b93c-4507-acd2-68bac31c6258#answer/0f451832-b211-4652-a8ad-d124a22beae9

vyos@vyos# show service dhcp-server
 shared-network-name LAN {
     subnet 172.18.201.0/24 {
         default-router 172.18.201.1
         name-server 172.18.201.2
         range 0 {
             start 172.18.201.101
             stop 172.18.201.109
         }
         vendor-option {
             ubiquity {
                 unifi-controller 172.16.100.1
             }
         }
     }
 }

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)