Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions src/_pybgpstream_bgpelem.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ static PyObject *BGPElem_get_fields(BGPElemObject *self, void *closure)
/* FALLTHROUGH */

case BGPSTREAM_ELEM_TYPE_WITHDRAWAL:
#ifdef BGPSTREAM_ELEM_TYPE_END_OF_RIB
case BGPSTREAM_ELEM_TYPE_END_OF_RIB:
#endif
Comment thread
alistairking marked this conversation as resolved.
if (add_to_dict(dict, "prefix",
get_pfx_pystr((bgpstream_pfx_t *)&self->elem->prefix))) {
return NULL;
Expand Down