Skip to content

Commit

Permalink
update vendor service defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
davnerson-dn committed Mar 17, 2024
1 parent 6220356 commit be4ea3a
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions topo/node/drivenets/drivenets.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (n *Node) cdnosCreate(ctx context.Context) error {

func (n *Node) Status(ctx context.Context) (node.Status, error) {
if n.Impl.Proto.Model != modelCdnos {
return node.StatusUnknown, fmt.Errorf("invalid model specified.")
return node.StatusUnknown, fmt.Errorf("invalid model specified")
}
return n.cdnosStatus(ctx)
}
Expand Down Expand Up @@ -180,7 +180,7 @@ func (n *Node) cdnosStatus(ctx context.Context) (node.Status, error) {

func (n *Node) Delete(ctx context.Context) error {
if n.Impl.Proto.Model != modelCdnos {
return fmt.Errorf("Unknown model")
return fmt.Errorf("unknown model")
}
return n.cdnosDelete(ctx)
}
Expand Down Expand Up @@ -255,21 +255,13 @@ func cdnosDefaults(pb *tpb.Node) *tpb.Node {
pb.Services = map[uint32]*tpb.Service{
// https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=gnmi
9339: {
Name: "gnmi",
Names: []string{"gnmi", "gnoi", "gnsi"},
Inside: 9339,
},
9340: {
Name: "gribi",
Names: []string{"gribi"},
Inside: 9340,
},
9341: {
Name: "gnsi",
Inside: 9339,
},
9342: {
Name: "gnoi",
Inside: 9339,
},
}
}
return pb
Expand Down

0 comments on commit be4ea3a

Please sign in to comment.