mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-19 12:29:27 +01:00
Enabled new network resource and router by default (#3174)
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
parent
1cc88a2190
commit
3fce8485bb
@ -123,6 +123,7 @@ func (h *resourceHandler) createResource(w http.ResponseWriter, r *http.Request)
|
|||||||
|
|
||||||
resource.NetworkID = mux.Vars(r)["networkId"]
|
resource.NetworkID = mux.Vars(r)["networkId"]
|
||||||
resource.AccountID = accountID
|
resource.AccountID = accountID
|
||||||
|
resource.Enabled = true
|
||||||
resource, err = h.resourceManager.CreateResource(r.Context(), userID, resource)
|
resource, err = h.resourceManager.CreateResource(r.Context(), userID, resource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.WriteError(r.Context(), err, w)
|
util.WriteError(r.Context(), err, w)
|
||||||
|
@ -85,7 +85,7 @@ func (h *routersHandler) createRouter(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
router.NetworkID = networkID
|
router.NetworkID = networkID
|
||||||
router.AccountID = accountID
|
router.AccountID = accountID
|
||||||
|
router.Enabled = true
|
||||||
router, err = h.routersManager.CreateRouter(r.Context(), userID, router)
|
router, err = h.routersManager.CreateRouter(r.Context(), userID, router)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.WriteError(r.Context(), err, w)
|
util.WriteError(r.Context(), err, w)
|
||||||
|
Loading…
Reference in New Issue
Block a user