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

case BGPSTREAM_ELEM_TYPE_END_OF_RIB:
if (add_to_dict(dict, "prefix",
get_pfx_pystr((bgpstream_pfx_t *)&self->elem->prefix))) {
return NULL;
}
break;
Comment thread
alistairking marked this conversation as resolved.
Outdated

case BGPSTREAM_ELEM_TYPE_UNKNOWN:
default:
break;
Expand Down