Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
fcec0b6f
Commit
fcec0b6f
authored
Nov 12, 2012
by
Leigh B Stoller
Browse files
Make sure forwarding is turned on for newly created gre devices.
Without it, ip route fails to find the route.
parent
3faf7d2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/openvz/libvnode_openvz.pm
View file @
fcec0b6f
...
...
@@ -1905,6 +1905,12 @@ sub vz_vnodePreConfigExpNetwork {
TBScriptUnlock
();
return
-
1
;
}
# Must do this else routing lookup fails.
mysystem2
("
echo 1 > /proc/sys/net/ipv4/conf/
$gre
/forwarding
");
if
(
$?
)
{
TBScriptUnlock
();
return
-
1
;
}
$key2gre
{
$grekey
}
=
$gre
;
# Record gre creation.
$private
->
{'
tunnels
'}
->
{
$gre
}
=
$gre
;
...
...
Write
Preview
Supports
Markdown
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