forked from lagopus/lagopus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dataplane: Fixed removed rawsocket ports.
- Loading branch information
hibitomo
committed
Dec 2, 2016
1 parent
d6a71a8
commit 8c319f5
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
interface interface0 create -type ethernet-rawsock -device veth0 | ||
port port01 create -interface interface0 | ||
bridge bridge01 create -port port01 1 -dpid 0x1 -fail-mode standalone | ||
bridge bridge01 enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh -v | ||
sudo ip link add veth0 type veth peer name veth1 | ||
sudo lagopus -l /dev/stdout -d -C ./vsw-597.dsl & | ||
sleep 1 | ||
sudo ip link delete veth0 | ||
echo "bridge bridge01 config -port ~port01" | nc localhost 12345 | ||
lagosh -c show interface | ||
lagosh -c stop |