Skip to content

Commit 92e9072

Browse files
authored
Update README.md
1 parent fc21b62 commit 92e9072

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: vr-bgp/README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ list of integers `[2792, 10300]`.
124124

125125
### `POST /announce`
126126
```javascript
127-
[
128-
{ "prefix": "21.0.0.0/24" },
129-
{ "prefix": "21.1.0.0/24", "community": ["2792:10300"]},
130-
{ "prefix": "21.2.0.0/24", "as-path": [21, 65000] },
131-
{ "prefix": "21.3.0.0/24", "med": 100 }
132-
]
127+
{"routes":
128+
[
129+
{ "prefix": "21.0.0.0/24" },
130+
{ "prefix": "21.1.0.0/24", "community": ["2792:10300"]},
131+
{ "prefix": "21.2.0.0/24", "as-path": [21, 65000] },
132+
{ "prefix": "21.3.0.0/24", "med": 100 }
133+
]
134+
}
133135
```
134136

135137
The example shows announcement configuration for four prefixes. By default, all

0 commit comments

Comments
 (0)