diff --git a/controller/db/base_store.go b/controller/db/base_store.go index ae5781cfa..633861632 100644 --- a/controller/db/base_store.go +++ b/controller/db/base_store.go @@ -20,6 +20,10 @@ import ( "github.com/openziti/foundation/storage/boltz" ) +const ( + FieldName = "name" +) + type store interface { boltz.CrudStore } diff --git a/controller/db/migration.go b/controller/db/migration.go index 42c2b3a5a..be6ecf074 100644 --- a/controller/db/migration.go +++ b/controller/db/migration.go @@ -9,7 +9,7 @@ import ( "time" ) -const CurrentDbVersion = 2 +const CurrentDbVersion = 3 func (stores *stores) migrate(step *boltz.MigrationStep) int { if step.CurrentVersion > CurrentDbVersion { @@ -25,6 +25,11 @@ func (stores *stores) migrate(step *boltz.MigrationStep) int { stores.extractTerminators(step) } + if step.CurrentVersion < 3 { + stores.setNames(step, stores.service) + stores.setNames(step, stores.router) + } + if step.CurrentVersion <= CurrentDbVersion { return CurrentDbVersion } @@ -56,6 +61,22 @@ func (stores *stores) initCreatedAtUpdatedAt(step *boltz.MigrationStep, now time } } +func (stores *stores) setNames(step *boltz.MigrationStep, store boltz.CrudStore) { + ids, _, err := store.QueryIds(step.Ctx.Tx(), "true") + step.SetError(err) + for _, id := range ids { + entityBucket := store.GetEntityBucket(step.Ctx.Tx(), []byte(id)) + if entityBucket == nil { + step.SetError(errors.Errorf("could not get entity bucket for %v with id %v", store.GetSingularEntityType(), id)) + return + } + if name := entityBucket.GetString(FieldName); name == nil || len(*name) == 0 { + entityBucket.SetString(FieldName, string(id), nil) + step.SetError(entityBucket.GetError()) + } + } +} + const ( FieldServiceEgress = "egress" FieldServiceBinding = "binding" diff --git a/controller/db/router_store.go b/controller/db/router_store.go index b1e4964d9..fa4d1e352 100644 --- a/controller/db/router_store.go +++ b/controller/db/router_store.go @@ -32,16 +32,19 @@ const ( type Router struct { boltz.BaseExtEntity + Name string Fingerprint *string } func (entity *Router) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket) { entity.LoadBaseValues(bucket) + entity.Name = bucket.GetStringOrError(FieldName) entity.Fingerprint = bucket.GetString(FieldRouterFingerprint) } func (entity *Router) SetValues(ctx *boltz.PersistContext) { entity.SetBaseValues(ctx) + ctx.SetString(FieldName, entity.Name) ctx.SetStringP(FieldRouterFingerprint, entity.Fingerprint) } @@ -51,7 +54,9 @@ func (entity *Router) GetEntityType() string { type RouterStore interface { boltz.CrudStore + GetNameIndex() boltz.ReadIndex LoadOneById(tx *bbolt.Tx, id string) (*Router, error) + LoadOneByName(tx *bbolt.Tx, id string) (*Router, error) } func newRouterStore(stores *stores) *routerStoreImpl { @@ -71,11 +76,16 @@ func newRouterStore(stores *stores) *routerStoreImpl { type routerStoreImpl struct { baseStore + indexName boltz.ReadIndex terminatorsSymbol boltz.EntitySetSymbol } func (store *routerStoreImpl) initializeLocal() { store.AddExtEntitySymbols() + + symbolName := store.AddSymbol(FieldName, ast.NodeTypeString) + store.indexName = store.AddUniqueIndex(symbolName) + store.AddSymbol(FieldRouterFingerprint, ast.NodeTypeString) store.terminatorsSymbol = store.AddFkSetSymbol(EntityTypeTerminators, store.stores.terminator) } @@ -83,6 +93,10 @@ func (store *routerStoreImpl) initializeLocal() { func (store *routerStoreImpl) initializeLinked() { } +func (store *routerStoreImpl) GetNameIndex() boltz.ReadIndex { + return store.indexName +} + func (store *routerStoreImpl) NewStoreEntity() boltz.Entity { return &Router{} } @@ -95,6 +109,14 @@ func (store *routerStoreImpl) LoadOneById(tx *bbolt.Tx, id string) (*Router, err return entity, nil } +func (store *routerStoreImpl) LoadOneByName(tx *bbolt.Tx, name string) (*Router, error) { + id := store.indexName.Read(tx, []byte(name)) + if id != nil { + return store.LoadOneById(tx, string(id)) + } + return nil, nil +} + func (store *routerStoreImpl) DeleteById(ctx boltz.MutateContext, id string) error { terminatorIds := store.GetRelatedEntitiesIdList(ctx.Tx(), id, EntityTypeTerminators) for _, terminatorId := range terminatorIds { diff --git a/controller/db/router_store_test.go b/controller/db/router_store_test.go new file mode 100644 index 000000000..0f41e2137 --- /dev/null +++ b/controller/db/router_store_test.go @@ -0,0 +1,177 @@ +/* + Copyright NetFoundry, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +package db + +import ( + "fmt" + "github.com/google/uuid" + "testing" + "time" + + "github.com/google/go-cmp/cmp" + "github.com/openziti/foundation/storage/boltz" + "go.etcd.io/bbolt" +) + +func Test_RouterStore(t *testing.T) { + ctx := NewTestContext(t) + defer ctx.Cleanup() + ctx.Init() + + t.Run("test create invalid api routers", ctx.testCreateInvalidRouters) + t.Run("test create router", ctx.testCreateRouters) + t.Run("test load/query routers", ctx.testLoadQueryRouters) + t.Run("test update routers", ctx.testUpdateRouters) + t.Run("test delete routers", ctx.testDeleteRouters) +} + +func (ctx *TestContext) testCreateInvalidRouters(t *testing.T) { + ctx.Impl.NextTest(t) + defer ctx.cleanupAll() + + router := &Router{ + BaseExtEntity: boltz.BaseExtEntity{Id: uuid.New().String()}, + Name: uuid.New().String(), + } + + ctx.RequireCreate(router) + err := ctx.Create(router) + ctx.EqualError(err, fmt.Sprintf("an entity of type router already exists with id %v", router.Id)) + + router.Id = uuid.New().String() + err = ctx.Create(router) + ctx.EqualError(err, fmt.Sprintf("duplicate value '%v' in unique index on routers store", router.Name)) +} + +func (ctx *TestContext) testCreateRouters(t *testing.T) { + ctx.Impl.NextTest(t) + defer ctx.cleanupAll() + + router := &Router{ + BaseExtEntity: boltz.BaseExtEntity{Id: uuid.New().String()}, + Name: uuid.New().String(), + } + ctx.RequireCreate(router) + ctx.ValidateBaseline(router) +} + +type routerTestEntities struct { + router1 *Router + router2 *Router + terminator *Terminator + service *Service +} + +func (ctx *TestContext) createRouterTestEntities() *routerTestEntities { + router1 := ctx.requireNewRouter() + router2 := ctx.requireNewRouter() + service := ctx.requireNewService() + + terminator := &Terminator{ + BaseExtEntity: boltz.BaseExtEntity{ + Id: uuid.New().String(), + }, + Service: service.Id, + Router: router1.Id, + Binding: "transport", + Address: "tcp:localhost:22", + } + + ctx.RequireCreate(terminator) + + return &routerTestEntities{ + router1: router1, + router2: router2, + service: service, + terminator: terminator, + } +} + +func (ctx *TestContext) testLoadQueryRouters(t *testing.T) { + ctx.Impl.NextTest(t) + ctx.cleanupAll() + + entities := ctx.createRouterTestEntities() + + err := ctx.GetDb().View(func(tx *bbolt.Tx) error { + router, err := ctx.stores.Router.LoadOneById(tx, entities.router1.Id) + ctx.NoError(err) + ctx.NotNil(router) + ctx.EqualValues(entities.router1.Id, router.Id) + + router, err = ctx.stores.Router.LoadOneByName(tx, entities.router1.Name) + ctx.NoError(err) + ctx.NotNil(router) + ctx.EqualValues(entities.router1.Id, router.Id) + + query := fmt.Sprintf(`anyOf(terminators) = "%v"`, entities.terminator.Id) + ids, _, err := ctx.stores.Router.QueryIds(tx, query) + ctx.NoError(err) + ctx.EqualValues(1, len(ids)) + ctx.Equal(entities.router1.Id, ids[0]) + + return nil + }) + ctx.NoError(err) +} + +func (ctx *TestContext) testUpdateRouters(t *testing.T) { + ctx.Impl.NextTest(t) + ctx.cleanupAll() + + entities := ctx.createRouterTestEntities() + earlier := time.Now() + time.Sleep(time.Millisecond * 50) + + err := ctx.GetDb().Update(func(tx *bbolt.Tx) error { + original, err := ctx.stores.Router.LoadOneById(tx, entities.router1.Id) + ctx.NoError(err) + ctx.NotNil(original) + + router, err := ctx.stores.Router.LoadOneById(tx, entities.router1.Id) + ctx.NoError(err) + ctx.NotNil(router) + + tags := ctx.CreateTags() + now := time.Now() + router.Name = uuid.New().String() + router.UpdatedAt = earlier + router.CreatedAt = now + router.Tags = tags + + err = ctx.stores.Router.Update(boltz.NewMutateContext(tx), router, nil) + ctx.NoError(err) + loaded, err := ctx.stores.Router.LoadOneById(tx, entities.router1.Id) + ctx.NoError(err) + ctx.NotNil(loaded) + ctx.EqualValues(original.CreatedAt, loaded.CreatedAt) + ctx.True(loaded.UpdatedAt.Equal(now) || loaded.UpdatedAt.After(now)) + router.CreatedAt = loaded.CreatedAt + router.UpdatedAt = loaded.UpdatedAt + ctx.True(cmp.Equal(router, loaded), cmp.Diff(router, loaded)) + return nil + }) + ctx.NoError(err) +} + +func (ctx *TestContext) testDeleteRouters(t *testing.T) { + ctx.Impl.NextTest(t) + ctx.cleanupAll() + entities := ctx.createRouterTestEntities() + ctx.RequireDelete(entities.router1) + ctx.RequireDelete(entities.router2) +} diff --git a/controller/db/service_store.go b/controller/db/service_store.go index 8e80b1f79..4848f81ee 100644 --- a/controller/db/service_store.go +++ b/controller/db/service_store.go @@ -31,16 +31,19 @@ const ( type Service struct { boltz.BaseExtEntity + Name string TerminatorStrategy string } func (entity *Service) LoadValues(_ boltz.CrudStore, bucket *boltz.TypedBucket) { entity.LoadBaseValues(bucket) + entity.Name = bucket.GetStringOrError(FieldName) entity.TerminatorStrategy = bucket.GetStringWithDefault(FieldServiceTerminatorStrategy, "") } func (entity *Service) SetValues(ctx *boltz.PersistContext) { entity.SetBaseValues(ctx) + ctx.SetString(FieldName, entity.Name) if entity.TerminatorStrategy == "" { entity.TerminatorStrategy = xt_smartrouting.Name } @@ -69,7 +72,9 @@ func (entity *Service) GetEntityType() string { type ServiceStore interface { store + GetNameIndex() boltz.ReadIndex LoadOneById(tx *bbolt.Tx, id string) (*Service, error) + LoadOneByName(tx *bbolt.Tx, name string) (*Service, error) } func newServiceStore(stores *stores) *serviceStoreImpl { @@ -89,11 +94,16 @@ func newServiceStore(stores *stores) *serviceStoreImpl { type serviceStoreImpl struct { baseStore + indexName boltz.ReadIndex terminatorsSymbol boltz.EntitySetSymbol } func (store *serviceStoreImpl) initializeLocal() { store.AddExtEntitySymbols() + + symbolName := store.AddSymbol(FieldName, ast.NodeTypeString) + store.indexName = store.AddUniqueIndex(symbolName) + store.AddSymbol(FieldServiceTerminatorStrategy, ast.NodeTypeString) store.terminatorsSymbol = store.AddFkSetSymbol(EntityTypeTerminators, store.stores.terminator) } @@ -101,6 +111,10 @@ func (store *serviceStoreImpl) initializeLocal() { func (store *serviceStoreImpl) initializeLinked() { } +func (store *serviceStoreImpl) GetNameIndex() boltz.ReadIndex { + return store.indexName +} + func (store *serviceStoreImpl) NewStoreEntity() boltz.Entity { return &Service{} } @@ -113,6 +127,14 @@ func (store *serviceStoreImpl) LoadOneById(tx *bbolt.Tx, id string) (*Service, e return entity, nil } +func (store *serviceStoreImpl) LoadOneByName(tx *bbolt.Tx, name string) (*Service, error) { + id := store.indexName.Read(tx, []byte(name)) + if id != nil { + return store.LoadOneById(tx, string(id)) + } + return nil, nil +} + func (store *serviceStoreImpl) DeleteById(ctx boltz.MutateContext, id string) error { terminatorIds := store.GetRelatedEntitiesIdList(ctx.Tx(), id, EntityTypeTerminators) for _, terminatorId := range terminatorIds { diff --git a/controller/db/service_store_test.go b/controller/db/service_store_test.go new file mode 100644 index 000000000..17f96ecd5 --- /dev/null +++ b/controller/db/service_store_test.go @@ -0,0 +1,183 @@ +/* + Copyright NetFoundry, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +package db + +import ( + "fmt" + "github.com/google/uuid" + "testing" + "time" + + "github.com/google/go-cmp/cmp" + "github.com/openziti/foundation/storage/boltz" + "go.etcd.io/bbolt" +) + +func Test_ServiceStore(t *testing.T) { + ctx := NewTestContext(t) + defer ctx.Cleanup() + ctx.Init() + + t.Run("test create invalid api services", ctx.testCreateInvalidServices) + t.Run("test create service", ctx.testCreateServices) + t.Run("test load/query services", ctx.testLoadQueryServices) + t.Run("test update services", ctx.testUpdateServices) + t.Run("test delete services", ctx.testDeleteServices) +} + +func (ctx *TestContext) testCreateInvalidServices(t *testing.T) { + ctx.Impl.NextTest(t) + defer ctx.cleanupAll() + + service := &Service{ + BaseExtEntity: boltz.BaseExtEntity{Id: uuid.New().String()}, + Name: uuid.New().String(), + } + + ctx.RequireCreate(service) + err := ctx.Create(service) + ctx.EqualError(err, fmt.Sprintf("an entity of type service already exists with id %v", service.Id)) + + service.Id = uuid.New().String() + err = ctx.Create(service) + ctx.EqualError(err, fmt.Sprintf("duplicate value '%v' in unique index on services store", service.Name)) + + service.Id = uuid.New().String() + service.Name = uuid.New().String() + service.TerminatorStrategy = uuid.New().String() + err = ctx.Create(service) + ctx.EqualError(err, fmt.Sprintf("terminatorStrategy with name %v not found", service.TerminatorStrategy)) +} + +func (ctx *TestContext) testCreateServices(t *testing.T) { + ctx.Impl.NextTest(t) + defer ctx.cleanupAll() + + service := &Service{ + BaseExtEntity: boltz.BaseExtEntity{Id: uuid.New().String()}, + Name: uuid.New().String(), + } + ctx.RequireCreate(service) + ctx.ValidateBaseline(service) +} + +type serviceTestEntities struct { + service1 *Service + service2 *Service + terminator *Terminator + router *Router +} + +func (ctx *TestContext) createServiceTestEntities() *serviceTestEntities { + service1 := ctx.requireNewService() + service2 := ctx.requireNewService() + router := ctx.requireNewRouter() + + terminator := &Terminator{ + BaseExtEntity: boltz.BaseExtEntity{ + Id: uuid.New().String(), + }, + Service: service1.Id, + Router: router.Id, + Binding: "transport", + Address: "tcp:localhost:22", + } + + ctx.RequireCreate(terminator) + + return &serviceTestEntities{ + service1: service1, + service2: service2, + router: router, + terminator: terminator, + } +} + +func (ctx *TestContext) testLoadQueryServices(t *testing.T) { + ctx.Impl.NextTest(t) + ctx.cleanupAll() + + entities := ctx.createServiceTestEntities() + + err := ctx.GetDb().View(func(tx *bbolt.Tx) error { + service, err := ctx.stores.Service.LoadOneById(tx, entities.service1.Id) + ctx.NoError(err) + ctx.NotNil(service) + ctx.EqualValues(entities.service1.Id, service.Id) + + service, err = ctx.stores.Service.LoadOneByName(tx, entities.service1.Name) + ctx.NoError(err) + ctx.NotNil(service) + ctx.EqualValues(entities.service1.Id, service.Id) + + query := fmt.Sprintf(`anyOf(terminators) = "%v"`, entities.terminator.Id) + ids, _, err := ctx.stores.Service.QueryIds(tx, query) + ctx.NoError(err) + ctx.EqualValues(1, len(ids)) + ctx.Equal(entities.service1.Id, ids[0]) + + return nil + }) + ctx.NoError(err) +} + +func (ctx *TestContext) testUpdateServices(t *testing.T) { + ctx.Impl.NextTest(t) + ctx.cleanupAll() + entities := ctx.createServiceTestEntities() + earlier := time.Now() + time.Sleep(time.Millisecond * 50) + + err := ctx.GetDb().Update(func(tx *bbolt.Tx) error { + original, err := ctx.stores.Service.LoadOneById(tx, entities.service1.Id) + ctx.NoError(err) + ctx.NotNil(original) + + service, err := ctx.stores.Service.LoadOneById(tx, entities.service1.Id) + ctx.NoError(err) + ctx.NotNil(service) + + tags := ctx.CreateTags() + now := time.Now() + service.Name = uuid.New().String() + service.UpdatedAt = earlier + service.CreatedAt = now + service.Tags = tags + + err = ctx.stores.Service.Update(boltz.NewMutateContext(tx), service, nil) + ctx.NoError(err) + loaded, err := ctx.stores.Service.LoadOneById(tx, entities.service1.Id) + ctx.NoError(err) + ctx.NotNil(loaded) + ctx.EqualValues(original.CreatedAt, loaded.CreatedAt) + ctx.True(loaded.UpdatedAt.Equal(now) || loaded.UpdatedAt.After(now)) + service.CreatedAt = loaded.CreatedAt + service.UpdatedAt = loaded.UpdatedAt + ctx.True(cmp.Equal(service, loaded), cmp.Diff(service, loaded)) + return nil + }) + ctx.NoError(err) +} + +func (ctx *TestContext) testDeleteServices(t *testing.T) { + ctx.Impl.NextTest(t) + + ctx.cleanupAll() + entities := ctx.createServiceTestEntities() + ctx.RequireDelete(entities.service1) + ctx.RequireDelete(entities.service2) +} diff --git a/controller/db/testing.go b/controller/db/testing.go index 8d9bc2d2b..f59e44fe9 100644 --- a/controller/db/testing.go +++ b/controller/db/testing.go @@ -3,12 +3,16 @@ package db import ( "github.com/google/uuid" "github.com/michaelquigley/pfxlog" + "github.com/openziti/fabric/controller/xt" + "github.com/openziti/fabric/controller/xt_smartrouting" "github.com/openziti/foundation/storage/boltz" "go.etcd.io/bbolt" "testing" ) func NewTestContext(t *testing.T) *TestContext { + xt.GlobalRegistry().RegisterFactory(xt_smartrouting.NewFactory()) + context := &TestContext{ BaseTestContext: *boltz.NewTestContext(t), } @@ -45,6 +49,7 @@ func (ctx *TestContext) Init() { func (ctx *TestContext) requireNewService() *Service { entity := &Service{ BaseExtEntity: boltz.BaseExtEntity{Id: uuid.New().String()}, + Name: uuid.New().String(), } ctx.RequireCreate(entity) return entity @@ -53,6 +58,7 @@ func (ctx *TestContext) requireNewService() *Service { func (ctx *TestContext) requireNewRouter() *Router { entity := &Router{ BaseExtEntity: boltz.BaseExtEntity{Id: uuid.New().String()}, + Name: uuid.New().String(), } ctx.RequireCreate(entity) return entity diff --git a/controller/handler_mgmt/create_router.go b/controller/handler_mgmt/create_router.go index e0b04aee6..67df0b8f2 100644 --- a/controller/handler_mgmt/create_router.go +++ b/controller/handler_mgmt/create_router.go @@ -42,7 +42,7 @@ func (h *createRouterHandler) HandleReceive(msg *channel2.Message, ch channel2.C create := &mgmt_pb.CreateRouterRequest{} if err := proto.Unmarshal(msg.Body, create); err == nil { - r := network.NewRouter(create.Router.Id, create.Router.Fingerprint) + r := network.NewRouter(create.Router.Id, create.Router.Name, create.Router.Fingerprint) if err := h.network.CreateRouter(r); err == nil { log.Infof("created router [r/%s] with fingerprint [%s]", r.Id, create.Router.Fingerprint) handler_common.SendSuccess(msg, ch, "") diff --git a/controller/handler_mgmt/create_service.go b/controller/handler_mgmt/create_service.go index d8aa8da6e..79fd0c145 100644 --- a/controller/handler_mgmt/create_service.go +++ b/controller/handler_mgmt/create_service.go @@ -41,8 +41,12 @@ func (h *createServiceHandler) HandleReceive(msg *channel2.Message, ch channel2. cs := &mgmt_pb.CreateServiceRequest{} err := proto.Unmarshal(msg.Body, cs) if err == nil { + if cs.Service.Name == "" { + cs.Service.Name = cs.Service.Id + } service := &network.Service{ BaseEntity: models.BaseEntity{Id: cs.Service.Id}, + Name: cs.Service.Name, TerminatorStrategy: cs.Service.TerminatorStrategy, } for _, terminator := range cs.Service.Terminators { diff --git a/controller/handler_mgmt/get_service.go b/controller/handler_mgmt/get_service.go index c32515c2f..c941b85fe 100644 --- a/controller/handler_mgmt/get_service.go +++ b/controller/handler_mgmt/get_service.go @@ -72,6 +72,7 @@ func toApiService(s *network.Service) *mgmt_pb.Service { return &mgmt_pb.Service{ Id: s.Id, + Name: s.Name, TerminatorStrategy: s.TerminatorStrategy, Terminators: terminators, } diff --git a/controller/handler_mgmt/get_terminator.go b/controller/handler_mgmt/get_terminator.go index 46fed9646..6ff068242 100644 --- a/controller/handler_mgmt/get_terminator.go +++ b/controller/handler_mgmt/get_terminator.go @@ -56,8 +56,9 @@ func (h *getTerminatorHandler) HandleReceive(msg *channel2.Message, ch channel2. if err == nil { responseMsg := channel2.NewMessage(int32(mgmt_pb.ContentType_GetTerminatorResponseType), body) responseMsg.ReplyTo(msg) - ch.Send(responseMsg) - + if err = ch.Send(responseMsg); err != nil { + pfxlog.ContextLogger(ch.Label()).Errorf("unexpected error (%s)", err) + } } else { pfxlog.ContextLogger(ch.Label()).Errorf("unexpected error (%s)", err) } diff --git a/controller/handler_mgmt/list_routers.go b/controller/handler_mgmt/list_routers.go index dda6dcd2e..f5d389db4 100644 --- a/controller/handler_mgmt/list_routers.go +++ b/controller/handler_mgmt/list_routers.go @@ -58,6 +58,7 @@ func (h *listRoutersHandler) HandleReceive(msg *channel2.Message, ch channel2.Ch responseR := &mgmt_pb.Router{ Id: router.Id, + Name: router.Name, Fingerprint: stringz.OrEmpty(router.Fingerprint), } diff --git a/controller/network/link_controller_test.go b/controller/network/link_controller_test.go index a439dec41..1bc205049 100644 --- a/controller/network/link_controller_test.go +++ b/controller/network/link_controller_test.go @@ -25,8 +25,8 @@ import ( func TestLifecycle(t *testing.T) { linkController := newLinkController() - r0 := NewRouter("r0", "") - r1 := NewRouter("r1", "") + r0 := NewRouter("r0", "", "") + r1 := NewRouter("r1", "", "") l0 := &Link{ Id: &identity.TokenId{Token: "l0"}, Src: r0, diff --git a/controller/network/router.go b/controller/network/router.go index 082213e95..e1ddeb5e5 100644 --- a/controller/network/router.go +++ b/controller/network/router.go @@ -30,6 +30,7 @@ import ( type Router struct { models.BaseEntity + Name string Fingerprint *string AdvertisedListener string Control channel2.Channel @@ -42,6 +43,7 @@ func (entity *Router) fillFrom(_ Controller, _ *bbolt.Tx, boltEntity boltz.Entit if !ok { return errors.Errorf("unexpected type %v when filling model router", reflect.TypeOf(boltEntity)) } + entity.Name = boltRouter.Name entity.Fingerprint = boltRouter.Fingerprint entity.FillCommon(boltRouter) return nil @@ -50,13 +52,18 @@ func (entity *Router) fillFrom(_ Controller, _ *bbolt.Tx, boltEntity boltz.Entit func (entity *Router) toBolt() *db.Router { return &db.Router{ BaseExtEntity: *boltz.NewExtEntity(entity.Id, entity.Tags), + Name: entity.Name, Fingerprint: entity.Fingerprint, } } -func NewRouter(id, fingerprint string) *Router { +func NewRouter(id, name, fingerprint string) *Router { + if name == "" { + name = id + } return &Router{ BaseEntity: models.BaseEntity{Id: id}, + Name: name, Fingerprint: &fingerprint, } } diff --git a/controller/network/service.go b/controller/network/service.go index 91a18049b..020fd04f5 100644 --- a/controller/network/service.go +++ b/controller/network/service.go @@ -29,6 +29,7 @@ import ( type Service struct { models.BaseEntity + Name string TerminatorStrategy string Terminators []*Terminator } @@ -38,6 +39,7 @@ func (entity *Service) fillFrom(ctrl Controller, tx *bbolt.Tx, boltEntity boltz. if !ok { return errors.Errorf("unexpected type %v when filling model service", reflect.TypeOf(boltEntity)) } + entity.Name = boltService.Name entity.TerminatorStrategy = boltService.TerminatorStrategy entity.FillCommon(boltService) @@ -54,6 +56,7 @@ func (entity *Service) fillFrom(ctrl Controller, tx *bbolt.Tx, boltEntity boltz. func (entity *Service) toBolt() *db.Service { return &db.Service{ BaseExtEntity: *boltz.NewExtEntity(entity.Id, entity.Tags), + Name: entity.Name, TerminatorStrategy: entity.TerminatorStrategy, } } diff --git a/pb/mgmt_pb/mgmt.pb.go b/pb/mgmt_pb/mgmt.pb.go index 3c580e4b9..3cda6ec75 100644 --- a/pb/mgmt_pb/mgmt.pb.go +++ b/pb/mgmt_pb/mgmt.pb.go @@ -274,8 +274,9 @@ func (TraceFilterType) EnumDescriptor() ([]byte, []int) { type Service struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TerminatorStrategy string `protobuf:"bytes,2,opt,name=terminatorStrategy,proto3" json:"terminatorStrategy,omitempty"` - Terminators []*Terminator `protobuf:"bytes,3,rep,name=terminators,proto3" json:"terminators,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TerminatorStrategy string `protobuf:"bytes,3,opt,name=terminatorStrategy,proto3" json:"terminatorStrategy,omitempty"` + Terminators []*Terminator `protobuf:"bytes,4,rep,name=terminators,proto3" json:"terminators,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -313,6 +314,13 @@ func (m *Service) GetId() string { return "" } +func (m *Service) GetName() string { + if m != nil { + return m.Name + } + return "" +} + func (m *Service) GetTerminatorStrategy() string { if m != nil { return m.TerminatorStrategy @@ -956,9 +964,10 @@ func (m *SetTerminatorCostRequest) GetUpdateMask() int32 { type Router struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` - ListenerAddress string `protobuf:"bytes,3,opt,name=listenerAddress,proto3" json:"listenerAddress,omitempty"` - Connected bool `protobuf:"varint,4,opt,name=connected,proto3" json:"connected,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Fingerprint string `protobuf:"bytes,3,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` + ListenerAddress string `protobuf:"bytes,4,opt,name=listenerAddress,proto3" json:"listenerAddress,omitempty"` + Connected bool `protobuf:"varint,5,opt,name=connected,proto3" json:"connected,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -996,6 +1005,13 @@ func (m *Router) GetId() string { return "" } +func (m *Router) GetName() string { + if m != nil { + return m.Name + } + return "" +} + func (m *Router) GetFingerprint() string { if m != nil { return m.Fingerprint @@ -2323,129 +2339,130 @@ func init() { } var fileDescriptor_24cf82780fd24e73 = []byte{ - // 1982 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x1c, 0x49, - 0x11, 0xa6, 0x67, 0x46, 0x9a, 0x51, 0xea, 0x35, 0x2e, 0xc9, 0xd6, 0xec, 0xec, 0xc3, 0xde, 0x06, - 0x02, 0x23, 0xc3, 0x6c, 0x60, 0xf3, 0xf0, 0x2e, 0x21, 0xd8, 0x5d, 0x8d, 0xb4, 0xe1, 0x40, 0xee, - 0xf0, 0xb6, 0xe4, 0x0d, 0x82, 0x0b, 0xd1, 0xea, 0x2e, 0x8d, 0x3a, 0x3c, 0xd3, 0x3d, 0x74, 0xf7, - 0x78, 0x11, 0x27, 0x82, 0x7f, 0xc0, 0x12, 0x40, 0xf0, 0x3a, 0xf1, 0xba, 0x01, 0x07, 0x0e, 0x0b, - 0xcb, 0x63, 0x59, 0x9e, 0x67, 0x0e, 0x04, 0x37, 0xfe, 0x0a, 0x59, 0x59, 0xd5, 0xd5, 0xd5, 0x3d, - 0x2d, 0xcb, 0xf6, 0xad, 0x2b, 0xbf, 0xcc, 0xac, 0xac, 0xcc, 0xaa, 0x7c, 0x34, 0xc0, 0x64, 0x34, - 0xc9, 0x06, 0xd3, 0x24, 0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 0x6e, 0xb4, 0xb4, 0xe3, 0x82, 0xdb, 0xff, 0xaa, 0xcc, - 0x47, 0x9a, 0x57, 0x85, 0xf7, 0xe3, 0xd0, 0x96, 0xc9, 0x39, 0xbf, 0xf5, 0xeb, 0xda, 0xcb, 0x92, - 0xd5, 0xcd, 0x71, 0xfb, 0x0b, 0xb0, 0x21, 0x6f, 0xbb, 0x02, 0xd4, 0x76, 0x1f, 0x83, 0x45, 0xc9, - 0xa1, 0x2e, 0xc7, 0x9c, 0x02, 0x05, 0x63, 0x92, 0xd8, 0x90, 0xb7, 0xbb, 0x2c, 0x6f, 0x96, 0x0b, - 0xab, 0x5c, 0x2e, 0xec, 0x77, 0x2d, 0x68, 0x1d, 0x84, 0xd1, 0x83, 0x39, 0x1f, 0x63, 0x26, 0x4e, - 0x13, 0x5f, 0xf9, 0x56, 0x7c, 0x0a, 0x4a, 0xa0, 0x62, 0x8d, 0x94, 0x40, 0xfa, 0x41, 0x84, 0x9c, - 0xab, 0x4a, 0x23, 0x17, 0x8c, 0x41, 0x2b, 0x88, 0xdf, 0x8e, 0x28, 0xa4, 0x1d, 0x97, 0xbe, 0x05, - 0xcd, 0x17, 0xf7, 0x60, 0x91, 0xc2, 0x4c, 0xdf, 0x74, 0x85, 0x12, 0xff, 0x00, 0x45, 0x22, 0xff, - 0x0c, 0xab, 0x87, 0x75, 0xbd, 0xe9, 0x1a, 0x14, 0x81, 0xe3, 0x26, 0x39, 0xde, 0x91, 0x78, 0x41, - 0xb1, 0x19, 0x74, 0x85, 0xbf, 0x85, 0xf5, 0x79, 0x64, 0xec, 0xdb, 0x70, 0xc9, 0xa0, 0xa9, 0x08, - 0x7c, 0x18, 0x16, 0xc6, 0x82, 0xa0, 0xfc, 0xbf, 0xaa, 0xdd, 0x27, 0xd8, 0x5c, 0x89, 0x89, 0x6c, - 0x89, 0xef, 0x49, 0x50, 0xcc, 0x97, 0x74, 0x05, 0x16, 0x05, 0xac, 0x1d, 0xa7, 0x56, 0xfa, 0x3c, - 0x8d, 0xe2, 0x3c, 0x86, 0x86, 0x21, 0x1e, 0xf9, 0x31, 0x34, 0x90, 0x97, 0x1a, 0x85, 0x97, 0xec, - 0x5b, 0xd0, 0xde, 0x0d, 0x13, 0x7f, 0x16, 0x66, 0x02, 0x9e, 0x7a, 0xd9, 0x29, 0x99, 0xbc, 0xe4, - 0xd2, 0xb7, 0x70, 0xb7, 0x3c, 0x47, 0x83, 0x88, 0xca, 0xf0, 0x9f, 0x52, 0x33, 0x93, 0xa6, 0x61, - 0x1c, 0xcd, 0x05, 0x11, 0x23, 0xef, 0x8f, 0x43, 0x1e, 0x65, 0xba, 0x8b, 0xd0, 0xeb, 0x72, 0xf1, - 0x68, 0x56, 0x5b, 0x8c, 0x6a, 0x0a, 0x69, 0xd5, 0xa4, 0x10, 0x2c, 0x25, 0xbe, 0x34, 0x97, 0x62, - 0x6d, 0x96, 0x12, 0x75, 0x0c, 0x37, 0x67, 0xb0, 0x2f, 0xe7, 0xc5, 0x9a, 0x0c, 0xd5, 0xf1, 0xd2, - 0x65, 0x39, 0x27, 0x9b, 0x65, 0x59, 0xd2, 0x6a, 0xca, 0x32, 0x01, 0xae, 0xe6, 0xb0, 0xf7, 0x8b, - 0x92, 0x2a, 0x21, 0xb3, 0x3e, 0x12, 0xc5, 0xac, 0x8f, 0x8a, 0x20, 0xee, 0x73, 0x14, 0xbf, 0xad, - 0x02, 0x20, 0x3e, 0xed, 0xdf, 0x5a, 0xb0, 0x89, 0x8d, 0x1d, 0xf7, 0x26, 0x77, 0x79, 0x96, 0x84, - 0xbe, 0x7e, 0xf0, 0x6f, 0x40, 0x67, 0xe2, 0x65, 0xfe, 0x69, 0xf1, 0x88, 0x6f, 0x14, 0xe6, 0xd4, - 0x08, 0x0c, 0xe4, 0xf2, 0xae, 0x94, 0x71, 0xb5, 0x70, 0xff, 0x10, 0x56, 0x4b, 0x90, 0x30, 0x11, - 0x53, 0x22, 0x96, 0xe7, 0x11, 0xff, 0x7a, 0x6e,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x58, 0xaf, 0x14, 0x2c, 0x71, 0xec, 0xbd, 0x2f, 0xef, 0x1e, - 0xdc, 0x1f, 0xee, 0xa1, 0x6e, 0x5c, 0xdc, 0x71, 0xe4, 0xc2, 0x3a, 0x5e, 0xa4, 0xae, 0xea, 0xd6, - 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xb4, 0x22, 0x38, 0x59, 0x49, 0x17, 0x00, 0x00, + // 1985 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x58, 0x4b, 0x73, 0x24, 0x47, + 0x11, 0xa6, 0x67, 0x46, 0x33, 0xa3, 0xd4, 0x6b, 0xb6, 0xa4, 0x5d, 0x8d, 0xc7, 0x8f, 0x5d, 0x37, + 0x10, 0x2c, 0x5a, 0x18, 0x07, 0xbb, 0x3c, 0xd6, 0x26, 0x04, 0xb6, 0x35, 0x92, 0x63, 0x03, 0x6d, + 0xc7, 0xba, 0xa5, 0x75, 0x10, 0x5c, 0x88, 0x56, 0x4f, 0x69, 0xd4, 0xb1, 0x33, 0xdd, 0x43, 0x77, + 0xcf, 0x1a, 0xf1, 0x2f, 0x30, 0x60, 0x82, 0xd7, 0x89, 0xd7, 0x0d, 0x38, 0x70, 0x30, 0x98, 0x87, + 0x31, 0xcf, 0x33, 0x07, 0x82, 0x1b, 0x7f, 0x85, 0xac, 0xac, 0xea, 0xea, 0xea, 0x9e, 0xd6, 0x4a, + 0xda, 0x5b, 0x57, 0x7e, 0x99, 0x59, 0x59, 0x99, 0x55, 0xf9, 0x68, 0x80, 0xc9, 0x68, 0x92, 0xf6, + 0xa7, 0x71, 0x94, 0x46, 0xac, 0x25, 0xbe, 0xbf, 0x3e, 0x3d, 0xea, 0x5d, 0x1f, 0x45, 0xd1, 0x68, + 0xcc, 0x5f, 0x22, 0xf2, 0xd1, 0xec, 0xf8, 0xa5, 0x34, 0x98, 0xf0, 0x24, 0xf5, 0x26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 0xc9, 0xbe, 0x03, 0xad, 0x9d, 0x20, 0xf6, 0x67, 0x41, 0x2a, 0xe0, + 0xa9, 0x97, 0x9e, 0x90, 0xc9, 0x78, 0xed, 0xc5, 0xb7, 0x70, 0xb7, 0x3c, 0x47, 0x8d, 0x88, 0xca, + 0xf0, 0x9f, 0x52, 0xd3, 0x93, 0x24, 0x41, 0x14, 0xce, 0x05, 0x11, 0x23, 0xef, 0x8f, 0x03, 0x1e, + 0xa6, 0xba, 0xb3, 0xd0, 0xeb, 0x62, 0x41, 0xa9, 0x97, 0xdb, 0x8e, 0x72, 0x5a, 0x69, 0x54, 0xa4, + 0x15, 0x2c, 0x2f, 0xbe, 0x34, 0x97, 0x62, 0x6d, 0x96, 0x17, 0x75, 0x0c, 0x37, 0x63, 0xb0, 0xaf, + 0x66, 0x05, 0x9c, 0x0c, 0xd5, 0xf1, 0xd2, 0xa5, 0x3a, 0x23, 0x9b, 0xa5, 0x5a, 0xd2, 0x2a, 0x4a, + 0x35, 0x01, 0xae, 0xe6, 0xb0, 0xf7, 0xf2, 0x32, 0x2b, 0x21, 0xb3, 0x66, 0x12, 0xc5, 0xac, 0x99, + 0x8a, 0x20, 0xee, 0x73, 0x18, 0xbd, 0xad, 0x02, 0x20, 0x3e, 0xed, 0xdf, 0x5a, 0xb0, 0x81, 0xcd, + 0x1e, 0xf7, 0x26, 0xf7, 0x79, 0x1a, 0x07, 0xbe, 0x7e, 0xf0, 0x6f, 0x40, 0x7b, 0xe2, 0xa5, 0xfe, + 0x49, 0xfe, 0x88, 0x6f, 0xe5, 0xe6, 0x54, 0x08, 0xf4, 0xe5, 0xf2, 0xbe, 0x94, 0x71, 0xb5, 0x70, + 0xef, 0x00, 0x56, 0x0a, 0x90, 0x30, 0x51, 0xa4, 0x34, 0x97, 0x8f, 0xf8, 0x37, 0x33, 0x13, 0x35, + 0x81, 0x7d, 0x0c, 0x56, 0x92, 0x68, 0x16, 0x63, 0x44, 0x06, 0x92, 0x43, 0x06, 0xb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xb8, 0xb8, 0xe7, 0xc8, 0x85, 0x75, 0xd4, 0xa4, + 0xae, 0xea, 0xce, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xbe, 0x41, 0x46, 0x71, 0x17, 0x00, + 0x00, } diff --git a/pb/mgmt_pb/mgmt.proto b/pb/mgmt_pb/mgmt.proto index 01a9a7012..a7a457369 100644 --- a/pb/mgmt_pb/mgmt.proto +++ b/pb/mgmt_pb/mgmt.proto @@ -80,8 +80,9 @@ enum TerminatorChangeMask { message Service { string id = 1; - string terminatorStrategy = 2; - repeated Terminator terminators = 3; + string name = 2; + string terminatorStrategy = 3; + repeated Terminator terminators = 4; } message Terminator { @@ -157,9 +158,10 @@ message SetTerminatorCostRequest { message Router { string id = 1; - string fingerprint = 2; - string listenerAddress = 3; - bool connected = 4; + string name = 2; + string fingerprint = 3; + string listenerAddress = 4; + bool connected = 5; } message ListRoutersRequest {