diff options
Diffstat (limited to 'src/platform_cfg.cpp')
-rwxr-xr-x | src/platform_cfg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform_cfg.cpp b/src/platform_cfg.cpp index 92b4e7e9..8a2a9486 100755 --- a/src/platform_cfg.cpp +++ b/src/platform_cfg.cpp @@ -257,6 +257,8 @@ void operator >> (const YAML::Node& node, CMacYamlInfo & mac_info) { } if (! utl_yaml_read_uint16(node, "vlan", mac_info.m_vlan)) { mac_info.m_vlan = 0; + } else { + mac_info.m_vlan &= 0x0fff; // we only care about the vlan ID } } |