diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-12-25 14:50:14 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-12-25 14:50:31 +0200 |
commit | dc66a3a82aab2ce41aa6ded38087e02b1eeb9493 (patch) | |
tree | 6d9eb5a917f613c6cc7862ae2316abeb181c7f12 /src/platform_cfg.cpp | |
parent | c25e1862e21807ee2d4f1f356e5a6970fd598edf (diff) |
add a way to change tw configuration
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/platform_cfg.cpp')
-rwxr-xr-x | src/platform_cfg.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/platform_cfg.cpp b/src/platform_cfg.cpp index a8f7997c..575c4c72 100755 --- a/src/platform_cfg.cpp +++ b/src/platform_cfg.cpp @@ -404,6 +404,11 @@ void operator >> (const YAML::Node& node, CPlatformYamlInfo & plat_info) { plat_info.m_platform.m_is_exists=true; } + if ( node.FindValue("tw") ){ + node["tw"] >> plat_info.m_tw; + } + + if ( node.FindValue("port_info") ) { const YAML::Node& mac_info = node["port_info"]; for(unsigned i=0;i<mac_info.size();i++) { @@ -510,4 +515,5 @@ void CPlatformYamlInfo::Dump(FILE *fd){ } m_memory.Dump(fd); m_platform.Dump(fd); + m_tw.Dump(fd); } |