diff --git a/docs/api__pybgpstream.rst b/docs/api__pybgpstream.rst index 959e8fd..bd59172 100644 --- a/docs/api__pybgpstream.rst +++ b/docs/api__pybgpstream.rst @@ -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 diff --git a/src/_pybgpstream_bgpelem.c b/src/_pybgpstream_bgpelem.c index 39799ca..7f261ee 100644 --- a/src/_pybgpstream_bgpelem.c +++ b/src/_pybgpstream_bgpelem.c @@ -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;