Tran,
you can configure REP-AG on the A9k as follows:
spanning-tree repag
int g0/0/0/0.1
int g0/0/0/0.1 l2trans
encap untagged
Note that REP-AG is not full rep, we only trigger on the TCN from the rep ring and invoke a mac flush then.
Because the 9k needs to be at the head of the ring you need to configure the following on your peer:
rep edge no-neighbor
and the compatibility mode is done via:
rep stcn stp
Finally, if the 2 endpoints of the rep ring are on the same device, you may want to put the encap untagged EFP's into an XCON or BD, if the 9k's are remote a PW to make sure that you can transport the TCN's from one ring point to the other if need be in specific design scenarios.
xander
sr Tech Lead ASR9000
CCIE