Subject: Community objects?

From: Mark Prior <[email-masked]>
Date: Sun, 02 Aug 1998 22:31:29 +0930

While there isn't much of a need for a community object as such (well
I haven't thought of one anyway :-) I do think there might be a place
for a community set. As I continue to code my policy in RPSL (as
Cengiz knows, using more and more features :-) it would be helpful if
there was a community set. We have a number of private communities
that we use for various purposes. I want to stop customers trying to
fiddle with them and so I would like to specify a rule such as

import: {
                from AS-ANY action community = internet;
                        accept AS2764:CS-PRIVATE
                from AS-ANY action pref = 25;
                        accept community.contains({2764,3}) AND NOT AS2764:RS-PROVIDER^- AND NOT { 0.0.0.0/0 };
                from AS-ANY action pref = 15;
                        accept community.contains({2764,4}) AND NOT AS2764:RS-PROVIDER^- AND NOT { 0.0.0.0/0 };
                from AS-ANY action pref = 5;
                        accept community.contains({2764,5}) AND NOT { 0.0.0.0/0};
                from AS-ANY action pref = 0;
                        accept ANY AND NOT { 0.0.0.0/0};
        } refine {
                from AS2764:AS-GLOBAL
                        accept PeerAS AND <^PeerAS+$>;
                from AS2764:AS-DOMESTIC
                        accept PeerAS AND <^PeerAS+$>;
                from AS4805
                        accept ( AS4805 OR AS201 OR AS4634 OR AS4736 OR AS4744 OR AS7567 OR AS7617 ) AND <^AS4805+ [AS201 AS4634 AS4736 AS4744 AS7567 AS7617]+$>;
                from AS7543
                        accept ( AS7543 OR AS7584 OR AS7594 ) AND <^AS7543+ [AS7584 AS7594]+$>;
                from AS7586
                        accept ( AS7586 OR AS7584 OR AS7585 OR AS7603 OR AS7604 OR AS7605 OR AS7607 OR AS7609 OR AS7635 OR AS7704 OR AS7719 OR AS7721 ) AND <^AS7586+ [AS7584 AS7585 AS7603 AS7604 AS7605 AS7607 AS7609 AS7635 AS7704 AS7719 AS7721]+$>;
                from AS7637
                        accept ( AS7637 OR AS7175 OR AS7543 OR AS7598 OR AS9314 ) AND <^AS7637+ [AS7175 AS7543 AS7598 AS9314]+$>;
        }

I would then populate the community set AS2764:CS-PRIVATE with all my
private communities. This should make it obvious to customers that
they shouldn't fiddle with them :-)

Mark.