diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-08-26 15:46:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 15:46:49 +0100 |
| commit | 48db015c2ef1cea9cd9b2340e8a84d427a69d822 (patch) | |
| tree | 68637e6a48a3388ad1d3ee8acf0621cb1475edce /src/conf_mode | |
| parent | e75580086b70134ac46bfa1b3f57d841dea92918 (diff) | |
| parent | ae336bdf8a57e28c0bc544ee6b7d57ab048123df (diff) | |
| download | vyos-1x-48db015c2ef1cea9cd9b2340e8a84d427a69d822.tar.gz vyos-1x-48db015c2ef1cea9cd9b2340e8a84d427a69d822.zip | |
Merge pull request #4668 from natali-rs1985/T7670
T7670: VPP: Rely on all types of memory to verify memory resources
Diffstat (limited to 'src/conf_mode')
| -rwxr-xr-x | src/conf_mode/vpp.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/conf_mode/vpp.py b/src/conf_mode/vpp.py index d20f5800e..9517f85f3 100755 --- a/src/conf_mode/vpp.py +++ b/src/conf_mode/vpp.py @@ -57,6 +57,7 @@ from vyos.vpp.config_verify import ( verify_vpp_statseg_size, verify_vpp_interfaces_dpdk_num_queues, verify_routes_count, + verify_vpp_main_heap_size, ) from vyos.vpp.config_filter import iface_filter_eth from vyos.vpp.utils import EthtoolGDrvinfo @@ -235,7 +236,12 @@ def get_config(config=None): # add running config if effective_config: - config['effective'] = effective_config + default_values_effective = conf.get_config_defaults( + **effective_config.kwargs, recursive=True + ) + config['effective'] = config_dict_merge( + default_values_effective, effective_config + ) if 'settings' in config: if 'interface' in config['settings']: @@ -402,12 +408,12 @@ def verify(config): workers=workers, nat44_workers=config['settings']['nat44']['workers'] ) + verify_vpp_main_heap_size(config['settings']) + verify_vpp_statseg_size(config['settings']) + # Check if available memory is enough for current VPP config verify_vpp_memory(config) - if 'statseg' in config['settings']: - verify_vpp_statseg_size(config['settings']) - # ensure DPDK/XDP settings are properly configured for iface, iface_config in config['settings']['interface'].items(): # check if selected driver is supported, but only for new interfaces |
