To enable recursive next-hop resolution:
SLX # route-map r999 permit 10 SLX (config-route-map-r999/permit/10)#
SLX (config-route-map-r999/permit/10)# match ip address acl test1 SLX (config-route-map-r999/permit/10)# match ipv6 address acl test1
SLX (config-route-map-r999/permit/10)# set ip next-hop 10.10.10.11 SLX (config-route-map-r999/permit/10)# set ipv6 next-hop 2001:db8:0:0:0:ff00:42:1122
SLX (config-route-map-r999/permit/10)# next-hop-recursion SLX (config-route-map-r999/permit/10)#
SLX (config-route-map-r999/permit/10)# exit SLX #
SLX# show route-map r1 Interface Ethernet 0/17 ip policy route-map r1 permit 10 (Active) match ip address acl test1 set ip next-hop 4.4.4.4 (selected) (recursive) next-hop 10.10.10.1 Policy routing matches: 1543 packets SLX# show route-map interface eth 0/17 Interface Ethernet 0/17 ip policy route-map r1 permit 10 (Active) match ip address acl test1 set ip next-hop 4.4.4.4 (selected) (recursive) next-hop 10.10.10.1 Policy routing matches: 1543 packets SLX# SLX# show route-map interface ethernet 1/6 Interface Ethernet 1/6 Ipv6 policy route-map r1 permit 10 (Active) match ipv6 address acl test1 set ipv6 next-hop 2001:db8:0:0:0:ff00:42:8329 (selected) (recursive) next-hop 2001:db:0:0:0:ff11:32:1122 Policy routing matches: 313229543 packets