diff --git a/config.example.yml b/config.example.yml index 180dcfe..79b0361 100644 --- a/config.example.yml +++ b/config.example.yml @@ -45,7 +45,7 @@ switch: #cpu_port: # shared (default), per_vlan, multiple (not supported?) - stp_mode: shared + #stp_mode: shared lag: # static (default, static groups, discard), dynamic (pass to application) diff --git a/src/fm10k/FM10K.cpp b/src/fm10k/FM10K.cpp index 115b660..021fc85 100644 --- a/src/fm10k/FM10K.cpp +++ b/src/fm10k/FM10K.cpp @@ -766,7 +766,7 @@ bool FM10K::FM10K::initialize(const ryml::Tree& tree) const { }); } - if(!root["switch"].is_seed() && root["switch"].is_seq()){ + if(!root["switch"].is_seed() && root["switch"].is_map()){ if(!root["switch"]["attributes"].is_seed() && root["switch"]["attributes"].is_map()){ for(auto attr : root["switch"]["attributes"]){