Skip to content
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

Open
wants to merge 23 commits into
base: main-nikss
Choose a base branch
from

Conversation

Kinnyeo
Copy link

@Kinnyeo Kinnyeo commented Sep 20, 2023

No description provided.

@Kinnyeo Kinnyeo marked this pull request as draft September 20, 2023 11:08
@Kinnyeo Kinnyeo marked this pull request as ready for review September 21, 2023 10:31
Copy link

@osinstom osinstom left a 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
Copy link

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 *
Copy link

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?

Copy link

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
Copy link

Choose a reason for hiding this comment

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

same as above

Copy link

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 $@"

Copy link

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;
}

/*
Copy link

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
Copy link

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?

Copy link
Collaborator

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

@Kinnyeo
Copy link
Author

Kinnyeo commented Oct 9, 2023

Done

Copy link

@osinstom osinstom left a 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
Copy link

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 *
Copy link

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
Copy link

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?

@@ -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();
}
}
Copy link

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();
}

/*
Copy link

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?

Copy link

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 reverts commit ddbec7f, reversing
changes made to 89b3777.
@Kinnyeo
Copy link
Author

Kinnyeo commented Nov 7, 2023

This should fix it. The previous commit was made by mistake.

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.

3 participants