diff options
author | imarom <imarom@cisco.com> | 2016-06-30 15:23:54 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-07-03 13:40:22 +0300 |
commit | d7c33685c85593e5b604f240272c000bdba3bc08 (patch) | |
tree | 2e056e0837262e13516f2a973acac1c88c39892a /src/sim | |
parent | 4242bc5ec3aa8816db9bdd57bd1f732da4305555 (diff) |
client config - refactor #2
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 ) { |