Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api__pybgpstream.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ BGPStream

The `elemtype` filter can be used to limit the stream to only certain
element types. Possible element types are `ribs`, `withdrawals`,
`announcements` and `peerstates`.
`announcements`, `peerstates` and `endofrib`.

The `community` filter is specified as
a `asn:value` formatted string, the user can specify the ASn or
Expand Down
4 changes: 4 additions & 0 deletions src/_pybgpstream_bgpelem.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ static PyObject *BGPElem_get_fields(BGPElemObject *self, void *closure)
/* FALLTHROUGH */

case BGPSTREAM_ELEM_TYPE_WITHDRAWAL:
#if BGPSTREAM_MAJOR_VERSION > 2 || \
(BGPSTREAM_MAJOR_VERSION == 2 && BGPSTREAM_MID_VERSION >= 4)
case BGPSTREAM_ELEM_TYPE_END_OF_RIB:
#endif
if (add_to_dict(dict, "prefix",
get_pfx_pystr((bgpstream_pfx_t *)&self->elem->prefix))) {
return NULL;
Expand Down