diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2017-04-11 01:56:55 +0200 |
---|---|---|
committer | Joachim Tingvold <joachim@tingvold.com> | 2017-04-11 01:56:55 +0200 |
commit | fe63ef82267c7eee7a237ba708f5163509a025fa (patch) | |
tree | 3c00c5142bf733782500f91d55666eb6e842586f | |
parent | 04c5927834fa558d8407afc250663fcfdfd87161 (diff) |
Option 82 not always present.
-rwxr-xr-x | bootstrap/make-dhcpd.pl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bootstrap/make-dhcpd.pl b/bootstrap/make-dhcpd.pl index ca9c16e..a5919fc 100755 --- a/bootstrap/make-dhcpd.pl +++ b/bootstrap/make-dhcpd.pl @@ -155,8 +155,13 @@ class "access-points" { # Number of characters has to match the substring # I.e if "Access Point", you have to use (0, 12) match if substring (option vendor-class-identifier, 0, 12) = "Access Point"; - log( info, concat( "AP: ", hostmac, " (", option host-name, ") - ", option agent.circuit-id, " - ", option vendor-class-identifier )); - + + if exists agent.circuit-id { + log( info, concat( "AP: ", hostmac, " - ", option vendor-class-identifier, " - ", option agent.circuit-id )); + } else { + log( info, concat( "AP: ", hostmac, " - ", option vendor-class-identifier )); + } + vendor-option-space WLC; option WLC.controller-address "$nms::config::wlc1_v4"; } |