Skip to content
GitLab
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
79af2aa2
Commit
79af2aa2
authored
Aug 08, 2012
by
Leigh B Stoller
Browse files
Add trunk_mode, but no longer think I am going to keep this.
parent
7ed40187
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Port.pm
View file @
79af2aa2
...
...
@@ -381,6 +381,7 @@ sub LookupByStringForced($$)
$rowref
->
{'
mask
'}
=
"";
$rowref
->
{'
uuid
'}
=
"";
$rowref
->
{'
trunk
'}
=
0
;
$rowref
->
{'
trunk_mode
'}
=
"
equal
";
$inst
->
{"
INTERFACES_ROW
"}
=
$rowref
;
}
else
{
...
...
@@ -547,6 +548,7 @@ sub LookupByTriple($$;$$)
$rowref
->
{'
mask
'}
=
"";
$rowref
->
{'
uuid
'}
=
"";
$rowref
->
{'
trunk
'}
=
0
;
$rowref
->
{'
trunk_mode
'}
=
"
equal
";
}
else
{
$rowref
=
$query_result
->
fetchrow_hashref
();
}
...
...
@@ -624,6 +626,7 @@ sub interface_type($) { return field($_[0], 'interface_type'); }
sub
mask
($)
{
return
field
(
$_
[
0
],
'
mask
');
}
sub
uuid
($)
{
return
field
(
$_
[
0
],
'
uuid
');
}
sub
trunk
($)
{
return
field
(
$_
[
0
],
'
trunk
');
}
sub
trunk_mode
($)
{
return
field
(
$_
[
0
],
'
trunk_mode
');
}
sub
wire_end
($)
{
return
$_
[
0
]
->
{'
WIRE_END
'};
}
sub
is_switch_side
($)
{
return
$_
[
0
]
->
wire_end
()
eq
"
switch
";
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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