An example of the provisioning steps involved in configuring PW shaping using spoke-SDP forwarding class-based redirection is as follows:
configure
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
qos
queue-group-templates
ingress
queue-group "QGIng1" create
policer 1 create
exit
policer 2 create
exit
policer 3 create
exit
policer 4 create
exit
exit
exit
egress
queue-group "QGEgr1" create
queue 1 best-effort create
exit
policer 1 create
exit
policer 2 create
exit
policer 3 create
exit
policer 4 create
exit
exit
exit
exit
exit
network 10 create
ingress
lsp-exp 0 fc be profile out
lsp-exp 1 fc be profile out
lsp-exp 2 fc be profile out
lsp-exp 3 fc be profile out
lsp-exp 4 fc be profile out
lsp-exp 5 fc be profile out
lsp-exp 6 fc be profile out
lsp-exp 7 fc be profile out
fc af
fp-redirect-group policer 4
exit
fc be
fp-redirect-group policer 1
exit
fc l1
fp-redirect-group policer 2
exit
fc l2
fp-redirect-group policer 3
exit
exit
egress
fc af
port-redirect-group policer 4
exit
fc be
port-redirect-group policer 1
exit
fc l1
port-redirect-group policer 2
exit
fc l2
port-redirect-group policer 3
exit
exit
exit
exit
#--------------------------------------------------
echo "Card Configuration"
#--------------------------------------------------
card 3
fp 1
ingress
network
queue-group "QGIng1" instance 1 create
exit
queue-group "QGIng1" instance 2 create
exit
exit
exit
exit
exit
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
port 3/2/1
ethernet
encap-type dot1q
network
egress
queue-group "QGEgr1" instance 1 create
exit
queue-group "QGEgr1" instance 2 create
exit
exit
exit
exit
no shutdown
*A:Dut-T>config>service#
customer 1 create
description "Default customer"
exit
sdp 1 mpls create
description "Default sdp description"
far-end 198.51.100.0
ldp
path-mtu 9000
keep-alive
shutdown
exit
no shutdown
exit
vpls 1 customer 1 vpn 1 create
description "Default tls description for service id 1"
service-mtu 9000
stp
shutdown
exit
service-name "XYZ Vpls 1"
sap 9/2/1:1.* create
description "Default sap description for service id 1"
static-mac 00:00:1e:00:01:02 create
ingress
qos 10
exit
exit
spoke-sdp 1:101 vc-type vlan create
description "Description for Sdp Bind 1 for Svc ID 1"
ingress
qos 10 fp-redirect-group "QGIng1" instance 1
exit
egress
qos 10 port-redirect-group "QGEgr1" instance 1
exit
static-mac 00:00:28:00:01:02 create
no shutdown
exit
no shutdown
exit
router
interface "ip-192.168.0.0"
address 192.168.0.0/24
port 3/2/1:1
exit
interface "system"
address 192.168.0.1/32
exit
#---------------------------------------------