Dynamic Profile After UID Substitutions for Parameterized Filters
In the following example, the client session is created on the ge-1/0/0.7 interface and this service is activated:
my-svc-prof(my-filt-1gw, 198.51.100.239/32, 0, 5m)
A dynamic profile is created by the process. The UIDs assigned by the process are based on the parameters being passed in as well as the sessions previously created.
dynamic-profile {
[my-svc-prof] {
interfaces {
ge-1/0/0 {
unit 7 {
family inet {
filter {
input my-filt-1gw_UID1022;
}
}
}
}
}
firewall {
policer my-policer_UID1005 {
if-exceeding {
bandwidth-limit 5m;
burst-size-limit 15000;
}
then discard;
}
family inet {
filter my-filt-1gw_UID1022 {
interface-specific;
term t0 {
from {
destination-address 198.51.100.239/32;
}
then {
policer my-policer_UID1005;
}
}
term last {
then {
count drops;
discard;
}
}
}
filter my-filt-2gw_UID11018 {
interface-specific;
term t0 {
from {
destination-address {
198.51.100.239/32;
0;
}
}
then {
policer my-policer_UID1005;
}
}
term last {
then {
count drops;
discard;
}
}
}
}
}
}
}