mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
fea: remove qos download limit (#45)
* fea: remove qos download limit * fix: crash when qos config missing * fea: update inSpeed unit to Mbit
This commit is contained in:
@@ -206,6 +206,13 @@ func (s *Switch) LoadNetwork() {
|
||||
obj.Correct(s)
|
||||
s.Acl[obj.Name] = obj
|
||||
}
|
||||
if _, ok := s.Qos[obj.Name]; !ok {
|
||||
obj := &Qos{
|
||||
Name: obj.Name,
|
||||
}
|
||||
obj.Correct(s)
|
||||
s.Qos[obj.Name] = obj
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user