diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-06-18 12:34:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-18 12:34:58 +0300 |
| commit | 429563d0822adc715757447515a49e0d87911476 (patch) | |
| tree | 4133188548f6012e889ff346803afb348432cc0a /src | |
| parent | aab8c6f8c69e2ca0381ae5874c591197dcae36a9 (diff) | |
| parent | 516ea43279d750272be398a27948049581b22630 (diff) | |
| download | vyos-1x-429563d0822adc715757447515a49e0d87911476.tar.gz vyos-1x-429563d0822adc715757447515a49e0d87911476.zip | |
Merge pull request #37 from zdc/T7223-current
XDP/Mellanox: T7223: Fixed interfaces initialization
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/vpp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/vpp.py b/src/conf_mode/vpp.py index 76aa7c5af..d5778c778 100755 --- a/src/conf_mode/vpp.py +++ b/src/conf_mode/vpp.py @@ -693,6 +693,7 @@ def apply(config): if 'promisc' in iface_config['xdp_options']: control_host.set_promisc(f'defunct_{iface}', 'on') control_host.set_status(f'defunct_{iface}', 'up') + control_host.flush_ip(f'defunct_{iface}') # Rename Mellanox interfaces to hide them and create LCP properly if ( iface in Section.interfaces() @@ -700,6 +701,7 @@ def apply(config): ): control_host.rename_iface(iface, f'defunct_{iface}') control_host.set_status(f'defunct_{iface}', 'up') + control_host.flush_ip(f'defunct_{iface}') # Create lcp if iface not in Section.interfaces(): vpp_control.lcp_pair_add(iface, iface) |
