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
8ff5d76a
Commit
8ff5d76a
authored
May 20, 2003
by
Leigh B. Stoller
Browse files
Mark the veth_interface with its jail vnode node so that tmcd knows
what veth interfaces belong to which jail node.
parent
08ae4de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/assign_wrapper.in
View file @
8ff5d76a
...
...
@@ -1875,7 +1875,13 @@ foreach $vnodeport (keys(%portmap)) {
#
my
$pnode
=
$v2pmap
{
$vnode
};
my
$ip
=
$ips
{
$vnodeport
};
my
$vvnode
=
"
NULL
";
# Mark as being a jail interface.
if
(
$isvirtnode
{
$vnode
}
&&
$jailed
{
$vnode
})
{
$vvnode
=
"
'
"
.
$v2vmap
{
$vnode
}
.
"
'
";
}
#
# Not sure about the MAC yet. We need to create something, and
# for now it will be helpful for debugging if I use the IP.
...
...
@@ -1885,8 +1891,8 @@ foreach $vnodeport (keys(%portmap)) {
printdb
("
IP:
$pnode
:
$pport
$ip
(veth)
\n
");
DBQueryFatal
("
insert into veth_interfaces
"
.
"
(node_id, veth_id, mac, IP, iface)
"
.
"
values ('
$pnode
', 0, '
$mac
', '
$ip
', '
$pport
')
");
"
(node_id, veth_id, mac, IP, iface
, vnode
)
"
.
"
values ('
$pnode
', 0, '
$mac
', '
$ip
', '
$pport
'
,
$vvnode
)
");
}
else
{
#
...
...
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