示例#1
0
 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()))
示例#2
0
文件: ha_cli.py 项目: katojunya/magma
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()))