Fixes to gobind API

This commit is contained in:
Neil Alexander 2021-02-18 11:43:06 +00:00
parent e3378174d7
commit 39ba463902
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -81,11 +81,19 @@ func (m *DendriteMonolith) SetStaticPeer(uri string) error {
}
func (m *DendriteMonolith) DisconnectNonMulticastPeers() {
// TODO
for _, p := range m.PineconeRouter.Peers() {
if p.Zone == "static" {
_ = m.PineconeRouter.Disconnect(types.SwitchPortID(p.Port))
}
}
}
func (m *DendriteMonolith) DisconnectMulticastPeers() {
// TODO
for _, p := range m.PineconeRouter.Peers() {
if p.Zone != "static" {
_ = m.PineconeRouter.Disconnect(types.SwitchPortID(p.Port))
}
}
}
func (m *DendriteMonolith) DisconnectPort(port int) error {