Skip to content

USI - #496

Merged
henry54809 merged 10 commits into
faucetsdn:masterfrom
henry54809:feature/usi
Jun 26, 2020
Merged

USI#496
henry54809 merged 10 commits into
faucetsdn:masterfrom
henry54809:feature/usi

Conversation

@henry54809

Copy link
Copy Markdown
Collaborator

No description provided.

@henry54809
henry54809 requested review from grafnu and pbatta June 22, 2020 21:22
@codecov

codecov Bot commented Jun 22, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #496 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #496      +/-   ##
==========================================
- Coverage   79.89%   79.86%   -0.03%     
==========================================
  Files          21       21              
  Lines        3621     3621              
==========================================
- Hits         2893     2892       -1     
- Misses        728      729       +1     
Flag Coverage Δ
#aux 74.97% <ø> (ø)
#base 76.34% <ø> (ø)
#dhcp 71.36% <ø> (+0.05%) ⬆️
#many 71.47% <ø> (-0.09%) ⬇️
#modules 23.44% <ø> (ø)
#topo 73.35% <ø> (ø)
Impacted Files Coverage Δ
daq/host.py 91.16% <0.00%> (-0.18%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf7840a...8cb1b42. Read the comment docs.

@grafnu grafnu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also waiting for stickler/checkstyle, although that's more just formality.

Comment thread usi/Dockerfile.usi

COPY usi/ usi/

RUN cd usi && mvn clean compile assembly:single

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally we prefer gradle over mvn, but I know this is just copying what the previous module did. So, it's fine for this, but mostly just FYI for anything new please use gradle not mvn.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer gradle as well actually.

@@ -0,0 +1,189 @@
package switchtest;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the package is right anymore, since this isn't a test -- package should be something like "daq.usi" (note we're avoiding com.google since technically DAQ is part of faucetsdn)

package switchtest;

/*
* Licensed to the Google under one or more contributor license agreements.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"to the Google"? :-) -- I know not you, just something I noticed!

@@ -0,0 +1,92 @@
package switchtest;

import grpc.*;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we ever converged on the "why grpc" question in the design proposal -- it seems to have been deleted without resolution. Also the design proposal was never finalized (still indicated as draft). I want to understand "why grpc" here before proceeding... it's a significant bit of complexity for something that could really be simple. (If we already had a conversation about it please remind me.) I'm not saying it's wrong, I just want to make sure we're properly reviewing/discussing things before executing on them (it's a procedural thing).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember seeing a comment related to grpc in my email but I couldn't find the comment when I went to the design doc. I don't know any good alternatives for this purpose?

@grafnu

grafnu commented Jun 23, 2020 via email

Copy link
Copy Markdown
Collaborator

/**
* Abstract Switch controller. Override this class for switch specific implementation
* @param remoteIpAddress switch ip address
* @param telnetPort switch telnet port

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

@henry54809

Copy link
Copy Markdown
Collaborator Author

PTAL

@grafnu

grafnu commented Jun 24, 2020

Copy link
Copy Markdown
Collaborator

Looks good from what I can see... want to make sure the Design Proposal piece is finalized first, and then we can close this out.

@grafnu grafnu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc is close enough, and code looks good, thx!

@henry54809
henry54809 merged commit ab7eed7 into faucetsdn:master Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants