For this configuration, the dynamic profile defines a profile variable set and then assigns the variable to the output policer.
To configure dynamic profiles:
- Create a dynamic profile.
[edit dynamic-profiles]
user@host# edit pw-policer
- Create a profile variable set and define the junos-layer2-output-policer variable. In this scenario, set the variable to the 10m-policer.
[edit dynamic-profiles pw-policer]
user@host# edit profile-variable-set pw-policer-var-set
user@host# set junos-layer2-output-policer 10m-policer
- Create a dynamic profile interface that has a dynamic underlying interface unit.
[edit dynamic-profiles pw-policer]
user@host# edit interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit
- Assign the junos-layer2-output-policer variable to the two-color output policer.
[edit dynamic-profiles pw-policer interfaces "$junos-interface-ifd-name" unit "$junos-underlying-interface-unit"]
user@host# set layer2-policer output-policer $junos-layer2-output-policer
- Specify that VPLS is the protocol family.
[edit dynamic-profiles pw-2color-l2-policer interfaces "$junos-interface-ifd-name" unit "$junos-underlying-interface-unit"]
user@host# set family vpls