summaryrefslogtreecommitdiffstats
path: root/samples/vnf_samples/nsut/cgnapt/tc_baremetal_http_ixload_1b_Requests-65000_Concurrency.yaml
blob: 7e9a589adec9adea2d07fd85937f558043965db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright (c) 2016-2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
schema: yardstick:task:0.1
scenarios:
- type: NSPerf
  traffic_profile: "../../traffic_profiles/http_tests/HTTP_1b-requests_65000_concurrency.yaml"
  topology: cgnapt_vnf_topology_ixload.yaml
  nodes:
    tg__1: trafficgen_1.yardstick
    vnf__1: vnf.yardstick
  options:
    packetsize: 64
    traffic_type: 4
    rfc2544:
      allowed_drop_rate: 0.0001 - 0.0001
    vnf__1:
      vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
  runner:
    type: Duration
    duration: 5
  ixia_profile: ../../traffic_profiles/cgnapt/HTTP-vCGNAPT_IPv4_2Ports.rxf # Need vlan update
context:
  type: Node
  name: yardstick
  nfvi_type: baremetal
  file: /etc/yardstick/nodes/pod.yaml
pan class="n">remove() def get_resource(resource_name): name = ''.join(resource_name.split('_')) return next((r for r in utils.itersubclasses(ApiResource) if r.__name__.lower() == name)) def init_db(): def func(a): try: if issubclass(a[1], Base): return True except TypeError: pass return False subclses = filter(func, inspect.getmembers(models, inspect.isclass)) LOG.debug('Import models: %s', [a[1] for a in subclses]) Base.metadata.create_all(bind=engine) def app_wrapper(*args, **kwargs): init_db() return app(*args, **kwargs) def get_endpoint(url): ip = socket.gethostbyname(socket.gethostname()) return urljoin('http://{}:{}'.format(ip, consts.API_PORT), url) for u in urlpatterns: try: api.add_resource(get_resource(u.target), u.url, endpoint=get_endpoint(u.url)) except StopIteration: LOG.error('url resource not found: %s', u.url) if __name__ == '__main__': _init_logging() LOG.setLevel(logging.DEBUG) LOG.info('Starting server') init_db() app.run(host='0.0.0.0')