Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Add VRF information to flow messages #24

Merged
merged 6 commits into from
May 1, 2019
Merged

Conversation

debugloop
Copy link
Contributor

This PR adds ingressVrfId and egressVrfId to the flow message protobuf, as well as the required handling on the producer side.

It also includes these fields in NFv9TypeToString, which is technically incorrect. The Cisco ASR9k Series of routers (and probably other IOS-XR platforms as well) however include these two fields (234 and 235) in their Netflow v9 templates, "borrowing" from IPFIX. But as far as I can tell, this is never executed during regular goflow usage.

This code is tested with said NFv9 from different AS9k and IOS-XR versions and will most probably work for IPFIX as well.

@lspgn lspgn self-assigned this Apr 13, 2019
@lspgn lspgn merged commit 959ed13 into cloudflare:master May 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants