mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 05:04:27 +08:00
NET-1355:peerUpdate for default host after new network created (#2974)
* peerUpdate for default host after new network created * remove mq check for peerUpdate
This commit is contained in:
parent
aeb76764c4
commit
6fa084006a
1 changed files with 4 additions and 0 deletions
|
@ -490,6 +490,10 @@ func createNetwork(w http.ResponseWriter, r *http.Request) {
|
|||
// make host remote access gateway
|
||||
logic.CreateIngressGateway(network.NetID, newNode.ID.String(), models.IngressRequest{})
|
||||
}
|
||||
// send peer updates
|
||||
if err = mq.PublishPeerUpdate(false); err != nil {
|
||||
logger.Log(1, "failed to publish peer update for default hosts after network is added")
|
||||
}
|
||||
}()
|
||||
|
||||
logger.Log(1, r.Header.Get("user"), "created network", network.NetID)
|
||||
|
|
Loading…
Add table
Reference in a new issue