Code Review
/
groupbasedpolicy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Bug 3738: GBP coexistence fixes
[groupbasedpolicy.git]
/
demos
/
gbp-devstack
/
devstack-scripts
/
sfc
/
kernelmods.sh
1
#!/usr/bin/env bash
2
if [ "$#" -ne 3 ]; then
3
echo "Illegal number of parameters
4
Arg1= tap port name of SF
5
Arg2= IP address of SF
6
Arg3= Mac Addr of SF"
7
exit 1
8
fi
9
10
TAP=$1
11
IP=$2
12
MAC=$3
13
TDEST=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'`
14
sudo ip route add $2/32 dev $1
15
sudo arp -i $1 -s $2 $3
16