Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
da8d33b5
Commit
da8d33b5
authored
Aug 25, 2015
by
Kirk Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Linux clientside support for user-defined IP aliases.
parent
be88e401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
clientside/tmcc/linux/liblocsetup.pm
clientside/tmcc/linux/liblocsetup.pm
+10
-0
No files found.
clientside/tmcc/linux/liblocsetup.pm
View file @
da8d33b5
...
...
@@ -112,6 +112,7 @@ my $USERDEL = "/usr/sbin/userdel";
my
$USERMOD
=
"
/usr/sbin/usermod
";
my
$GROUPADD
=
"
/usr/sbin/groupadd
";
my
$GROUPDEL
=
"
/usr/sbin/groupdel
";
my
$IPBIN
=
"
/sbin/ip
";
my
$IFCONFIGBIN
=
"
/sbin/ifconfig
";
my
$IFCONFIG
=
"
$IFCONFIGBIN
%s inet %s netmask %s
";
my
$VLANCONFIG
=
"
/sbin/vconfig
";
...
...
@@ -428,6 +429,15 @@ sub os_ifconfig_line($$$$$$$$;$$$)
return
(
$uplines
,
$downlines
);
}
#
# Simple setup for IP aliases.
#
if
(
$iface_type
eq
"
alias
")
{
$uplines
=
"
$IPBIN
addr add
$inet
/
$mask
dev
$iface
";
$downlines
=
"
$IPBIN
addr del
$inet
/
$mask
dev
$iface
";
return
(
$uplines
,
$downlines
);
}
#
# Special handling for new style interfaces (which have settings).
# This should all move into per-type modules at some point.
...
...
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