summaryrefslogtreecommitdiffstats
path: root/src/sim
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-06-30 15:23:54 +0300
committerimarom <imarom@cisco.com>2016-07-03 13:40:22 +0300
commitd7c33685c85593e5b604f240272c000bdba3bc08 (patch)
tree2e056e0837262e13516f2a973acac1c88c39892a /src/sim
parent4242bc5ec3aa8816db9bdd57bd1f732da4305555 (diff)
client config - refactor #2
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/trex_sim_stateful.cpp9
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 ) {