mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-08 17:05:49 +00:00
Compare commits
2 Commits
release/v4
...
airgapped
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66f500635d | ||
|
|
a4671388a2 |
@@ -273,6 +273,22 @@ function interval_handler() {
|
|||||||
if (!time_is_valid())
|
if (!time_is_valid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
discovery_method = DISCOVER_DHCP;
|
||||||
|
if (discover_dhcp())
|
||||||
|
return;
|
||||||
|
|
||||||
|
// I believe that right here is where we need to check if we need to use
|
||||||
|
// air gapped. I think it will be something like this:
|
||||||
|
|
||||||
|
// for example, assume that the dhcp lease discovered rxg.com as the cloud server
|
||||||
|
// from dns option 224.
|
||||||
|
|
||||||
|
// here we would do a txt dns lookup on est.rxg.com, and if we get a response from that,
|
||||||
|
// eg rxg.com, then we know that we need to set EST_SERVER=rxg.com
|
||||||
|
// and then we need to also set CERT_PREFIX=rxg.com.
|
||||||
|
|
||||||
|
// I think from there the est_client will do the expected things based on those env vars.
|
||||||
|
|
||||||
if (system('/usr/bin/est_client enroll'))
|
if (system('/usr/bin/est_client enroll'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user