To configure policy options to import and export routes to and from the end customer’s CE router, include the policy-statement and community statements:
- policy-statement policy-name {
-
- term term-name {
-
- from {
- protocol bgp;
- community community-name;
- }
- then accept;
- }
-
- term term-name {
- then reject;
- }
- }
- policy-statement policy-name {
-
- term term-name {
- from protocol bgp;
-
- then {
- community add community-name;
- accept;
- }
- }
-
- term term-name {
- then reject;
- }
- }
- community community-name members value;
You can include these statements at the following hierarchy levels: