From 0036098e46e16c9ae5b795b108a5b9566c02906b Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Fri, 4 Aug 2017 17:06:18 -0700 Subject: Add the scipts to build NFVbench VM Change-Id: I9632333777260468d6f07cf0149c789626f20145 Signed-off-by: Yichen Wang --- .../elements/nfvbenchvm/static/vpp/startup.conf | 30 ++++++++++++++++++++++ .../dib/elements/nfvbenchvm/static/vpp/vm.conf | 8 ++++++ 2 files changed, 38 insertions(+) create mode 100644 nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/startup.conf create mode 100644 nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf (limited to 'nfvbenchvm/dib/elements/nfvbenchvm/static/vpp') diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/startup.conf b/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/startup.conf new file mode 100644 index 0000000..811eee1 --- /dev/null +++ b/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/startup.conf @@ -0,0 +1,30 @@ +unix { + nodaemon + log /tmp/vpp.log + full-coredump + startup-config /etc/vpp/vm.conf + cli-listen localhost:5002 +} + +api-trace { + on +} + +dpdk { + dev default { + num-rx-desc 1024 + num-tx-desc 256 + } + socket-mem 1024 + dev {{PCI_ADDRESS_1}} + dev {{PCI_ADDRESS_2}} +} + +api-segment { + gid vpp +} + +cpu { + main-core 0 + workers {{WORKER_CORES}} +} diff --git a/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf b/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf new file mode 100644 index 0000000..f52a045 --- /dev/null +++ b/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf @@ -0,0 +1,8 @@ +set int state {{INTF_1}} up +set int state {{INTF_2}} up +set interface ip address {{INTF_1}} {{VNF_GATEWAY1_CIDR}} +set interface ip address {{INTF_2}} {{VNF_GATEWAY2_CIDR}} +set ip arp {{INTF_1}} {{TG_GATEWAY1_IP}} {{TG_MAC1}} static +set ip arp {{INTF_2}} {{TG_GATEWAY2_IP}} {{TG_MAC2}} static +ip route add {{TG_NET1}} via {{TG_GATEWAY1_IP}} +ip route add {{TG_NET2}} via {{TG_GATEWAY2_IP}} -- cgit 1.2.3-korg