def bothsidecar(self, fortio_cmd):
    basestr = 'http://{svc}:{port}/echo?size={size}'
    if (self.mode == 'grpc'):
        basestr = '-payload-size {size} {svc}:{port}'
    return ((fortio_cmd + '_both ') + basestr.format(svc=self.server.labels['app'], port=self.ports[self.mode]['port'], size=self.size))
def bothsidecar(self, fortio_cmd):
    basestr = 'http://{svc}:{port}/echo?size={size}'
    if (self.mode == 'grpc'):
        basestr = '-payload-size {size} {svc}:{port}'
    return ((fortio_cmd + '_both ') + basestr.format(svc=self.server.labels['app'], port=self.ports[self.mode]['port'], size=self.size))