From 65ce7d3981f4b3f083163dd93f85a042885ac7d9 Mon Sep 17 00:00:00 2001 From: Ruidong Cao Date: Sat, 4 Aug 2018 00:44:29 +0800 Subject: [PATCH] agent: add ListInterfaces and ListRoutes rpc These are part of network hotplug and used to show actual network info in the sandbox. Fixes #315 Signed-off-by: Ruidong Cao --- grpc.go | 8 + network.go | 35 +- network_test.go | 89 ++++ protocols/grpc/agent.pb.go | 690 ++++++++++++++++++++++------- protocols/grpc/agent.proto | 13 + protocols/mockserver/mockserver.go | 20 + 6 files changed, 697 insertions(+), 158 deletions(-) diff --git a/grpc.go b/grpc.go index 9d51f5f153..2dfed9b8f2 100644 --- a/grpc.go +++ b/grpc.go @@ -1275,6 +1275,14 @@ func (a *agentGRPC) UpdateRoutes(ctx context.Context, req *pb.UpdateRoutesReques return a.sandbox.updateRoutes(nil, req.Routes) } +func (a *agentGRPC) ListInterfaces(ctx context.Context, req *pb.ListInterfacesRequest) (*pb.Interfaces, error) { + return a.sandbox.listInterfaces(nil) +} + +func (a *agentGRPC) ListRoutes(ctx context.Context, req *pb.ListRoutesRequest) (*pb.Routes, error) { + return a.sandbox.listRoutes(nil) +} + func (a *agentGRPC) OnlineCPUMem(ctx context.Context, req *pb.OnlineCPUMemRequest) (*gpb.Empty, error) { if !req.Wait { go a.onlineCPUMem(req) diff --git a/network.go b/network.go index 9c28072fc7..e7c5780bf0 100644 --- a/network.go +++ b/network.go @@ -322,6 +322,33 @@ func getInterface(netHandle *netlink.Handle, link netlink.Link) (*pb.Interface, return &ifc, nil } +func (s *sandbox) listInterfaces(netHandle *netlink.Handle) (*pb.Interfaces, error) { + var err error + if netHandle == nil { + netHandle, err = netlink.NewHandle(unix.NETLINK_ROUTE) + if err != nil { + return nil, err + } + defer netHandle.Delete() + } + + links, err := netHandle.LinkList() + if err != nil { + return nil, err + } + + var interfaces pb.Interfaces + for _, link := range links { + ifc, err := getInterface(netHandle, link) + if err != nil { + agentLog.WithField("link", link).WithError(err).Error("listInterfaces() failed") + return &interfaces, err + } + interfaces.Interfaces = append(interfaces.Interfaces, ifc) + } + return &interfaces, nil +} + //////////// // Routes // //////////// @@ -420,11 +447,15 @@ func (s *sandbox) updateRoutes(netHandle *netlink.Handle, requestedRoutes *pb.Ro return requestedRoutes, err } +func (s *sandbox) listRoutes(netHandle *netlink.Handle) (*pb.Routes, error) { + return getCurrentRoutes(netHandle) +} + //getCurrentRoutes is a helper to gather existing routes in gRPC protocol format func getCurrentRoutes(netHandle *netlink.Handle) (*pb.Routes, error) { - + var err error if netHandle == nil { - netHandle, err := netlink.NewHandle(unix.NETLINK_ROUTE) + netHandle, err = netlink.NewHandle(unix.NETLINK_ROUTE) if err != nil { return nil, err } diff --git a/network_test.go b/network_test.go index 294221c331..d21d7e708e 100644 --- a/network_test.go +++ b/network_test.go @@ -185,3 +185,92 @@ func TestUpdateRoutes(t *testing.T) { assert.True(t, reflect.DeepEqual(results.Routes[0], testRoutes.Routes[1]), "Interface created didn't match: got %+v, expecting %+v", results.Routes[0], testRoutes.Routes[1]) } + +func TestListInterfaces(t *testing.T) { + tearDown := setupNetworkTest(t) + defer tearDown() + + assert := assert.New(t) + + s := sandbox{} + ifc := pb.Interface{ + Name: "enoNumber", + Mtu: 1500, + HwAddr: "02:00:ca:fe:00:48", + } + ip := pb.IPAddress{ + Family: 0, + Address: "192.168.0.101", + Mask: "24", + } + ifc.IPAddresses = append(ifc.IPAddresses, &ip) + netHandle, _ := netlink.NewHandle() + defer netHandle.Delete() + // create a dummy link that we can test update on + macAddr := net.HardwareAddr{0x02, 0x00, 0xCA, 0xFE, 0x00, 0x48} + link := &netlink.Dummy{ + LinkAttrs: netlink.LinkAttrs{ + MTU: 1500, + TxQLen: -1, + Name: "ifc-name", + HardwareAddr: macAddr, + }, + } + netHandle.LinkAdd(link) + netHandle.LinkSetUp(link) + s.updateInterface(netHandle, &ifc) + // + // With a link populated, check to see if we can successfully list: + // + results, err := s.listInterfaces(nil) + assert.Nil(err, "Expected to list all interfaces") + assert.True(reflect.DeepEqual(results.Interfaces[1], &ifc), + "Interface listed didn't match: got %+v, expecting %+v", results.Interfaces[1], &ifc) +} + +func TestListRoutes(t *testing.T) { + tearDown := setupNetworkTest(t) + defer tearDown() + + assert := assert.New(t) + + s := sandbox{} + + // create a dummy link which we'll play with + macAddr := net.HardwareAddr{0x02, 0x00, 0xCA, 0xFE, 0x00, 0x48} + link := &netlink.Dummy{ + LinkAttrs: netlink.LinkAttrs{ + MTU: 1500, + TxQLen: -1, + Name: "ifc-name", + HardwareAddr: macAddr, + }, + } + netHandle, _ := netlink.NewHandle() + defer netHandle.Delete() + + netHandle.LinkAdd(link) + if err := netHandle.LinkSetUp(link); err != nil { + t.Fatal(err) + } + netlinkAddr, _ := netlink.ParseAddr("192.168.0.2/16") + netHandle.AddrAdd(link, netlinkAddr) + + //Test a simple route setup: + inputRoutesSimple := []*pb.Route{ + {Dest: "", Gateway: "192.168.0.1", Source: "", Scope: 0, Device: "ifc-name"}, + {Dest: "192.168.0.0/16", Gateway: "", Source: "192.168.0.2", Scope: 253, Device: "ifc-name"}, + } + + testRoutes := &pb.Routes{ + Routes: inputRoutesSimple, + } + + s.updateRoutes(netHandle, testRoutes) + results, err := s.listRoutes(nil) + assert.Nil(err, "Expected to list all routes") + assert.True(reflect.DeepEqual(results.Routes[0], inputRoutesSimple[0]), + "Route listed didn't match: got %+v, expecting %+v", results.Routes[0], inputRoutesSimple[0]) + assert.True(reflect.DeepEqual(results.Routes[1], inputRoutesSimple[1]), + "Route listed didn't match: got %+v, expecting %+v", results.Routes[1], inputRoutesSimple[1]) +} diff --git a/protocols/grpc/agent.pb.go b/protocols/grpc/agent.pb.go index 91ce01be5f..07164f1360 100644 --- a/protocols/grpc/agent.pb.go +++ b/protocols/grpc/agent.pb.go @@ -44,12 +44,15 @@ DestroySandboxRequest IPAddress Interface + Interfaces Route Routes UpdateInterfaceRequest AddInterfaceRequest RemoveInterfaceRequest UpdateRoutesRequest + ListInterfacesRequest + ListRoutesRequest OnlineCPUMemRequest ReseedRandomDevRequest Storage @@ -1212,6 +1215,22 @@ func (m *Interface) GetHwAddr() string { return "" } +type Interfaces struct { + Interfaces []*Interface `protobuf:"bytes,1,rep,name=Interfaces" json:"Interfaces,omitempty"` +} + +func (m *Interfaces) Reset() { *m = Interfaces{} } +func (m *Interfaces) String() string { return proto.CompactTextString(m) } +func (*Interfaces) ProtoMessage() {} +func (*Interfaces) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{34} } + +func (m *Interfaces) GetInterfaces() []*Interface { + if m != nil { + return m.Interfaces + } + return nil +} + type Route struct { Dest string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` @@ -1223,7 +1242,7 @@ type Route struct { func (m *Route) Reset() { *m = Route{} } func (m *Route) String() string { return proto.CompactTextString(m) } func (*Route) ProtoMessage() {} -func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{34} } +func (*Route) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{35} } func (m *Route) GetDest() string { if m != nil { @@ -1267,7 +1286,7 @@ type Routes struct { func (m *Routes) Reset() { *m = Routes{} } func (m *Routes) String() string { return proto.CompactTextString(m) } func (*Routes) ProtoMessage() {} -func (*Routes) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{35} } +func (*Routes) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{36} } func (m *Routes) GetRoutes() []*Route { if m != nil { @@ -1283,7 +1302,7 @@ type UpdateInterfaceRequest struct { func (m *UpdateInterfaceRequest) Reset() { *m = UpdateInterfaceRequest{} } func (m *UpdateInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*UpdateInterfaceRequest) ProtoMessage() {} -func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{36} } +func (*UpdateInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{37} } func (m *UpdateInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -1299,7 +1318,7 @@ type AddInterfaceRequest struct { func (m *AddInterfaceRequest) Reset() { *m = AddInterfaceRequest{} } func (m *AddInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*AddInterfaceRequest) ProtoMessage() {} -func (*AddInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{37} } +func (*AddInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{38} } func (m *AddInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -1315,7 +1334,7 @@ type RemoveInterfaceRequest struct { func (m *RemoveInterfaceRequest) Reset() { *m = RemoveInterfaceRequest{} } func (m *RemoveInterfaceRequest) String() string { return proto.CompactTextString(m) } func (*RemoveInterfaceRequest) ProtoMessage() {} -func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{38} } +func (*RemoveInterfaceRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{39} } func (m *RemoveInterfaceRequest) GetInterface() *Interface { if m != nil { @@ -1331,7 +1350,7 @@ type UpdateRoutesRequest struct { func (m *UpdateRoutesRequest) Reset() { *m = UpdateRoutesRequest{} } func (m *UpdateRoutesRequest) String() string { return proto.CompactTextString(m) } func (*UpdateRoutesRequest) ProtoMessage() {} -func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{39} } +func (*UpdateRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{40} } func (m *UpdateRoutesRequest) GetRoutes() *Routes { if m != nil { @@ -1340,6 +1359,22 @@ func (m *UpdateRoutesRequest) GetRoutes() *Routes { return nil } +type ListInterfacesRequest struct { +} + +func (m *ListInterfacesRequest) Reset() { *m = ListInterfacesRequest{} } +func (m *ListInterfacesRequest) String() string { return proto.CompactTextString(m) } +func (*ListInterfacesRequest) ProtoMessage() {} +func (*ListInterfacesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{41} } + +type ListRoutesRequest struct { +} + +func (m *ListRoutesRequest) Reset() { *m = ListRoutesRequest{} } +func (m *ListRoutesRequest) String() string { return proto.CompactTextString(m) } +func (*ListRoutesRequest) ProtoMessage() {} +func (*ListRoutesRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{42} } + type OnlineCPUMemRequest struct { // Wait specifies if the caller waits for the agent to online all resources. // If true the agent returns once all resources have been connected, otherwise all @@ -1352,7 +1387,7 @@ type OnlineCPUMemRequest struct { func (m *OnlineCPUMemRequest) Reset() { *m = OnlineCPUMemRequest{} } func (m *OnlineCPUMemRequest) String() string { return proto.CompactTextString(m) } func (*OnlineCPUMemRequest) ProtoMessage() {} -func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{40} } +func (*OnlineCPUMemRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{43} } func (m *OnlineCPUMemRequest) GetWait() bool { if m != nil { @@ -1376,7 +1411,7 @@ type ReseedRandomDevRequest struct { func (m *ReseedRandomDevRequest) Reset() { *m = ReseedRandomDevRequest{} } func (m *ReseedRandomDevRequest) String() string { return proto.CompactTextString(m) } func (*ReseedRandomDevRequest) ProtoMessage() {} -func (*ReseedRandomDevRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{41} } +func (*ReseedRandomDevRequest) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{44} } func (m *ReseedRandomDevRequest) GetData() []byte { if m != nil { @@ -1418,7 +1453,7 @@ type Storage struct { func (m *Storage) Reset() { *m = Storage{} } func (m *Storage) String() string { return proto.CompactTextString(m) } func (*Storage) ProtoMessage() {} -func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{42} } +func (*Storage) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{45} } func (m *Storage) GetDriver() string { if m != nil { @@ -1501,7 +1536,7 @@ type Device struct { func (m *Device) Reset() { *m = Device{} } func (m *Device) String() string { return proto.CompactTextString(m) } func (*Device) ProtoMessage() {} -func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{43} } +func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{46} } func (m *Device) GetId() string { if m != nil { @@ -1547,7 +1582,7 @@ type StringUser struct { func (m *StringUser) Reset() { *m = StringUser{} } func (m *StringUser) String() string { return proto.CompactTextString(m) } func (*StringUser) ProtoMessage() {} -func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{44} } +func (*StringUser) Descriptor() ([]byte, []int) { return fileDescriptorAgent, []int{47} } func (m *StringUser) GetUid() string { if m != nil { @@ -1605,12 +1640,15 @@ func init() { proto.RegisterType((*DestroySandboxRequest)(nil), "grpc.DestroySandboxRequest") proto.RegisterType((*IPAddress)(nil), "grpc.IPAddress") proto.RegisterType((*Interface)(nil), "grpc.Interface") + proto.RegisterType((*Interfaces)(nil), "grpc.Interfaces") proto.RegisterType((*Route)(nil), "grpc.Route") proto.RegisterType((*Routes)(nil), "grpc.Routes") proto.RegisterType((*UpdateInterfaceRequest)(nil), "grpc.UpdateInterfaceRequest") proto.RegisterType((*AddInterfaceRequest)(nil), "grpc.AddInterfaceRequest") proto.RegisterType((*RemoveInterfaceRequest)(nil), "grpc.RemoveInterfaceRequest") proto.RegisterType((*UpdateRoutesRequest)(nil), "grpc.UpdateRoutesRequest") + proto.RegisterType((*ListInterfacesRequest)(nil), "grpc.ListInterfacesRequest") + proto.RegisterType((*ListRoutesRequest)(nil), "grpc.ListRoutesRequest") proto.RegisterType((*OnlineCPUMemRequest)(nil), "grpc.OnlineCPUMemRequest") proto.RegisterType((*ReseedRandomDevRequest)(nil), "grpc.ReseedRandomDevRequest") proto.RegisterType((*Storage)(nil), "grpc.Storage") @@ -1659,6 +1697,8 @@ type AgentServiceClient interface { UpdateInterface(ctx context.Context, in *UpdateInterfaceRequest, opts ...grpc1.CallOption) (*Interface, error) RemoveInterface(ctx context.Context, in *RemoveInterfaceRequest, opts ...grpc1.CallOption) (*Interface, error) UpdateRoutes(ctx context.Context, in *UpdateRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) + ListInterfaces(ctx context.Context, in *ListInterfacesRequest, opts ...grpc1.CallOption) (*Interfaces, error) + ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) // misc (TODO: some rpcs can be replaced by hyperstart-exec) CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) DestroySandbox(ctx context.Context, in *DestroySandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) @@ -1854,6 +1894,24 @@ func (c *agentServiceClient) UpdateRoutes(ctx context.Context, in *UpdateRoutesR return out, nil } +func (c *agentServiceClient) ListInterfaces(ctx context.Context, in *ListInterfacesRequest, opts ...grpc1.CallOption) (*Interfaces, error) { + out := new(Interfaces) + err := grpc1.Invoke(ctx, "/grpc.AgentService/ListInterfaces", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *agentServiceClient) ListRoutes(ctx context.Context, in *ListRoutesRequest, opts ...grpc1.CallOption) (*Routes, error) { + out := new(Routes) + err := grpc1.Invoke(ctx, "/grpc.AgentService/ListRoutes", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *agentServiceClient) CreateSandbox(ctx context.Context, in *CreateSandboxRequest, opts ...grpc1.CallOption) (*google_protobuf2.Empty, error) { out := new(google_protobuf2.Empty) err := grpc1.Invoke(ctx, "/grpc.AgentService/CreateSandbox", in, out, c.cc, opts...) @@ -1922,6 +1980,8 @@ type AgentServiceServer interface { UpdateInterface(context.Context, *UpdateInterfaceRequest) (*Interface, error) RemoveInterface(context.Context, *RemoveInterfaceRequest) (*Interface, error) UpdateRoutes(context.Context, *UpdateRoutesRequest) (*Routes, error) + ListInterfaces(context.Context, *ListInterfacesRequest) (*Interfaces, error) + ListRoutes(context.Context, *ListRoutesRequest) (*Routes, error) // misc (TODO: some rpcs can be replaced by hyperstart-exec) CreateSandbox(context.Context, *CreateSandboxRequest) (*google_protobuf2.Empty, error) DestroySandbox(context.Context, *DestroySandboxRequest) (*google_protobuf2.Empty, error) @@ -2293,6 +2353,42 @@ func _AgentService_UpdateRoutes_Handler(srv interface{}, ctx context.Context, de return interceptor(ctx, in, info, handler) } +func _AgentService_ListInterfaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { + in := new(ListInterfacesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AgentServiceServer).ListInterfaces(ctx, in) + } + info := &grpc1.UnaryServerInfo{ + Server: srv, + FullMethod: "/grpc.AgentService/ListInterfaces", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AgentServiceServer).ListInterfaces(ctx, req.(*ListInterfacesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AgentService_ListRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { + in := new(ListRoutesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AgentServiceServer).ListRoutes(ctx, in) + } + info := &grpc1.UnaryServerInfo{ + Server: srv, + FullMethod: "/grpc.AgentService/ListRoutes", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AgentServiceServer).ListRoutes(ctx, req.(*ListRoutesRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _AgentService_CreateSandbox_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) { in := new(CreateSandboxRequest) if err := dec(in); err != nil { @@ -2449,6 +2545,14 @@ var _AgentService_serviceDesc = grpc1.ServiceDesc{ MethodName: "UpdateRoutes", Handler: _AgentService_UpdateRoutes_Handler, }, + { + MethodName: "ListInterfaces", + Handler: _AgentService_ListInterfaces_Handler, + }, + { + MethodName: "ListRoutes", + Handler: _AgentService_ListRoutes_Handler, + }, { MethodName: "CreateSandbox", Handler: _AgentService_CreateSandbox_Handler, @@ -3847,6 +3951,36 @@ func (m *Interface) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *Interfaces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Interfaces) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Interfaces) > 0 { + for _, msg := range m.Interfaces { + dAtA[i] = 0xa + i++ + i = encodeVarintAgent(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + func (m *Route) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4036,6 +4170,42 @@ func (m *UpdateRoutesRequest) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *ListInterfacesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListInterfacesRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + +func (m *ListRoutesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ListRoutesRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + return i, nil +} + func (m *OnlineCPUMemRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -4885,6 +5055,18 @@ func (m *Interface) Size() (n int) { return n } +func (m *Interfaces) Size() (n int) { + var l int + _ = l + if len(m.Interfaces) > 0 { + for _, e := range m.Interfaces { + l = e.Size() + n += 1 + l + sovAgent(uint64(l)) + } + } + return n +} + func (m *Route) Size() (n int) { var l int _ = l @@ -4962,6 +5144,18 @@ func (m *UpdateRoutesRequest) Size() (n int) { return n } +func (m *ListInterfacesRequest) Size() (n int) { + var l int + _ = l + return n +} + +func (m *ListRoutesRequest) Size() (n int) { + var l int + _ = l + return n +} + func (m *OnlineCPUMemRequest) Size() (n int) { var l int _ = l @@ -9609,6 +9803,87 @@ func (m *Interface) Unmarshal(dAtA []byte) error { } return nil } +func (m *Interfaces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Interfaces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Interfaces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Interfaces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAgent + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Interfaces = append(m.Interfaces, &Interface{}) + if err := m.Interfaces[len(m.Interfaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Route) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -10207,6 +10482,106 @@ func (m *UpdateRoutesRequest) Unmarshal(dAtA []byte) error { } return nil } +func (m *ListInterfacesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListInterfacesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListInterfacesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ListRoutesRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAgent + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ListRoutesRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListRoutesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipAgent(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAgent + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *OnlineCPUMemRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -11041,149 +11416,152 @@ var ( func init() { proto.RegisterFile("agent.proto", fileDescriptorAgent) } var fileDescriptorAgent = []byte{ - // 2290 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x5b, 0x73, 0x1c, 0x47, - 0x15, 0x66, 0xaf, 0xd2, 0x9e, 0xdd, 0x95, 0xb4, 0x23, 0x59, 0xde, 0xac, 0x8d, 0x51, 0xc6, 0xe0, - 0x88, 0x04, 0xcb, 0x15, 0xc5, 0x05, 0x29, 0xbb, 0x52, 0xc1, 0xba, 0x20, 0x8b, 0xc4, 0x78, 0x19, - 0x59, 0x65, 0xaa, 0x78, 0xd8, 0x6a, 0xcd, 0xb4, 0x56, 0x1d, 0xef, 0x4c, 0x4f, 0xba, 0x7b, 0x24, - 0x2d, 0xa9, 0xe2, 0x91, 0x5f, 0xc0, 0x2b, 0x7f, 0x80, 0xe2, 0x2d, 0x7f, 0x81, 0x07, 0x1e, 0xf9, - 0x05, 0x14, 0xe5, 0x9f, 0xc0, 0x1b, 0x6f, 0x54, 0xdf, 0xe6, 0xb2, 0x17, 0x19, 0x14, 0x55, 0xf1, - 0xb2, 0x3b, 0xe7, 0xf4, 0xe9, 0xef, 0x5c, 0xba, 0xfb, 0xf4, 0xe9, 0x03, 0x4d, 0x34, 0xc4, 0x91, - 0xd8, 0x8a, 0x19, 0x15, 0xd4, 0xa9, 0x0e, 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c, 0x36, 0x34, 0x18, 0xe6, 0x34, 0x61, 0xf2, 0x98, 0x96, 0xd5, 0xba, - 0xaf, 0xe9, 0x75, 0xff, 0x92, 0x44, 0xc9, 0xa5, 0x67, 0xc7, 0xbc, 0x4c, 0xcc, 0x1c, 0x21, 0xc1, - 0xaf, 0x73, 0x84, 0x9e, 0xc0, 0xad, 0x3e, 0x4a, 0xf8, 0x75, 0x6c, 0x75, 0x9f, 0xca, 0xe3, 0xc7, - 0x93, 0xf0, 0x5a, 0x93, 0xff, 0x5c, 0x82, 0xc5, 0xdd, 0x38, 0x39, 0xe6, 0x68, 0x88, 0x9d, 0x1f, - 0x40, 0x53, 0x50, 0x81, 0x46, 0x83, 0x44, 0x92, 0x4a, 0xbc, 0xea, 0x81, 0x62, 0x69, 0x01, 0x19, - 0x76, 0xcc, 0xfc, 0x38, 0x31, 0x12, 0xe5, 0x8d, 0xca, 0x66, 0xd5, 0x6b, 0x6a, 0x9e, 0x16, 0xd9, - 0x82, 0x55, 0x35, 0x36, 0x20, 0xd1, 0xe0, 0x0d, 0x66, 0x11, 0x1e, 0x85, 0x34, 0xc0, 0x6a, 0xff, - 0x56, 0xbd, 0x8e, 0x1a, 0x3a, 0x8c, 0xbe, 0x48, 0x07, 0x9c, 0x0f, 0xa1, 0x93, 0xca, 0xcb, 0x43, - 0xa9, 0xa4, 0xab, 0x4a, 0x7a, 0xd9, 0x48, 0x1f, 0x1b, 0xb6, 0xfb, 0x7b, 0x58, 0x7a, 0x75, 0xc6, - 0xa8, 0x10, 0x23, 0x12, 0x0d, 0xf7, 0x90, 0x40, 0x32, 0x7b, 0xc4, 0x98, 0x11, 0x1a, 0x70, 0x63, - 0xad, 0x25, 0x9d, 0x8f, 0xa0, 0x23, 0xb4, 0x2c, 0x0e, 0x06, 0x56, 0xa6, 0xac, 0x64, 0x56, 0xd2, - 0x81, 0xbe, 0x11, 0xfe, 0x11, 0x2c, 0x65, 0xc2, 0x32, 0xff, 0x18, 0x7b, 0xdb, 0x29, 0xf7, 0x15, - 0x09, 0xb1, 0x7b, 0xae, 0x62, 0xa5, 0x16, 0xd9, 0xf9, 0x08, 0x1a, 0x59, 0x1c, 0x4a, 0x6a, 0x87, - 0x2c, 0xe9, 0x1d, 0x62, 0xc3, 0xe9, 0x2d, 0xa6, 0x41, 0xf9, 0x0c, 0x96, 0x45, 0x6a, 0xf8, 0x20, - 0x40, 0x02, 0x15, 0x37, 0x55, 0xd1, 0x2b, 0x6f, 0x49, 0x14, 0x68, 0xf7, 0x29, 0x34, 0xfa, 0x24, - 0xe0, 0x5a, 0x71, 0x17, 0x16, 0xfc, 0x84, 0x31, 0x1c, 0x09, 0xeb, 0xb2, 0x21, 0x9d, 0x35, 0xa8, - 0x8d, 0x48, 0x48, 0x84, 0x71, 0x53, 0x13, 0x2e, 0x05, 0x78, 0x81, 0x43, 0xca, 0xc6, 0x2a, 0x60, - 0x6b, 0x50, 0xcb, 0x2f, 0xae, 0x26, 0x9c, 0x3b, 0xd0, 0x08, 0xd1, 0x65, 0xba, 0xa8, 0x72, 0x64, - 0x31, 0x44, 0x97, 0xda, 0xf8, 0x2e, 0x2c, 0x9c, 0x22, 0x32, 0xf2, 0x23, 0x61, 0xa2, 0x62, 0xc9, - 0x4c, 0x61, 0x35, 0xaf, 0xf0, 0xaf, 0x65, 0x68, 0x6a, 0x8d, 0xda, 0xe0, 0x35, 0xa8, 0xf9, 0xc8, - 0x3f, 0x4b, 0x55, 0x2a, 0xc2, 0x79, 0x60, 0x0d, 0x29, 0xe7, 0x93, 0x70, 0x66, 0xa9, 0x35, 0xed, - 0x11, 0x00, 0xbf, 0x40, 0xb1, 0xb1, 0xad, 0x32, 0x47, 0xb8, 0x21, 0x65, 0xb4, 0xb9, 0x9f, 0x40, - 0x4b, 0xef, 0x3b, 0x33, 0xa5, 0x3a, 0x67, 0x4a, 0x53, 0x4b, 0xe9, 0x49, 0xf7, 0xa1, 0x9d, 0x70, - 0x3c, 0x38, 0x23, 0x98, 0x21, 0xe6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2, 0xf4, 0xd7, 0x80, 0xc6, 0x82, 0xd0, 0xf4, 0xd4, 0xb7, 0x35, 0xf7, 0xa5, - 0x66, 0xe6, 0xb6, 0x4b, 0xa5, 0xb0, 0x5d, 0xd6, 0xa1, 0x7e, 0xca, 0xc5, 0x38, 0x4e, 0xb7, 0x91, - 0xa6, 0xe4, 0x86, 0xb4, 0x78, 0x35, 0x85, 0x67, 0x49, 0xf9, 0xde, 0x0d, 0x69, 0x12, 0x89, 0x41, - 0x4c, 0x49, 0x24, 0x54, 0xff, 0xac, 0xe1, 0x81, 0x62, 0xf5, 0x25, 0xc7, 0xfd, 0x43, 0x09, 0xea, - 0xba, 0x2f, 0x27, 0xeb, 0xe9, 0x34, 0x31, 0x96, 0x89, 0xba, 0x64, 0x94, 0x2e, 0x73, 0xe8, 0x94, - 0xa6, 0xdb, 0xb0, 0x70, 0x1e, 0x0e, 0x62, 0x24, 0xce, 0xac, 0x69, 0xe7, 0x61, 0x1f, 0x89, 0x33, - 0xe9, 0x59, 0x96, 0x5f, 0xd5, 0xb8, 0x36, 0xb1, 0x9d, 0x72, 0x95, 0xd8, 0x5c, 0x4b, 0xdd, 0xdf, - 0xc8, 0x67, 0x44, 0xda, 0x93, 0x5a, 0x81, 0x4a, 0x92, 0x1a, 0x23, 0x3f, 0x25, 0x67, 0x98, 0x66, - 0x66, 0xf9, 0xe9, 0x3c, 0x80, 0x25, 0x14, 0x04, 0x44, 0x4e, 0x47, 0xa3, 0x03, 0x12, 0xd8, 0xc6, - 0xca, 0x04, 0xf7, 0xc3, 0x1e, 0x2c, 0xda, 0x24, 0xe5, 0xd4, 0xa1, 0x7c, 0xfe, 0x78, 0xe5, 0x7b, - 0xea, 0xff, 0xa7, 0x2b, 0xa5, 0xed, 0x7f, 0xb7, 0xa0, 0xf5, 0x6c, 0x88, 0x23, 0x61, 0x8a, 0x5e, - 0xe7, 0x00, 0x96, 0x27, 0x9a, 0xa8, 0x8e, 0x79, 0x05, 0xcd, 0xee, 0xad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, 0xcd, 0x98, 0x28, 0x42, 0x7b, 0xdd, 0xe9, 0x81, 0x29, 0x00, 0xcc, 0xd8, 0x75, 0x00, 0x3e, - 0x03, 0xc8, 0xea, 0x4c, 0x0b, 0x30, 0x55, 0x79, 0x5e, 0x11, 0x83, 0x56, 0xbe, 0xaa, 0x74, 0x8c, - 0xaf, 0x33, 0x2a, 0xcd, 0xb9, 0x10, 0x4f, 0xa0, 0x95, 0xbf, 0x5d, 0x2d, 0xc4, 0x8c, 0x1b, 0xb7, - 0x37, 0x79, 0x2b, 0x3a, 0x3f, 0xb7, 0x1b, 0x35, 0x63, 0x15, 0x36, 0xea, 0x7f, 0x85, 0x30, 0x71, - 0x2b, 0x17, 0xf3, 0xc8, 0xbb, 0x11, 0x7e, 0x06, 0xad, 0xfc, 0x75, 0x6c, 0xed, 0x9f, 0x71, 0x45, - 0xf7, 0x0a, 0x57, 0xb2, 0x4c, 0x1c, 0x85, 0x9a, 0xd8, 0x9e, 0xd7, 0x59, 0x85, 0xf2, 0x55, 0xe9, - 0xb4, 0x58, 0xa3, 0xda, 0x43, 0x31, 0xb3, 0x72, 0xbd, 0x6a, 0x1d, 0xf3, 0x65, 0x81, 0x75, 0x62, - 0x46, 0xa9, 0xf0, 0x8e, 0x73, 0x95, 0xaf, 0x0a, 0x72, 0xe7, 0x6a, 0x46, 0xb1, 0x30, 0x0f, 0x68, - 0xa7, 0xf5, 0xb7, 0xb7, 0xf7, 0x4a, 0x7f, 0x7f, 0x7b, 0xaf, 0xf4, 0xcf, 0xb7, 0xf7, 0x4a, 0x27, - 0x75, 0x35, 0xfa, 0xc9, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xe9, 0x79, 0x55, 0x02, 0x1c, - 0x00, 0x00, + // 2352 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x5f, 0x6f, 0x1c, 0x49, + 0x11, 0x67, 0xff, 0xda, 0x5b, 0xbb, 0x6b, 0x7b, 0xdb, 0x8e, 0xb3, 0xb7, 0x39, 0x82, 0x6f, 0x02, + 0x39, 0x73, 0x47, 0x1c, 0x9d, 0x13, 0xc1, 0x29, 0x51, 0x14, 0x62, 0xc7, 0x38, 0xe6, 0x2e, 0x64, + 0x19, 0xc7, 0x0a, 0x12, 0x0f, 0xab, 0xf1, 0x4c, 0x7b, 0xdd, 0x97, 0x9d, 0xe9, 0xb9, 0xee, 0x1e, + 0xdb, 0xcb, 0x49, 0x3c, 0xf2, 0x09, 0x78, 0xe5, 0x0b, 0x20, 0xde, 0xee, 0x2b, 0xf0, 0xc0, 0x23, + 0x9f, 0x00, 0xa1, 0x7c, 0x01, 0x24, 0x3e, 0x01, 0xea, 0x7f, 0xf3, 0x67, 0xff, 0x38, 0xe0, 0xb3, + 0xc4, 0xcb, 0xee, 0x54, 0x75, 0x75, 0xd5, 0xaf, 0xaa, 0xbb, 0xab, 0xab, 0x0b, 0x9a, 0xde, 0x10, + 0x47, 0x62, 0x2b, 0x66, 0x54, 0x50, 0x54, 0x1d, 0xb2, 0xd8, 0xef, 0x35, 0xa8, 0x4f, 0x34, 0xa3, + 0x77, 0x6b, 0x48, 0xe9, 0x70, 0x84, 0xef, 0x2b, 0xea, 0x38, 0x39, 0xb9, 0x8f, 0xc3, 0x58, 0x8c, + 0xf5, 0xa0, 0xf3, 0xa7, 0x32, 0xac, 0xef, 0x32, 0xec, 0x09, 0xbc, 0x4b, 0x23, 0xe1, 0x91, 0x08, + 0x33, 0x17, 0x7f, 0x9d, 0x60, 0x2e, 0xd0, 0x47, 0xd0, 0xf2, 0x2d, 0x6f, 0x40, 0x82, 0x6e, 0x69, + 0xa3, 0xb4, 0xd9, 0x70, 0x9b, 0x29, 0xef, 0x20, 0x40, 0x37, 0x61, 0x01, 0x5f, 0x60, 0x5f, 0x8e, + 0x96, 0xd5, 0x68, 0x5d, 0x92, 0x07, 0x01, 0xfa, 0x0c, 0x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 0xb2, 0x59, 0x75, 0x9b, 0x9a, 0xa7, 0x45, + 0xb6, 0x60, 0x55, 0x8d, 0x0d, 0x48, 0x34, 0x78, 0x8b, 0x59, 0x84, 0x47, 0x21, 0x0d, 0xb0, 0xda, + 0xbf, 0x55, 0xb7, 0xa3, 0x86, 0x0e, 0xa2, 0x2f, 0xd2, 0x01, 0xf4, 0x09, 0x74, 0x52, 0x79, 0x79, + 0x28, 0x95, 0x74, 0x55, 0x49, 0x2f, 0x1b, 0xe9, 0x23, 0xc3, 0x76, 0x7e, 0x0f, 0x4b, 0xaf, 0x4f, + 0x19, 0x15, 0x62, 0x44, 0xa2, 0xe1, 0x73, 0x4f, 0x78, 0x32, 0x7b, 0xc4, 0x98, 0x11, 0x1a, 0x70, + 0x83, 0xd6, 0x92, 0xe8, 0x53, 0xe8, 0x08, 0x2d, 0x8b, 0x83, 0x81, 0x95, 0x29, 0x2b, 0x99, 0x95, + 0x74, 0xa0, 0x6f, 0x84, 0x7f, 0x04, 0x4b, 0x99, 0xb0, 0xcc, 0x3f, 0x06, 0x6f, 0x3b, 0xe5, 0xbe, + 0x26, 0x21, 0x76, 0xce, 0x54, 0xac, 0xd4, 0x22, 0xa3, 0x4f, 0xa1, 0x91, 0xc5, 0xa1, 0xa4, 0x76, + 0xc8, 0x92, 0xde, 0x21, 0x36, 0x9c, 0xee, 0x62, 0x1a, 0x94, 0x27, 0xb0, 0x2c, 0x52, 0xe0, 0x83, + 0xc0, 0x13, 0x5e, 0x71, 0x53, 0x15, 0xbd, 0x72, 0x97, 0x44, 0x81, 0x76, 0x1e, 0x43, 0xa3, 0x4f, + 0x02, 0xae, 0x0d, 0x77, 0x61, 0xc1, 0x4f, 0x18, 0xc3, 0x91, 0xb0, 0x2e, 0x1b, 0x12, 0xad, 0x41, + 0x6d, 0x44, 0x42, 0x22, 0x8c, 0x9b, 0x9a, 0x70, 0x28, 0xc0, 0x4b, 0x1c, 0x52, 0x36, 0x56, 0x01, + 0x5b, 0x83, 0x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0xe4, 0x53, 0x1d, 0xce, 0x6f, 0xa1, 0xf5, 0x22, 0x19, 0x62, 0x31, 0x3a, 0x4e, 0x93, 0xc1, 0xb5, + 0xe5, 0x1f, 0xe7, 0xdf, 0x65, 0x68, 0xee, 0x0e, 0x19, 0x4d, 0xe2, 0x42, 0x4e, 0xd6, 0x87, 0x74, + 0x32, 0x27, 0x2b, 0x11, 0x95, 0x93, 0xb5, 0xf0, 0x43, 0x68, 0x85, 0xea, 0xe8, 0x1a, 0x79, 0x9d, + 0x87, 0x3a, 0x53, 0x87, 0xda, 0x6d, 0x86, 0xb9, 0x64, 0xb6, 0x05, 0x10, 0x93, 0x80, 0x9b, 0x39, + 0x3a, 0x1d, 0x2d, 0x9b, 0x8a, 0xd0, 0xa6, 0x68, 0xb7, 0x11, 0xa7, 0xd9, 0xfa, 0x33, 0x68, 0x1e, + 0xcb, 0x20, 0x99, 0x09, 0x85, 0x64, 0x94, 0x45, 0xcf, 0x85, 0xe3, 0xec, 0x10, 0xbe, 0x80, 0xf6, + 0xa9, 0x0e, 0x99, 0x99, 0xa4, 0xf7, 0xd0, 0x1d, 0xe3, 0x49, 0xe6, 0xef, 0x56, 0x3e, 0xb2, 0x7a, + 0x01, 0x5a, 0xa7, 0x39, 0x56, 0xef, 0x10, 0x3a, 0x53, 0x22, 0x33, 0x72, 0xd0, 0x66, 0x3e, 0x07, + 0x35, 0xb7, 0x91, 0x36, 0x94, 0x9f, 0x99, 0xcf, 0x4b, 0xbf, 0x82, 0xf5, 0xc9, 0x32, 0xc7, 0x14, + 0x65, 0x0f, 0xa1, 0xe5, 0x2b, 0x74, 0x85, 0x15, 0xe8, 0x4c, 0xe1, 0x76, 0x9b, 0x7e, 0x46, 0x38, + 0x01, 0xa0, 0x37, 0x8c, 0x08, 0x7c, 0x28, 0x18, 0xf6, 0xc2, 0xeb, 0xa8, 0x9a, 0x11, 0x54, 0xd5, + 0x15, 0x5b, 0x51, 0x45, 0xa1, 0xfa, 0x76, 0x3e, 0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x63, 0x15, 0x36, 0xea, 0x7f, 0xa5, 0x61, + 0xe2, 0x0e, 0x2f, 0xe6, 0x91, 0xf7, 0x6b, 0xf8, 0x19, 0xb4, 0xf2, 0x97, 0xb7, 0xc5, 0x3f, 0xe3, + 0x42, 0xef, 0x15, 0x2e, 0x70, 0xf4, 0x14, 0x96, 0x8a, 0x17, 0x37, 0xca, 0x1d, 0xca, 0xa9, 0xeb, + 0xbc, 0xb7, 0x32, 0x61, 0x98, 0xa3, 0x07, 0x00, 0xd9, 0x05, 0x6f, 0xd7, 0x6e, 0xea, 0xca, 0x9f, + 0xb0, 0xba, 0x0b, 0xed, 0x42, 0xd9, 0x6f, 0xb3, 0xc4, 0xac, 0xb7, 0xc0, 0x65, 0x49, 0xbc, 0x58, + 0x86, 0x5b, 0xe8, 0x33, 0x8b, 0xf3, 0xcb, 0x76, 0x4f, 0xbe, 0x18, 0xb1, 0xa1, 0x9b, 0x51, 0xa0, + 0xbc, 0xe7, 0x34, 0xe7, 0x6b, 0x91, 0xdc, 0x69, 0x9e, 0x51, 0xa2, 0xcc, 0x53, 0xb4, 0xd3, 0xfa, + 0xdb, 0xbb, 0xdb, 0xa5, 0xbf, 0xbf, 0xbb, 0x5d, 0xfa, 0xe7, 0xbb, 0xdb, 0xa5, 0xe3, 0xba, 0x1a, + 0x7d, 0xf0, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2b, 0xc8, 0x6c, 0x30, 0xe5, 0x1c, 0x00, 0x00, } diff --git a/protocols/grpc/agent.proto b/protocols/grpc/agent.proto index 758749a7c2..b930d94788 100644 --- a/protocols/grpc/agent.proto +++ b/protocols/grpc/agent.proto @@ -46,6 +46,9 @@ service AgentService { rpc UpdateInterface(UpdateInterfaceRequest) returns (Interface); rpc RemoveInterface(RemoveInterfaceRequest) returns (Interface); rpc UpdateRoutes(UpdateRoutesRequest) returns (Routes); + rpc ListInterfaces(ListInterfacesRequest) returns(Interfaces); + rpc ListRoutes(ListRoutesRequest) returns (Routes); + // misc (TODO: some rpcs can be replaced by hyperstart-exec) rpc CreateSandbox(CreateSandboxRequest) returns (google.protobuf.Empty); rpc DestroySandbox(DestroySandboxRequest) returns (google.protobuf.Empty); @@ -286,6 +289,10 @@ message Interface { string hwAddr = 5; } +message Interfaces { + repeated Interface Interfaces = 1; +} + message Route { string dest = 1; string gateway = 2; @@ -314,6 +321,12 @@ message UpdateRoutesRequest { Routes routes = 1; } +message ListInterfacesRequest { +} + +message ListRoutesRequest { +} + message OnlineCPUMemRequest { // Wait specifies if the caller waits for the agent to online all resources. // If true the agent returns once all resources have been connected, otherwise all diff --git a/protocols/mockserver/mockserver.go b/protocols/mockserver/mockserver.go index e17065881d..c5acb413e9 100644 --- a/protocols/mockserver/mockserver.go +++ b/protocols/mockserver/mockserver.go @@ -389,3 +389,23 @@ func (m *mockServer) ResumeContainer(ctx context.Context, req *pb.ResumeContaine func (m *mockServer) ReseedRandomDev(ctx context.Context, req *pb.ReseedRandomDevRequest) (*types.Empty, error) { return &types.Empty{}, nil } + +func (m *mockServer) ListInterfaces(ctx context.Context, req *pb.ListInterfacesRequest) (*pb.Interfaces, error) { + mockLock.RLock() + defer mockLock.RUnlock() + if err := m.podExist(); err != nil { + return nil, err + } + + return nil, nil +} + +func (m *mockServer) ListRoutes(ctx context.Context, req *pb.ListRoutesRequest) (*pb.Routes, error) { + mockLock.RLock() + defer mockLock.RUnlock() + if err := m.podExist(); err != nil { + return nil, err + } + + return nil, nil +}