Fix switch configuration setting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1be4ae25cc
commit
6472e5e412
|
@ -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)
|
||||
|
|
|
@ -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"]){
|
||||
|
|
Loading…
Reference in a new issue