Fix switch configuration setting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2021-11-16 16:26:33 +01:00
parent 1be4ae25cc
commit 6472e5e412
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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"]){