summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface/interface-dial-on-demand.xml.i
diff options
context:
space:
mode:
authorLee Clements <lclements0@gmail.com>2026-07-22 15:53:20 -0400
committerLee Clements <lclements0@gmail.com>2026-07-30 13:21:51 -0400
commit6d8a3ad9a87857d5994ec33982dd3db9a04fb8bd (patch)
tree7fe4bc697595518c69c48f8dab6d4c871053da79 /interface-definitions/include/interface/interface-dial-on-demand.xml.i
parentb81e435210f499b225b5d27fd16c370c0095da3a (diff)
downloadvyos-1x-6d8a3ad9a87857d5994ec33982dd3db9a04fb8bd.tar.gz
vyos-1x-6d8a3ad9a87857d5994ec33982dd3db9a04fb8bd.zip
flow-accounting: T9122: bind NetFlow export to the configured VRF
After the migration from pmacct to the ipt_NETFLOW kernel module the "system flow-accounting vrf" node no longer had any effect on the export path. NetFlow is emitted by the kernel module, so there is no daemon left to wrap in "ip vrf exec" and the module socket was never bound to the VRF. A collector reachable only inside a VRF therefore never received any flows when the export was configured with a source-address. Bind the export socket to a device via the ipt_NETFLOW "%device" destination suffix: a per-server source-interface takes precedence, otherwise the global VRF device is used, reproducing the previous "ip vrf exec" behaviour. The module parses "@source-address" before "%device", so the source-address is now rendered first - the previous template emitted them in the opposite order, which only worked because the two options are mutually exclusive per server. Reject a source-interface that is used together with a VRF but is not a member of that VRF: the exported flows would otherwise silently leave via a different routing table. This mirrors the existing OSPF, OSPFv3, IS-IS and BGP checks.
Diffstat (limited to 'interface-definitions/include/interface/interface-dial-on-demand.xml.i')
0 files changed, 0 insertions, 0 deletions