diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-01-22 12:44:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-22 12:44:32 +0000 |
| commit | 41aa42fec49399a3cee7c772d2799b1c17490401 (patch) | |
| tree | 309ca070084fbb678e895d57b445ecb044ecc77a /src | |
| parent | 774de4b11330e7d3d30ddf6af0ad75e8be0f7bb3 (diff) | |
| parent | 2d8076c7db448ff49155641ee49ffc8db7c0b837 (diff) | |
| download | vyos-1x-41aa42fec49399a3cee7c772d2799b1c17490401.tar.gz vyos-1x-41aa42fec49399a3cee7c772d2799b1c17490401.zip | |
Merge pull request #4947 from natali-rs1985/T8183
vpp: T8143: Incorrect mapping in IPFIX for bond interfaces
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_mode/vpp_interfaces_bonding.py | 4 | ||||
| -rw-r--r-- | src/conf_mode/vpp_ipfix.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/conf_mode/vpp_interfaces_bonding.py b/src/conf_mode/vpp_interfaces_bonding.py index 593f38a84..d25d64eb0 100644 --- a/src/conf_mode/vpp_interfaces_bonding.py +++ b/src/conf_mode/vpp_interfaces_bonding.py @@ -153,6 +153,10 @@ def get_config(config=None) -> dict: if conf.exists(['vpp', 'acl']): set_dependents('vpp_acl', conf) + # IPFIX dependency + if conf.exists(['vpp', 'ipfix']): + set_dependents('vpp_ipfix', conf) + config['ifname'] = ifname return config diff --git a/src/conf_mode/vpp_ipfix.py b/src/conf_mode/vpp_ipfix.py index a6659257c..a23498c99 100644 --- a/src/conf_mode/vpp_ipfix.py +++ b/src/conf_mode/vpp_ipfix.py @@ -19,6 +19,7 @@ from vyos import ConfigError from vyos.config import Config from vyos.vpp.ipfix import IPFIX from vyos.vpp.utils import cli_ifaces_list +from vyos.vpp.utils import vpp_iface_name_transform def get_config(config=None) -> dict: @@ -116,6 +117,7 @@ def apply(config): # Remove interfaces for iface, iface_conf in config.get('effective', {}).get('interface', {}).items(): + iface = vpp_iface_name_transform(iface) direction = iface_conf.get('direction') which = iface_conf.get('flow_variant') i.flowprobe_interface_delete(iface, direction=direction, which=which) @@ -158,6 +160,7 @@ def apply(config): # Interfaces if 'interface' in config: for iface, iface_config in config.get('interface', {}).items(): + iface = vpp_iface_name_transform(iface) direction = iface_config.get('direction') which = iface_config.get('flow_variant') |
