neighbor 192.168.144.8 {
    export [ HKIX-PREPEND HKIX-ADVERTISE ];
}

(logical systems Test)
neighbor 192.168.144.6 {
    import [ BH-IN IBGP-FROM-MAIN ACCEPT-ALL ];
}

route 27.50.63.0/25 {
    discard;
    retain;
    preference 255;
    community [ 999:10000 777:20131 ];
}

======================================================

RE0> show configuration policy-options policy-statement HKIX-PREPEND
term HKIX-CUSTOMER-PREPEND-1 {
    from community TRANSIT-HK-HKIX-PREPEND1;
    then {
        as-path-prepend 999;
        trace;
        next term;
    }
}
term HKIX-CUSTOMER-PREPEND-2 {
    from community TRANSIT-HK-HKIX-PREPEND2;
    then {
        as-path-prepend “999 999”;
        next term;
    }
}
term HKIX-CUSTOMER-PREPEND-3 {
    from community TRANSIT-HK-HKIX-PREPEND3;
    then {
        as-path-prepend “999 999 999”;
        next term;
    }
}
then next policy;

RE0> show configuration policy-options policy-statement HKIX-ADVERTISE
term HKIX-ADVERTISE {
    from community TRANSIT-HK-HKIX-ADVERTISE;
    then accept;
}

RE0> ...ystems Test policy-options policy-statement BH-IN
term BLACKHOLE {
    from community BLACKHOLE;
    then {
        next-hop discard;
        accept;
    }
}
term DISCARD {
    from community DISCARD;
    then {
        next-hop discard;
        accept;
    }
}
term BLACKHOLE-EXT {
    from community BLACKHOLE-EXT;
    then accept;
}

RE0> ...systems Test policy-options policy-statement IBGP-FROM-MAIN
term REJECT-IMPORT {
    from community 65535:9;
    then reject;
}

RE0> ...ical-systems CHINA policy-options policy-statement ACCEPT-ALL
then accept;

RE0> show configuration policy-options community TRANSIT-HK-HKIX-PREPEND1
members "(^999:(1000|1300|1007|1307)1$|^777:(1000|2000|2013)1$|65001:10001)";

RE0> show configuration policy-options community TRANSIT-HK-HKIX-PREPEND2
members "(^999:(1000|1300|1007|1307)2$|^777:(1000|2000|2013)2$|65001:10002)";

RE0> show configuration policy-options community TRANSIT-HK-HKIX-PREPEND1
members "(^999:(1000|1300|1007|1307)1$|^777:(1000|2000|2013)1$|65001:10001)";

RE0> show configuration policy-options community TRANSIT-HK-HKIX-PREPEND3
members "(^999:(1000|1300|1007|1307)3$|^777:(1000|2000|2013)3$|65001:10003)";

RE0> show configuration policy-options community TRANSIT-HK-HKIX-ADVERTISE
members "(^999:(1000|1300|1007|1307)0$|^777:(1000|2000|2013)0$|65001:10000)";