router general
   spf delay 200
   spf holddown 5000
   spf rapid-runs 3
   srte distinguisher 1
   reoptimization interval 3600
!
router bgp 65001
   router-id 111.111.111.111
   !
   neighbor 192.168.0.101
      remote-as 65002
      address-family ipv4-labeled-unicast
      address-family link-state
   !
   neighbor 2001:192::101
      remote-as 65002
      address-family ipv4-srte
      address-family ipv6-labeled-unicast
      address-family ipv6-srte
      address-family link-state
!
router pcep
   !
   neighbor 192.168.0.101
!
traffic-eng affinities
   affinity-map
      name BLUE bit-position 0
      name YELLOW bit-position 1
      name ORANGE bit-position 2
   !
   affinity-set BLUE_ONLY
      constraint include-all
      name BLUE
   !
   affinity-set BLUE_OR_ORANGE
      constraint include-any
      name BLUE
      name ORANGE
   !
   affinity-set EXCLUDE_YELLOW_AND_ORANGE
      constraint exclude-any
      name ORANGE
      name YELLOW
   !
   affinity-set ORANGE_ONLY
      constraint include-all
      name ORANGE
   !
   affinity-set YELLOW_ONLY
      constraint include-all
      name YELLOW
   !
   affinity-set YELLOW_OR_ORANGE
      constraint include-any
      name ORANGE
      name YELLOW
!
traffic-eng nodes
   !
   node 2.2.2.2
      ipv4 address 2.2.2.2
      ipv6 address 2002::2
      !
      neighbor 10.100.16.101
         affinity ORANGE
         bandwidth 10 gbps
         bandwidth-group 101
      !
      neighbor 2001:100:16::101
         affinity ORANGE
         bandwidth 10 gbps
         bandwidth-group 101
   !
   node 5.5.5.5
      ipv4 address 5.5.5.5
      ipv6 address 2002::5
      !
      neighbor 10.100.18.103
         affinity BLUE
         bandwidth 10 gbps
         bandwidth-group 103
      !
      neighbor 2001:100:18::103
         affinity BLUE
         bandwidth 10 gbps
         bandwidth-group 103
   !
   node 6.6.6.6
      ipv4 address 6.6.6.6
      ipv6 address 2002::6
      !
      neighbor 10.100.17.102
         affinity ORANGE
         affinity YELLOW
         bandwidth 10 gbps
         bandwidth-group 102
      !
      neighbor 2001:100:17::102
         affinity ORANGE
         affinity YELLOW
         bandwidth 10 gbps
         bandwidth-group 102
   !
   node 11.11.11.11
      ipv4 address 11.11.11.11
      ipv6 address 2002::11
      !
      neighbor 10.100.19.104
         affinity YELLOW
         bandwidth 10 gbps
         bandwidth-group 104
      !
      neighbor 10.100.20.105
         affinity BLUE
         bandwidth 10 gbps
         bandwidth-group 105
      !
      neighbor 2001:100:19::104
         affinity YELLOW
         bandwidth 10 gbps
         bandwidth-group 104
      !
      neighbor 2001:100:20::105
         affinity BLUE
         bandwidth 10 gbps
         bandwidth-group 105
!
traffic-eng policies
   !
   policy R11_R1_BLUE_OR_ORANGE_IPV4
      headend 11.11.11.11 topology-id 101
      endpoint 1.1.1.1 color 3
      binding-sid 15003
      priority 5 5
      install indirect srte peer-group R1
      !
      candidate-path preference 100
         metric igp
         affinity-set BLUE_OR_ORANGE
         bandwidth 100 mbps
   !
   policy R11_R1_BLUE_OR_ORANGE_IPV6
      headend 11.11.11.11 topology-id 101
      endpoint 2002::1 color 103
      binding-sid 15103
      priority 5 5
      install indirect srte peer-group R1
      !
      candidate-path preference 100
         metric igp
         affinity-set BLUE_OR_ORANGE
         bandwidth 100 mbps
   !
   policy R1_ISP4_ANY_COLOR_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 10.100.19.104 color 5
      binding-sid 15005
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric te
         bandwidth 100 mbps
   !
   policy R1_ISP4_ANY_COLOR_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2001:100:19::104 color 105
      binding-sid 15105
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric te
         bandwidth 100 mbps
   !
   policy R1_ISP5_BLUE_ONLY_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 10.100.20.105 color 4
      binding-sid 15004
      priority 7 7
      install direct pcep 192.168.0.101
      !
      candidate-path preference 100
         metric igp
         affinity-set BLUE_ONLY
         bandwidth 100 mbps
   !
   policy R1_ISP5_BLUE_ONLY_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2001:100:20::105 color 104
      binding-sid 15104
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set BLUE_ONLY
         bandwidth 100 mbps
   !
   policy R1_NULL_EXCLUDE_YELLOW_AND_ORANGE_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 0.0.0.0 color 7
      binding-sid 15007
      priority 7 7
      install direct pcep 192.168.0.101
      !
      candidate-path preference 100
         metric igp
         affinity-set EXCLUDE_YELLOW_AND_ORANGE
         bandwidth 100 mbps
   !
   policy R1_NULL_EXCLUDE_YELLOW_AND_ORANGE_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint :: color 107
      binding-sid 15107
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set EXCLUDE_YELLOW_AND_ORANGE
         bandwidth 100 mbps
   !
   policy R1_NULL_YELLOW_ONLY_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 0.0.0.0 color 6
      binding-sid 15006
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set YELLOW_ONLY
         bandwidth 100 mbps
   !
   policy R1_NULL_YELLOW_ONLY_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint :: color 106
      binding-sid 15106
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set YELLOW_ONLY
         bandwidth 100 mbps
   !
   policy R1_R11_BLUE_ONLY_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 11.11.11.11 color 1
      binding-sid 15001
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set BLUE_ONLY
         bandwidth 100 mbps
   !
   policy R1_R11_BLUE_ONLY_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2002::11 color 101
      binding-sid 15101
      priority 7 7
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set BLUE_ONLY
         bandwidth 100 mbps
   !
   policy R1_R11_EP_LOOSE_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 11.11.11.11 color 9
      binding-sid 15009
      priority 4 4
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         explicit-path R25_LOOSE
         bandwidth 100 mbps
   !
   policy R1_R11_EP_LOOSE_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2002::11 color 109
      binding-sid 15109
      priority 4 4
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         explicit-path R25_LOOSE_IPV6
         bandwidth 100 mbps
   !
   policy R1_R11_EXCLUDE_SOME_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 11.11.11.11 color 10
      binding-sid 15010
      priority 4 4
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         explicit-path EXCLUDE_SOME
         bandwidth 100 mbps
   !
   policy R1_R11_EXCLUDE_SOME_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2002::11 color 110
      binding-sid 15110
      priority 4 4
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         explicit-path EXCLUDE_SOME_IPV6
         bandwidth 100 mbps
   !
   policy R1_R11_YELLOW_OR_ORANGE_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 11.11.11.11 color 2
      binding-sid 15002
      priority 6 6
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set YELLOW_OR_ORANGE
         bandwidth 100 mbps
   !
   policy R1_R11_YELLOW_OR_ORANGE_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2002::11 color 102
      binding-sid 15102
      priority 6 6
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         metric igp
         affinity-set YELLOW_OR_ORANGE
         bandwidth 100 mbps
   !
   policy R1_R9_EP_STRICT_IPV4
      headend 1.1.1.1 topology-id 101
      endpoint 9.9.9.9 color 109
      binding-sid 15008
      priority 4 4
      install direct pcep 192.168.0.101
      !
      candidate-path preference 100
         explicit-path R5_R8_R10
         bandwidth 100 mbps
   !
   policy R1_R9_EP_STRICT_IPV6
      headend 1.1.1.1 topology-id 101
      endpoint 2002::9 color 108
      binding-sid 15108
      priority 4 4
      install direct srte 2001:192::101
      !
      candidate-path preference 100
         explicit-path R2_R6_R9_STRICT_IPV6
         bandwidth 100 mbps
!
traffic-eng peer-groups
   !
   peer-group R1
      neighbor 2001:192::101
!
traffic-eng explicit-paths
   !
   explicit-path EXCLUDE_SOME
      index 10 exclude 4.4.4.4
      index 20 loose 7.7.7.7
      index 30 exclude 10.100.13.11
      index 40 exclude 10.100.14.11
   !
   explicit-path EXCLUDE_SOME_IPV6
      index 10 exclude 2002::4
      index 20 loose 2002::7
      index 30 exclude 2001:100:13::11
      index 40 exclude 2001:100:14::11
   !
   explicit-path R25_LOOSE
      index 10 loose 202.0.2.5
   !
   explicit-path R25_LOOSE_IPV6
      index 10 loose 2002::25
   !
   explicit-path R2_R6_R9_STRICT
      index 10 strict 10.100.1.2
      index 20 strict 10.100.4.6
      index 30 strict 10.100.10.9
   !
   explicit-path R2_R6_R9_STRICT_IPV6
      index 10 strict 2001:100:1::2
      index 20 strict 2001:100:4::6
      index 30 strict 2001:100:10::9
   !
   explicit-path R5_R8_R10
      index 10 strict 10.100.3.5
      index 20 strict 10.100.9.8
      index 30 strict 10.100.12.10
!
management api http-commands
   protocol http
      port 80
   protocol https
      port 443
!
management syslog
!
management licenses
   license general
!
end
