diff options
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/trex_sim_stateful.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/sim/trex_sim_stateful.cpp b/src/sim/trex_sim_stateful.cpp index 93eda2fe..03538e58 100644 --- a/src/sim/trex_sim_stateful.cpp +++ b/src/sim/trex_sim_stateful.cpp @@ -168,7 +168,14 @@ int load_list_of_cap_files(CParserOption * op){ if (op->client_cfg_file != "") { fl.load_client_config_file(op->client_cfg_file); - CGlobalInfo::m_options.preview.set_mac_ip_mapping_enable(true); + CGlobalInfo::m_options.preview.set_client_cfg_enable(true); + } + + try { + CGlobalInfo::m_options.verify(); + } catch (const std::runtime_error &e) { + std::cout << "\n*** " << e.what() << "\n\n"; + exit(-1); } if ( op->preview.getVMode() >0 ) { |