def offload_agw(self, imsi, enbID, offloadtype=0): req = StartAgwOffloadRequest( enb_id=enbID, enb_offload_type=offloadtype, imsi=imsi, ) try: self._ha_stub.StartAgwOffload(req) except grpc.RpcError as e: print("gRPC failed with %s: %s" % (e.code(), e.details()))
def send_offload_trigger(client, args): req = StartAgwOffloadRequest( enb_id=args.enb_id, imsi=args.imsi, ) print("Sending offload trigger with following fields:\n %s" % req) try: client.StartAgwOffload(req) except grpc.RpcError as e: print("gRPC failed with %s: %s" % (e.code(), e.details()))