Skip to content

Commit 417467a

Browse files
committed
Update concepts-nexus-route-policies-overview.md
1 parent 5d54915 commit 417467a

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

articles/operator-nexus/concepts-nexus-route-policies-overview.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,39 @@ The `action` property of a route policy statement defines the action to be taken
7070

7171
The `ipCommunityProperties` property specifies how the policy affects the community values and extended community values of the route.
7272

73-
It has a `set` property and a `delete` property. The `set` property specifies the IP community and IP extended community resources to add or overwrite to the routes. The `delete` property specifies the IP community and IP extended community resources to remove from the routes.
73+
It has a `set` property and a `delete` property. The `set` property specifies the IP community and IP extended community resources to add or overwrite to the routes. The `delete` property specifies the IP community and IP extended community resources to remove from the routes.
74+
75+
### BGP Regex Support in Route Policies
76+
77+
BGP communities are configured using the `IPCommunity` and `IPExtendedCommunity` BGP configuration properties. Currently, these take a list of exact match values. For example, the bold string `1234:2345` in the ARM JSON snippet below matches an IP extended community.
78+
79+
```json
80+
{
81+
"ipExtendedCommunityRules": [
82+
{
83+
"action": "Permit",
84+
"sequenceNumber": 4155123341,
85+
"routeTargets": [
86+
"1234:2345"
87+
]
88+
}
89+
]
90+
}
91+
```
92+
93+
This feature adds regex matching of BGP communities, allowing more concise and flexible route policies.
94+
95+
The following table shows examples of the community member property under IPCommunityRules and route targets under IPExtendedCommunityRules, which can be specified in the formats below.
96+
97+
| **Type** | **Formats** | **Exact Match Examples** | **Regex Examples** |
98+
|----------------------------------------------------|------------------------------------------|-------------------------------------------|---------------------------------------------------------|
99+
| **Community Member (IPCommunity) AA:NN** | `<0-65535>:<0-65535>` | `7287:22222` | `7287:[2-9][0-9]2[0-9][0-9]` |
100+
| | `<1-4294967040>` | `333233` | `[3-6][2-9][0-9]2[0-9][0-9]` |
101+
| **Route Targets (IPExtendedCommunity) ASN (asplain):nn** | `<0-4294967295>:<0-65535>` | `1122:33533` | `[3-6][2-9][0-9]2[0-9][0-9]:[2-9][0-3]5[0-8][0-9]` |
102+
| | `<0-65535>:<0-4294967295>` | | |
103+
| **Route Targets (IPExtendedCommunity) ASN (asdot):nn** | `<0-65535>.<0-65535>:<0-65535>` | `2345.7287:33533` | `2345.7287:[2-9][0-3]5[0-8][0-9]` |
104+
| **Route Targets (IPExtendedCommunity) IP-address:nn** | `<Valid-IPv4-Address>:<0-65535>` | `10.11.33.56:33533` | `10.11.33.56:[2-9][0-3]5[0-8][0-9]` |
105+
106+
> [!NOTE]
107+
> - IPCommunity or IPExtendedCommunity supports multiple strings for RT values of each sequence number. However, to support regular expressions, only one regular expression under each sequence number of IPCommunity and IPExtendedCommunity can be provided. In the case of multiple regular expressions under each IPCommunity, they can be added with more sequence numbers with the respective regular expressions.
108+
> - Well-known communities are not supported for IPCommunity with regular expressions.

0 commit comments

Comments
 (0)