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 14, 2024
1 parent 7921ef2 commit bce4c08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
14 changes: 2 additions & 12 deletions dash-pipeline/dpapp/dpapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@

[ -d /var/log/vpp ] || mkdir -p /var/log/vpp

sysctl vm.nr_hugepages=512
sysctl vm.max_map_count=1548
sysctl vm.nr_hugepages=32

/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 bce4c08

Please sign in to comment.