Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
fede6dd9
Commit
fede6dd9
authored
May 12, 2015
by
Vadim Kochan
Committed by
Stephen Hemminger
May 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Add test for 'ip route add default'
Signed-off-by:
Vadim Kochan
<
vadim4j@gmail.com
>
parent
64dedc47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
testsuite/tests/ip/route/add_default_route.t
testsuite/tests/ip/route/add_default_route.t
+12
-0
No files found.
testsuite/tests/ip/route/add_default_route.t
0 → 100755
View file @
fede6dd9
#!/bin/sh
source
lib
/
generic
.
sh
ts_log
"
[Testing add default route]
"
DEV
=
dummy0
ts_ip
"
$0
"
"
Add new interface
$DEV
"
link
add
$DEV
type
dummy
ts_ip
"
$0
"
"
Set
$DEV
into UP state
"
link
set
up
dev
$DEV
ts_ip
"
$0
"
"
Add 1.1.1.1/24 addr on
$DEV
"
addr
add
1.1.1.1
/
24
dev
$DEV
ts_ip
"
$0
"
"
Add default route via 1.1.1.1
"
route
add
default
via
1.1.1.1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment