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
P
powder-vpn
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
David Johnson
powder-vpn
Commits
df88dc8b
Commit
df88dc8b
authored
Sep 04, 2018
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only use triv links if no bw/latency.
parent
8bf0d7b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
profile/profile.py
profile/profile.py
+8
-7
No files found.
profile/profile.py
View file @
df88dc8b
...
...
@@ -481,19 +481,20 @@ clientvars.addVariable("AGGREGATES"," ".join(sorted(aggNodes.keys())))
def
applyGenericNetworkSettings
(
lanlink
,
bandwidth
=
0
,
latency
=
0
):
if
params
.
trivialOk
is
True
:
lanlink
.
trivial_ok
=
True
else
:
lanlink
.
trivial_ok
=
False
if
bandwidth
>
0
or
latency
>
0
:
if
bandwidth
>
0
:
lanlink
.
bandwidth
=
bandwidth
if
latency
>
0
:
lanlink
.
latency
=
latency
elif
params
.
bestEffort
is
True
:
lanlink
.
best_effort
=
True
else
:
lanlink
.
best_effort
=
False
if
params
.
bestEffort
is
True
:
lanlink
.
best_effort
=
True
else
:
lanlink
.
best_effort
=
False
if
params
.
trivialOk
is
True
:
lanlink
.
trivial_ok
=
True
else
:
lanlink
.
trivial_ok
=
False
if
params
.
multiplex
is
True
:
lanlink
.
link_multiplexing
=
True
else
:
...
...
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