-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Port from chassis config file #3
base: main-nikss
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments, please make sure to add a new line at the end of each file
.gitignore
Outdated
@@ -65,3 +65,6 @@ __pycache__/ | |||
# SSL certificates | |||
tools/tls/certs/ | |||
.srl | |||
|
|||
/bb.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this file come from?
script.py
Outdated
@@ -0,0 +1,5 @@ | |||
from scapy.all import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this script should be pushed to the repo, I'm assuming it's used for testing only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any plan to address this?
setup.sh
Outdated
@@ -0,0 +1,29 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any plan to address this?
setup_dev_env.sh
Outdated
@@ -136,4 +136,5 @@ if [ "$NP4_INTEL" == YES ]; then | |||
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -v /dev/intel-fpga-fme.0:/dev/intel-fpga-fme.0" | |||
fi | |||
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS $@" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add the line here
chassis_config[node_id][port.port_id] = port; | ||
} | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it commented out?
if (nikss_pipeline_exists(ctx.get())) { | ||
LOG(INFO) << "NIKSS pipeline already exists, re-pushing is not supported yet."; | ||
return ::util::OkStatus(); | ||
} | ||
|
||
// FIXME: file is not removed if the load() fails |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we fix this issue in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can postpone this for later PR because it is not critical for now
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
always add new lines at the end of files
Dockerfile
Outdated
@@ -6,7 +6,7 @@ | |||
|
|||
FROM stratumproject/build:build | |||
|
|||
ARG USER_NAME=stratum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we change the default username?
script.py
Outdated
@@ -0,0 +1,5 @@ | |||
from scapy.all import * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any plan to address this?
setup.sh
Outdated
@@ -0,0 +1,29 @@ | |||
#!/usr/bin/env bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any plan to address this?
stratum/hal/bin/nikss/main.cc
Outdated
@@ -68,4 +68,4 @@ ::util::Status Main(int argc, char* argv[]) { | |||
|
|||
int main(int argc, char* argv[]) { | |||
return stratum::hal::nikss::Main(argc, argv).error_code(); | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline EOF
return ::util::OkStatus(); | ||
} | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is it commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove or explan in a comment
This should fix it. The previous commit was made by mistake. |
No description provided.