Case Statement Syntax question
Scott.MacNeill at aliant.ca
Mon Sep 17 17:52:33 UTC 2007
I have a syntax question around case statements. I've been trying
using if / elseif / not , but not having much luck.
Today we expect all clients that match xxxyyy_05 to have the to date
In the example we have it set today that if anyone who matches 01 - 04,
we push file.ext.
I'd like to change it so that, the case statement would match so that
'anyone not at xxxyyy_05 gets file pushed', that way later if we have
an xxxyyy_01.1 client , we don't have to have them defined in there.
They'll automatically be pushed file.ext
match if substring(option vendor-class-identifier,0,7) = "xxxyyy";
switch (option vendor-class-identifier)
option extensions-path = "file.ext";
set clli = option agent.circuit-id;
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dhcp-users