This is an old revision of the document!
1 How to apply another tariff plan to a set of subscribers?
If you have used a named profile to set a tariff plan, it's enough to change the tariff plan settings in this profile and they will be automatically applied to all subscribers within the given tariff plan name
fdpi_ctrl load profile --policing rate_10_night.cfg --profile.name tariff_plan_10
In case of anonymous policing profiles (without a name) you have to change the tariff plan as follows, an example for rate10.cfg bp discussed in Managing the subscriber's bandwidth accortding to the tariff plan:
fdpi_ctrl list all --policing | grep 'rrate=1250000(10.00mbit)' | awk '{ print $1}'>ll.tmp; fdpi_ctrl load --policing policing.htb.cng --file ll.tmp;
or in case you have previously prepared list:
fdpi_ctrl load --policing policing.htb.cng --file my_rate10_ip.lst
here my_rate10_ip.lst file contains the list of IPs, such as follows:
# cat my_rate10_ip.lst 10.64.66.110 10.64.66.112 10.64.66.114