summaryrefslogtreecommitdiffstats
path: root/nfvbenchvm/dib/elements/nfvbenchvm/static/vpp
diff options
context:
space:
mode:
Diffstat (limited to 'nfvbenchvm/dib/elements/nfvbenchvm/static/vpp')
-rw-r--r--nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/startup.conf30
-rw-r--r--nfvbenchvm/dib/elements/nfvbenchvm/static/vpp/vm.conf8
2 files changed, 38 insertions, 0 deletions
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}}