#
# PRE: update
#
+
+#
+# Set it.
+#
update request {
NAS-Port := 1000
}
#
-# Filtering
+# Enforce it.
#
update request {
NAS-Port == 1000
}
}
+#
+# Enforce to new lower value.
+#
update request {
NAS-Port <= 500
}
if (NAS-Port != 500) {
update reply {
- Filter-Id += "fail 2"
+ Filter-Id += "fail 2 - expected 500, got %{NAS-Port}"
}
}
+#
+# Enforce to new higher value
+#
update request {
NAS-Port >= 2000
}
if (NAS-Port != 2000) {
update reply {
- Filter-Id += "fail 3"
+ Filter-Id += "fail 3 - expected 2000, got %{NAS-Port}"
}
}