Skip to content

Commit

Permalink
Add init.config in dpapp
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyzhai committed Nov 8, 2024
1 parent 1e0da29 commit 0dcb011
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 1 addition & 10 deletions dash-pipeline/dpapp/dpapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,4 @@
sysctl vm.nr_hugepages=512
sysctl vm.max_map_count=1548

/usr/bin/vpp -c ${1:-/etc/vpp/startup.conf} &
sleep 3

# Create a host interface which connects p4 bmv2 simple_switch
HOST_INTERFACE=${HOST_INTERFACE:-veth5}
vppctl create host-interface name $HOST_INTERFACE
vppctl set interface mac address host-$HOST_INTERFACE 02:fe:23:f0:e4:13
vppctl set interface state host-$HOST_INTERFACE up
vppctl set interface promiscuous on host-$HOST_INTERFACE
vppctl
/usr/bin/vpp -c ${1:-/etc/vpp/startup.conf}
5 changes: 5 additions & 0 deletions dash-pipeline/dpapp/init.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create a host interface which connects p4 bmv2 simple_switch
create host-interface name veth5
set interface mac address host-veth5 02:fe:23:f0:e4:13
set interface state host-veth5 up
set interface promiscuous on host-veth5
1 change: 1 addition & 0 deletions dash-pipeline/dpapp/startup.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ unix {
full-coredump
cli-listen /run/vpp/cli.sock
gid vpp
startup-config /dash/dash-pipeline/dpapp/init.config
}

api-trace {
Expand Down

0 comments on commit 0dcb011

Please sign in to comment.