proto/infra -> dc/proto
This cleans up proto/!
Change-Id: I3e280c16deef7ad0b01e6e409062831581ec863e
diff --git a/dc/topo/state/state.go b/dc/topo/state/state.go
index 116a55a..e264827 100644
--- a/dc/topo/state/state.go
+++ b/dc/topo/state/state.go
@@ -7,24 +7,24 @@
"google.golang.org/grpc"
+ dpb "code.hackerspace.pl/hscloud/dc/proto"
"code.hackerspace.pl/hscloud/go/pki"
- ipb "code.hackerspace.pl/hscloud/proto/infra"
pb "code.hackerspace.pl/hscloud/dc/topo/proto"
)
type SwitchportState struct {
- Proto *ipb.SwitchPort
+ Proto *dpb.SwitchPort
}
type SwitchState struct {
Name string
Ports []*SwitchportState
- Stub ipb.SwitchControlClient
+ Stub dpb.SwitchControlClient
}
func (s *SwitchState) Fetch(ctx context.Context) error {
- req := ipb.GetPortsRequest{}
+ req := dpb.GetPortsRequest{}
res, err := s.Stub.GetPorts(ctx, &req)
if err != nil {
return fmt.Errorf("GetPorts: %v", err)
@@ -65,7 +65,7 @@
s.Switches[sw.Name] = &SwitchState{
Name: sw.Name,
- Stub: ipb.NewSwitchControlClient(conn),
+ Stub: dpb.NewSwitchControlClient(conn),
}
err := s.Switches[sw.Name].Fetch(ctx)
if err != nil {