diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-01-01 02:55:59 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-01-01 03:00:29 +0200 |
commit | 0ab32112e9ab9d241e49a7e24ea1a5793c96270a (patch) | |
tree | 66a5b907ed5cd7e1e7224af812eb303da8d46e4e /src | |
parent | 7b8fd5a8e29202f21edfcb4f463ff920a0464ddb (diff) |
minor
Change-Id: Ibf02ca9bb5e2f2a6e6c0a498dc8ce889069acb56
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/platform_cfg.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform_cfg.cpp b/src/platform_cfg.cpp index 6aae450b..92b4e7e9 100755 --- a/src/platform_cfg.cpp +++ b/src/platform_cfg.cpp @@ -345,10 +345,11 @@ void operator >> (const YAML::Node& node, CPlatformYamlInfo & plat_info) { /* must have interfaces */ const YAML::Node& interfaces = node["interfaces"]; if ( interfaces.size() > TREX_MAX_PORTS ) { - printf("ERROR: Maximal number of interfaces is: %d, and you have specified: %d.\n", + printf("ERROR: Maximal number of interfaces is: %d, you have specified: %d.\n", TREX_MAX_PORTS, (int) interfaces.size()); exit(-1); } + for(unsigned i=0;i<interfaces.size();i++) { std::string fi; const YAML::Node & node = interfaces; |