JUNOSe 7.2.x Policy Management Configuration Guide
48 ! Merging Policies
host1(config-classifier-group)#color yellow
host1(config-classifier-group)#exit
Combining p1 and p2 internally results in:
ip policy-list mpl_20
classifier-group C1 precedence 90
color yellow
exit
Example 4 With the IP policy forward rule, when more forward rules are added to an existing
classifier group, the list of forward rules is created. This is also true during merging,
as in the following example:
host1(config)#ip policy-list p1
host1(config-policy)#classifier-group C1 precedence 90
host1(config-classifier-group)#forward next-hop 1.1.1.1
host1(config-classifier-group)#exit
host1(config)#ip policy-list p2
host1(config-policy)#classifier-group C1 precedence 90
host1(config-classifier-group)#forward next-interface atm 5/0.1
host1(config-classifier-group)#exit
host1(config)#ip policy-list p2
host1(config-policy)#classifier-group C1 precedence 90
host1(config-classifier-group)#forward next-interface fastEthernet 4/0.1
next-hop 1.1.1.2
host1(config-classifier-group)#exit
Combining p1, p2, and p3, internally results in the following:
ip policy-list mpl_10
classifier-group C1 precedence 90
forward next-hop 1.1.1.1
forward next-interface atm 5/0.1
forward next-interface fastEthernet 4/0.1 next-hop 1.1.1.2
exit
Example 5 Policy management enables multiple policy attachments at the same attachment
point, which results in a merged policy that is created and attached at the specified
attachment point. The logical OR of the statistics and baseline keywords of all
attachments are used as the statistics and baseline keyword for the merged policy
attachment, as in the following example:
host1(config)#interface atm 5/0.1
host1(config-subif)#ip policy input p1 statistics enable baseline enable merge
host1(config-subif)#ip policy input p2 merge
host1(config-subif)#ip policy input p3 statistics enable merge
host1(config-subif)#exit
Results in the following:
interface atm 5/0.1
ip policy input mpl_5 statistics enable baseline enable merge
exit