<div class="h5">Thanks Jeff.<br><br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Well, actually I was thinking more along the lines of the following (my apologies if I've mangled the syntax, just trying to illustrate a point here):<br>
<br>
class "red" {<br>
match if (option color = "red");<br>
}<br>
<br>
class "fat" {<br>
match if (option color != "red") && (option weight = "fat");<br>
}<br>
<br>
class "tall" {<br>
match if (option color != "red") && (option weight != "fat") && (option height = "tall");<br>
}<br>
<br>
class "cold" {<br>
match if (option color != "red") && (option weight != "fat") && (option height != "tall");<br>
}<br>
<br>
...<br>
pool {<br>
range 10.0.0.1 10.0.0.254;<br>
allow members of "red";<br>
}<br>
pool {<br>
range 10.0.1.1 10.0.1.254;<br>
allow members of "fat";<br>
}<br>
pool {<br>
range 10.0.2.1 10.0.2.254;<br>
allow members of "tall";<br>
}<br>
pool {<br>
range 10.0.3.1 <a href="http://10.0.3.254" target="_blank">10.0.3.254</a>:<br>
allow members of "cold";<br>
}<br>
...<br>
<br>
No variables required, I think.<br></blockquote><div><br>How do I choose a pool say if option height is absent ? I would have to use deny etc<br>I think I can't achieve this because I have to choose pool sometimes when there is no match(option is absent). Or sometimes I have to discard a client if a match is found etc.<br>
Like for example:<br>rule 1 type dhcp-option<br>rule 1 dhcp-option 60<br>rule 1 match-str "*VIP*"<br>rule 1 match-action discard<br>rule 1 absent-action continue<br>rule 2 type dhcp-option<br>rule 2 dhcp-option 60<br>
rule 2 match-str "*"<br>rule 2 match-action pass<br>rule 2 match-pool 192.168.1.100<br>rule 2 match-option-group ""<br>rule 2 absent-action continue<br></div></div>