diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-01-30 15:21:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-30 15:21:10 +0200 |
| commit | ff57a67e853272f14c7c3bc5e086b915d00b3511 (patch) | |
| tree | 4791a7357712603bf5b5421cd87ffd1cc84e6da9 /src/conf_mode/interfaces_ethernet.py | |
| parent | 1af4e423a17064e3e6d87b0c5df1c01688b6551a (diff) | |
| parent | 04962c8683000d293aad5460144f3c10111beeb8 (diff) | |
| download | vyos-1x-ff57a67e853272f14c7c3bc5e086b915d00b3511.tar.gz vyos-1x-ff57a67e853272f14c7c3bc5e086b915d00b3511.zip | |
Merge pull request #4955 from natali-rs1985/T8202
vpp: T8202: Remove XDP driver and options from CLI and config
Diffstat (limited to 'src/conf_mode/interfaces_ethernet.py')
| -rwxr-xr-x | src/conf_mode/interfaces_ethernet.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/conf_mode/interfaces_ethernet.py b/src/conf_mode/interfaces_ethernet.py index ffb59c89e..f01de48a1 100755 --- a/src/conf_mode/interfaces_ethernet.py +++ b/src/conf_mode/interfaces_ethernet.py @@ -448,7 +448,7 @@ def apply(ethernet): call_dependents() vpp_iface_config = dict_search(f'vpp.settings.interface.{ifname}', ethernet) - if vpp_iface_config and is_systemd_service_running('vpp.service'): + if vpp_iface_config is not None and is_systemd_service_running('vpp.service'): vpp_api = VPPControl() # Enable ip4-dhcp-client-detect feature for DHCP-configured interfaces. @@ -460,14 +460,13 @@ def apply(ethernet): # If the interface is managed by the VPP DPDK driver, synchronize runtime # parameters between Linux and the corresponding VPP LCP interface - if vpp_iface_config.get('driver') == 'dpdk': - # Find LCP pair - lcp_pair = vpp_api.lcp_pair_find(vpp_name_hw=ifname) + # Find LCP pair + lcp_pair = vpp_api.lcp_pair_find(vpp_name_hw=ifname) + # Sync MTU to VPP LCP pair interface + if lcp_pair: lcp_name = lcp_pair.get('vpp_name_kernel') - # Sync MTU to VPP LCP pair interface - if lcp_name: - mtu = e.get_mtu() - vpp_api.set_iface_mtu(lcp_name, mtu) + mtu = e.get_mtu() + vpp_api.set_iface_mtu(lcp_name, mtu) return None |
