mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 17:17:00 +08:00
28 lines
369 B
Go
Executable File
28 lines
369 B
Go
Executable File
package config
|
|
|
|
var switcher *Switch
|
|
|
|
func Reload() {
|
|
switcher.Reload()
|
|
}
|
|
|
|
func GetAcl(name string) *ACL {
|
|
return switcher.GetACL(name)
|
|
}
|
|
|
|
func GetQos(name string) *Qos {
|
|
return switcher.GetQos(name)
|
|
}
|
|
|
|
func Update(obj *Switch) {
|
|
switcher = obj
|
|
}
|
|
|
|
func Get() *Switch {
|
|
return switcher
|
|
}
|
|
|
|
func GetNetwork(name string) *Network {
|
|
return switcher.GetNetwork(name)
|
|
}
|