Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
P4labs 2023
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ANET
P4labs 2023
Commits
261af466
Commit
261af466
authored
1 year ago
by
Djojomoenawie, N.E. (Nathan, Student M-CS)
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary text
parent
485dd6b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assignments/controlled_load_balance/README.md
+1
-1
1 addition, 1 deletion
assignments/controlled_load_balance/README.md
assignments/controlled_load_balance/balance_controller.py
+0
-2
0 additions, 2 deletions
assignments/controlled_load_balance/balance_controller.py
with
1 addition
and
3 deletions
assignments/controlled_load_balance/README.md
+
1
−
1
View file @
261af466
...
...
@@ -83,7 +83,7 @@ A complete `balance_controller.py` will contain the following components:
6.
A function to print information of an GRPC error (communication protocol)
called
`printGrpcError`
7.
A function to obtain the byte count of a counter on a switch called
`getByteCounter`
8.
**TODO**
(needs finishing)
A function that sets up the connection with the balancing
8.
**TODO**
A function that sets up the connection with the balancing
switch and install the initial rules called
`setupBalancingSwitch`
. You should call
the function
`writeEcmpNextHopRules`
to set the initial entries.
9.
The main function that:
...
...
This diff is collapsed.
Click to expand it.
assignments/controlled_load_balance/balance_controller.py
+
0
−
2
View file @
261af466
...
...
@@ -114,8 +114,6 @@ def readTableRules(p4info_helper, sw):
for
response
in
sw
.
ReadTableEntries
():
for
entity
in
response
.
entities
:
entry
=
entity
.
table_entry
# TODO For extra credit, you can use the p4info_helper to translate
# the IDs in the entry to names
table_name
=
p4info_helper
.
get_tables_name
(
entry
.
table_id
)
print
(
'
%s:
'
%
table_name
,
end
=
'
'
)
for
m
in
entry
.
match
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment