aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/networking/sfc_tacker.bash
blob: df1b4af2b98dd710c0784be41a08bde9dd6d440b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e
BASEDIR= `pwd`

#import VNF descriptor
tacker vnfd-create --vnfd-file ${BASEDIR}/test-vnfd.yaml

#create instances of the imported VNF
tacker vnf-create --name testVNF1 --vnfd-name test-vnfd
tacker vnf-create --name testVNF2 --vnfd-name test-vnfd

#create service chain
tacker sfc-create --name chainA --chain testVNF1
tacker sfc-create --name chainB --chain testVNF2

#create classifier
tacker sfc-classifier-create --name myclassA --chain chainA --match dest_port=80,protocol=6
tacker sfc-classifier-create --name myclassB --chain chainB --match dest_port=22,protocol=6