Пример #1
0
def delete_bearer(client, args):
    req = DeleteBearerRequest(
        sid=SIDUtils.to_pb(args.imsi),
        link_bearer_id=args.lbi,
        eps_bearer_ids=[args.ebi]
    )
    print("Deleting dedicated bearer for : ", args.imsi)
    client.DeleteBearer(req)
Пример #2
0
 def delete_bearer(self, imsi, lbi, ebi):
     """
     Sends a DeleteBearer Request to SPGW service
     """
     print("Sending DeleteBearer request to spgw service")
     req = DeleteBearerRequest(
         sid=SIDUtils.to_pb(imsi), link_bearer_id=lbi, eps_bearer_ids=[ebi]
     )
     self._stub.DeleteBearer(req)