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

docs: security acknowledgement #15387

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucasgonze
Copy link
Contributor

Summary

Add researcher Nathaniel Bennett to security acknowledgements in README.

Test Plan

No breakage possible.

Additional Information

  • This change is backwards-breaking

Security Considerations

Benefits security by encouraging future research and disclosures.

Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: ci All updates on CI (Jenkins/CircleCi/Github Action) label Feb 29, 2024
}


function build_test() {
service magma@* stop
# sometimes this package is auto removed.

apt install -y linux-modules-extra-`uname -r`
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
Quote this to prevent word splitting. SC2046

}


function build_test() {
service magma@* stop
# sometimes this package is auto removed.

apt install -y linux-modules-extra-`uname -r`
Copy link
Contributor

Choose a reason for hiding this comment

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

[shellcheck] reported by reviewdog 🐶
Use $(...) notation instead of legacy backticks .... SC2006


set -e
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
source "$SCRIPT_DIR"/../lib/util.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [shellcheck] reported by reviewdog 🐶
Not following: ./../lib/util.sh: openBinaryFile: does not exist (No such file or directory) SC1091

# Create python virtual env to install python3 packages that do not work with apt
python3 -m venv env
VENV_DIR=$(pwd)/env
source env/bin/activate
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [shellcheck] reported by reviewdog 🐶
Not following: env/bin/activate: openBinaryFile: does not exist (No such file or directory) SC1091


i=0
while [ $i -lt 60 ]
do
val=$(docker-compose -f docker-compose-e2e.yml logs magmalte 2>&1 | grep 'Production server started on port 8081' | wc -l)
val=$(docker compose -f docker-compose-e2e.yml logs magmalte 2>&1 | grep 'Production server started on port 8081' | wc -l)
Copy link
Contributor

Choose a reason for hiding this comment

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

[shellcheck] reported by reviewdog 🐶
Consider using grep -c instead of grep|wc -l. SC2126

echo "Generating compile_commands.json for C/C++ code navigation"
"$1"/dev_tools/gen_compilation_database.py

echo "Setting up Bazel Bash completion"
"$1"/bazel/scripts/setup_bazel_bash_completion.sh $(cat "$1"/.bazelversion)
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [shellcheck] reported by reviewdog 🐶
Quote this to prevent word splitting. SC2046

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

hadolint

lte/gateway/docker/mme/Dockerfile.ubuntu18.04|209 col 1| Use WORKDIR to switch to a directory
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|209 col 1| Use $(...) notation instead of legacy backticks ....
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|219 col 1| Use WORKDIR to switch to a directory
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|219 col 1| Use $(...) notation instead of legacy backticks ....
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|250 col 1| Use WORKDIR to switch to a directory
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|250 col 1| Double quote to prevent globbing and word splitting.
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|261 col 1| Use WORKDIR to switch to a directory
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|261 col 1| echo may not expand escape sequences. Use printf.
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|292 col 1| Double quote to prevent globbing and word splitting.
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|293 col 1| Multiple consecutive RUN instructions. Consider consolidation.
lte/gateway/docker/mme/Dockerfile.ubuntu18.04|293 col 1| Double quote to prevent globbing and word splitting.
lte/gateway/docker/services/c/Dockerfile|170 col 1| Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>
lte/gateway/docker/services/c/Dockerfile|170 col 1| Avoid additional packages by specifying --no-install-recommends
orc8r/cloud/docker/controller/Dockerfile|17 col 1| Do not use --platform flag with FROM

python3-aioeventlet

##### libgtpnl
# review https://github.com/OPENAIRINTERFACE/openair-cn/blob/master/build/tools/build_helper.gtpnl
RUN git clone https://git.osmocom.org/libgtpnl && \
RUN git clone https://gitea.osmocom.org/cellular-infrastructure/libgtpnl && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3003> reported by reviewdog 🐶
Use WORKDIR to switch to a directory

add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-ci main' && \
add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-1.7.0 main' && \
COPY keys/linux_foundation_registry_key.asc /etc/apt/trusted.gpg.d/magma.asc
RUN add-apt-repository 'deb https://linuxfoundation.jfrog.io/artifactory/magma-packages-test focal-ci main' && \
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <DL3009> reported by reviewdog 🐶
Delete the apt-get lists after installing something

add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-ci main' && \
add-apt-repository 'deb https://artifactory.magmacore.org/artifactory/debian-test focal-1.7.0 main' && \
COPY keys/linux_foundation_registry_key.asc /etc/apt/trusted.gpg.d/magma.asc
RUN add-apt-repository 'deb https://linuxfoundation.jfrog.io/artifactory/magma-packages-test focal-ci main' && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3008> reported by reviewdog 🐶
Pin versions in apt get install. Instead of apt-get install <package> use apt-get install <package>=<version>

@@ -98,4 +112,7 @@
RUN ln -s /workspaces/magma/.bazel-cache /var/cache/bazel-cache
RUN ln -s /workspaces/magma/.bazel-cache-repo /var/cache/bazel-cache-repo

# Convenience alias to build AGW services
RUN echo 'alias magma-build-agw="bazel build //... --build_tag_filters=service,util_script,-mme_oai"' >> ~/.bashrc
Copy link
Contributor

Choose a reason for hiding this comment

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

📝 [hadolint] <DL3059> reported by reviewdog 🐶
Multiple consecutive RUN instructions. Consider consolidation.

@@ -15,13 +26,15 @@ RUN rm -Rf $MAGMA_ROOT $C_BUILD && mkdir -p $C_BUILD
COPY ./ $MAGMA_ROOT

# Build MME executables
RUN cd $MAGMA_ROOT/lte/gateway && \
RUN cd $MAGMA_ROOT && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3003> reported by reviewdog 🐶
Use WORKDIR to switch to a directory

cd .. && rm -R --interactive=never _build

##### NETTLE / gnutls
RUN tar -xf nettle-2.5.tar.gz && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <SC2069> reported by reviewdog 🐶
To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify).


##### liblfds
# https://www.liblfds.org/mediawiki/index.php?title=r7.1.0:Building_Guide_(liblfds)
RUN git clone https://github.com/liblfds/liblfds.git && \
cd liblfds/liblfds/liblfds7.1.0/liblfds710/build/gcc_gnumake/ && \
RUN cd /liblfds/liblfds/liblfds7.1.0/liblfds710/build/gcc_gnumake/ && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3003> reported by reviewdog 🐶
Use WORKDIR to switch to a directory


##### liblfds
# https://www.liblfds.org/mediawiki/index.php?title=r7.1.0:Building_Guide_(liblfds)
RUN git clone https://github.com/liblfds/liblfds.git && \
cd liblfds/liblfds/liblfds7.1.0/liblfds710/build/gcc_gnumake/ && \
RUN cd /liblfds/liblfds/liblfds7.1.0/liblfds710/build/gcc_gnumake/ && \
Copy link
Contributor

Choose a reason for hiding this comment

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

[hadolint] <SC2006> reported by reviewdog 🐶
Use $(...) notation instead of legacy backticks ....


##### libgtpnl
# review https://github.com/OPENAIRINTERFACE/openair-cn/blob/master/build/tools/build_helper.gtpnl
RUN git clone https://git.osmocom.org/libgtpnl && \
cd libgtpnl && \
RUN cd libgtpnl && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <DL3003> reported by reviewdog 🐶
Use WORKDIR to switch to a directory


##### libgtpnl
# review https://github.com/OPENAIRINTERFACE/openair-cn/blob/master/build/tools/build_helper.gtpnl
RUN git clone https://git.osmocom.org/libgtpnl && \
cd libgtpnl && \
RUN cd libgtpnl && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [hadolint] <SC2069> reported by reviewdog 🐶
To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify).

BUILD.bazel Outdated
)

alias(
name = "monitord",
Copy link
Contributor

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"monitord" is a misspelling of "monitored"

pkg_filegroup(
name = "cwf_lte_python_services",
srcs = ["{py_service}_expanded".format(py_service = py_service) for py_service in [
"monitord",
Copy link
Contributor

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"monitord" is a misspelling of "monitored"

memset(&itti_msg, 0, sizeof(itti_n11_create_pdu_session_response_t));

if (SetSmfSessionContext_itti(request, &itti_msg) == false) {
return Status::CANCELLED;
Copy link
Contributor

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"CANCELLED" is a misspelling of "CANCELED"

pco_req.protocol_or_container_ids[0].id =
PCO_CI_IP_ADDRESS_ALLOCATION_VIA_NAS_SIGNALLING;
magma::lte::oai::PcoProtocol* pco_protocol = pco_req.add_pco_protocol();
pco_protocol->set_id(PCO_CI_IP_ADDRESS_ALLOCATION_VIA_NAS_SIGNALLING);
Copy link
Contributor

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"SIGNALLING" is a misspelling of "SIGNALING"

|enforcement_stats_rule_install_fail |Counts number of times rule install failed in enforcement stats app |AGW |pipelined |
|network_iface_status |Status of a network interface required for data pipeline |AGW |pipelined |
| | | | |
|subscriber_icmp_latency_ms |Reported latency for subscriber in milliseconds |AGW |monitord |
Copy link
Contributor

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"monitord" is a misspelling of "monitored"

- Bootstraping gateway on the network and maintaining gateway's client certificates
- Checking in with the cloud and providing the cloud with up to date gateway status
- Monitoring gateway services, collecting and publishing the services' and system metrics to the cloud
- Creating and maintaining secure cloud to gateway RPC channel for real time cloud requests fulfilment
Copy link
Contributor

Choose a reason for hiding this comment

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

[misspell] reported by reviewdog 🐶
"fulfilment" is a misspelling of "fulfillment"

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

markdownlint

docs/readmes/orc8r/deploy_using_ansible.md|18 col 44| MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]
docs/readmes/orc8r/deploy_using_ansible.md|27| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [docs/readmes/orc8r/deploy_using_ansible.md|33|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L33) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
docs/readmes/orc8r/deploy_using_ansible.md|56| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [docs/readmes/orc8r/deploy_using_ansible.md|62|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L62) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
docs/readmes/orc8r/deploy_using_ansible.md|66| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [docs/readmes/orc8r/deploy_using_ansible.md|115|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L115) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
docs/readmes/orc8r/deploy_using_ansible.md|124| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [docs/readmes/orc8r/deploy_using_ansible.md|128|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L128) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
docs/readmes/orc8r/deploy_using_ansible.md|135| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [docs/readmes/orc8r/deploy_using_ansible.md|147 col 1|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L147) MD034/no-bare-urls Bare URL used [Context: "https://magma-test.nms.magma.l..."] [docs/readmes/orc8r/deploy_using_ansible.md|149|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L149) MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] [docs/readmes/orc8r/deploy_using_ansible.md|154|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L154) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
docs/readmes/orc8r/deploy_using_ansible.md|160| MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""] [docs/readmes/orc8r/deploy_using_ansible.md|173|](https://github.com/magma/magma/blob/205b5143008dc24b104b23995baba09531d44725/docs/readmes/orc8r/deploy_using_ansible.md#L173) MD040/fenced-code-language Fenced code blocks should have a language specified [Context: ""]
dp/tools/performance_tests/README.md|26| MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]
experimental/cloudstrapper/README.md|285 col 54| MD033/no-inline-html Inline HTML [Element: dirInenvtory]
experimental/cloudstrapper/README.md|378 col 42| MD033/no-inline-html Inline HTML [Element: Local]
feg/gateway/helm/feg-kubevirt/README.md|52 col 1| MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 5; Style: 1/2/3]
feg/gateway/helm/feg-kubevirt/README.md|134| MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]
feg/gateway/helm/feg-virtlet/README.md|126| MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]
feg/gateway/helm/feg-virtlet/README.md|150 col 1| MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1]
hil_testing/README.md|167| MD003/heading-style/header-style Heading style [Expected: atx; Actual: atx_closed]
hil_testing/spirent_automation/TC/Testplan.md|183| MD036/no-emphasis-as-heading/no-emphasis-as-header Emphasis used instead of a heading [Context: "Validation Categories -"]
lte/gateway/deploy/agwc-helm-charts/README.md|44| MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "# Delete the AGW if needed usi..."]
README.md|10 col 5| MD033/no-inline-html Inline HTML [Element: a]
README.md|10 col 69| MD033/no-inline-html Inline HTML [Element: img]
SECURITY.md|39 col 1| MD029/ol-prefix Ordered list item prefix [Expected: 4; Actual: 3; Style: 1/2/3]
SECURITY.md|41 col 1| MD029/ol-prefix Ordered list item prefix [Expected: 5; Actual: 4; Style: 1/2/3]
SECURITY.md|43 col 1| MD029/ol-prefix Ordered list item prefix [Expected: 6; Actual: 5; Style: 1/2/3]
SECURITY.md|49 col 1| MD029/ol-prefix Ordered list item prefix [Expected: 7; Actual: 6; Style: 1/2/3]
show-tech/README.md|1| MD002/first-heading-h1/first-header-h1 First heading should be a top-level heading [Expected: h1; Actual: h2]
show-tech/README.md|1| MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Prereq"]

CONTRIBUTING.md Outdated
1. If a TSC member is inactive, the other TSC members have the authority to vote the inactive member off the TSC with a two thirds vote.
2. In the case that a TSC member resigns or is removed, a special election to fill the open seat would occur following the same election process outlined in section 3.
3.There will be an annual election to determine the composition of the TSC.
4. Employees from the same organization/company should not hold more than one TSC seat.
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD029/ol-prefix Ordered list item prefix [Expected: 3; Actual: 4; Style: 1/2/3]


#### Creating Gateway Info

#### Creating Gateway Info
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]


#### Creating Gateway Info

#### Creating Gateway Info
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD001/heading-increment/header-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h4]


## Federated Gateway Services & Tools

The following services run on the federated gateway:
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD006/ul-start-left Consider starting bulleted lists at the beginning of the line [Expected: 0; Actual: 1]


## Federated Gateway Services & Tools

The following services run on the federated gateway:
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD007/ul-indent Unordered list indentation [Expected: 0; Actual: 1]

3. Perform relevant sync/changes if any update has been performed on NMS -> Network.
4. Make sure that configuration for [Gateway](https://docs.magmacore.org/docs/lte/deploy_config_agw), [eNodeB](https://docs.magmacore.org/docs/lte/deploy_config_enodebd) and [APN ](https://docs.magmacore.org/docs/lte/deploy_config_apn)has been followed.
4. Make sure that configuration for [Gateway](https://magma.github.io/magma/docs/lte/deploy_config_agw), [eNodeB](https://magma.github.io/magma/docs/lte/deploy_config_enodebd) and [APN ](https://magma.github.io/magma/docs/lte/deploy_config_apn)has been followed.
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD039/no-space-in-links Spaces inside link text [Context: "[APN ]"]

@@ -78,13 +78,13 @@
### Troubleshooting steps

1. Perform relevant sync/changes if any update has been performed on NMS -> Network.
2. Make sure that configuration for [Gateway](https://docs.magmacore.org/docs/lte/deploy_config_agw), [eNodeB](https://docs.magmacore.org/docs/lte/deploy_config_enodebd) and [APN ](https://docs.magmacore.org/docs/lte/deploy_config_apn)has been followed.
3. Please follow troubleshooting steps from [here](https://docs.magmacore.org/docs/howtos/troubleshooting/user_unable_to_attach) for issue Gateway. Please note the error code.
2. Make sure that configuration for [Gateway](https://magma.github.io/magma/docs/lte/deploy_config_agw), [eNodeB](https://magma.github.io/magma/docs/lte/deploy_config_enodebd) and [APN ](https://magma.github.io/magma/docs/lte/deploy_config_apn)has been followed.
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD039/no-space-in-links Spaces inside link text [Context: "[APN ]"]

@@ -35,8 +35,8 @@ With Grafana, you can create your own custom dashboards and populate them with a
The simple way is to just click on the “+” icon on the left sidebar, then create a new dashboard. There is ample documentation about grafana dashboards online if you need help creating your dashboard.

![Grafana new dashboard](assets/nms/grafana_new_dashboard.png)
- Grafana documentation on creating dashboards: [Grafana Dashboards](_https://grafana.com/docs/grafana/latest/features/dashboard/dashboards/_)
- Prometheus documentation on writing queries: [Prometheus Querying](_https://prometheus.io/docs/prometheus/latest/querying/basics/_)
- Grafana documentation on creating dashboards: [Grafana Dashboards](https://grafana.com/docs/grafana/latest/features/dashboard/dashboards/)
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "- Grafana documentation on cre..."]

@@ -154,4 +154,4 @@ We have two options to implement this, we will choose it depending on time in 1.
## **References**

* https://gist.github.com/karthiksubraveti/0daee7f5446cc72460497e247d427ee6
* _https://raw.githubusercontent.com/magma/magma/d691319dd40e0a7d2822a993f819beca7490e65d/docs/readmes/lte/Attach_call_flow_in_Magma.txt_
* [_https://raw.githubusercontent.com/magma/magma/d691319dd40e0a7d2822a993f819beca7490e65d/docs/readmes/lte/Attach_call_flow_in_Magma.txt_](https://raw.githubusercontent.com/magma/magma/d691319dd40e0a7d2822a993f819beca7490e65d/docs/readmes/lte/Attach_call_flow_in_Magma.txt)
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD004/ul-style Unordered list style [Expected: dash; Actual: asterisk]


# Deploy Orchestrator using Ansible (Beta)

This how-to guide can be used to deploy Magma's Orchestrator on any cloud environment.
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]

security (HTTP2 & TLS) as well as support for multiple programming languages. The Remote Procedures below provide
simple, extensible, multi-language interfaces based on GRPC which allow developers to avoid dealing with the
complexities of 3GPP protocols. Implementing these RPC interfaces allows networks running on Magma to integrate
The federated gateway provides remote procedure call (GRPC) based interfaces to standard 3GPP components, such as
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
The federated gateway provides remote procedure call (GRPC) based interfaces to standard 3GPP components, such as
The federated gateway provides remote procedure call (GRPC) based interfaces to standard 3GPP components, such as

Comment on lines 28 to 29


Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change

Comment on lines 35 to 39
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
- `session_proxy` - translates calls from GRPC to gx/gy protocol between AGW and PCRF/OCS
- `csfb` - translates calls from GRPC interface to csfb protocol between AGW and VLR
- `swx_proxy` - translates GRPC interface to SWx protocol between AGW and HSS
- `gateway_health` - provides health updates to the orc8r to be used for
achieving highly available federated gateway clusters (see **[Magma Product Spec](https://github.com/facebookincubator/magma/blob/master/docs/Magma_Specs_V1.1.pdf)**
- `gateway_health` - provides health updates to the orc8r to be used for
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
- `session_proxy` - translates calls from GRPC to gx/gy protocol between AGW and PCRF/OCS
- `csfb` - translates calls from GRPC interface to csfb protocol between AGW and VLR
- `swx_proxy` - translates GRPC interface to SWx protocol between AGW and HSS
- `gateway_health` - provides health updates to the orc8r to be used for
achieving highly available federated gateway clusters (see **[Magma Product Spec](https://github.com/facebookincubator/magma/blob/master/docs/Magma_Specs_V1.1.pdf)**
- `gateway_health` - provides health updates to the orc8r to be used for
- `s6a_proxy` - translates calls from GRPC to S6a protocol between AGW and HSS
- `session_proxy` - translates calls from GRPC to gx/gy protocol between AGW and PCRF/OCS
- `csfb` - translates calls from GRPC interface to csfb protocol between AGW and VLR
- `swx_proxy` - translates GRPC interface to SWx protocol between AGW and HSS
- `gateway_health` - provides health updates to the orc8r to be used for

- `gateway_health` - provides health updates to the orc8r to be used for
achieving highly available federated gateway clusters (see **[Magma Product Spec](https://github.com/facebookincubator/magma/blob/master/docs/Magma_Specs_V1.1.pdf)**
- `gateway_health` - provides health updates to the orc8r to be used for
achieving highly available federated gateway clusters (see **[Magma Product Spec](https://github.com/magma/magma/blob/v1.1.0/docs/Magma_Specs_V1.1.pdf)**
for more details)
- `radiusd` - fetches metrics from the running radius server and exports them
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
- `radiusd` - fetches metrics from the running radius server and exports them
- `radiusd` - fetches metrics from the running radius server and exports them

@@ -14,7 +14,7 @@ If you are going to run or build the Symphony Agent you will need to install Doc
There are some known limitations to running Docker on MacOS, the biggest being that you are unable to run ping over IPv6 from inside these Docker containers. But if you don't need your agent to do these things, this should be fine.


Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change

@@ -233,15 +233,15 @@

- For mandatory lint checks, we have a unit test that runs [Pylint](https://pypi.org/project/pylint/) on all gateway services
- On CI, the check gets run as part of the `lte-test` job
- Additionally, we have a [Reviewdog](https://github.com/reviewdog/reviewdog) linter using [wemake-python-styleguide](https://wemake-python-stylegui.de/en/latest/) enabled to aid the code review process
- Additionally, we have a [Reviewdog](https://github.com/reviewdog/reviewdog) linter using [wemake-python-styleguide](https://github.com/wemake-services/wemake-python-styleguide) enabled to aid the code review process
- To run the linter locally, use the [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py)
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
- To run the linter locally, use the [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py)
- To run the linter locally, use the [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py)

@@ -233,15 +233,15 @@

- For mandatory lint checks, we have a unit test that runs [Pylint](https://pypi.org/project/pylint/) on all gateway services
- On CI, the check gets run as part of the `lte-test` job
- Additionally, we have a [Reviewdog](https://github.com/reviewdog/reviewdog) linter using [wemake-python-styleguide](https://wemake-python-stylegui.de/en/latest/) enabled to aid the code review process
- Additionally, we have a [Reviewdog](https://github.com/reviewdog/reviewdog) linter using [wemake-python-styleguide](https://github.com/wemake-services/wemake-python-styleguide) enabled to aid the code review process
- To run the linter locally, use the [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py)

**Formatters**

- We recommend [autopep8](https://pypi.org/project/autopep8/) as it conforms to [pep8](https://www.python.org/dev/peps/pep-0008/)
- The above-mentioned [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py) also has an option to format your changes with
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
- The above-mentioned [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py) also has an option to format your changes with
- The above-mentioned [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py) also has an option to format your changes with

- To run the linter locally, use the [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py)

**Formatters**

- We recommend [autopep8](https://pypi.org/project/autopep8/) as it conforms to [pep8](https://www.python.org/dev/peps/pep-0008/)
- The above-mentioned [precommit script](https://github.com/magma/magma/blob/master/lte/gateway/python/precommit.py) also has an option to format your changes with
[isort](https://pypi.org/project/isort/), [autopep8](https://pypi.org/project/autopep8/), and [add-trailing-comma](https://pypi.org/project/add-trailing-comma/)
- We do *not* recommend other formatters such as [black](https://black.readthedocs.io/en/stable/installation_and_usage.html), as it diverges from pep8 on basic things like line length, etc.
- We do *not* recommend other formatters such as [black](https://ichard26-testblackdocs.readthedocs.io/en/refactor_docs/installation_and_usage.html), as it diverges from pep8 on basic things like line length, etc.


Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change

- `sudo ifup eth1`
- `sudo ip addr del 10.0.2.1/24 dev eth1`
- `sudo sed -i 's/address 10.0.2.1/address 192.168.60.142/g'`
` /etc/network/interfaces.d/eth1`
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
` /etc/network/interfaces.d/eth1`
`/etc/network/interfaces.d/eth1`

- Enable Pipelined `ryu_rest_service`
- `grep -qF 'ryu_rest_service' /etc/magma/pipelined.yml || sudo sed -i `
- `grep -qF 'ryu_rest_service' /etc/magma/pipelined.yml || sudo sed -i `
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint-fix] reported by reviewdog 🐶

Suggested change
- `grep -qF 'ryu_rest_service' /etc/magma/pipelined.yml || sudo sed -i `
- `grep -qF 'ryu_rest_service' /etc/magma/pipelined.yml || sudo sed -i`

typedef magma::proto_map_s<uint32_t,
struct s_plus_p_gw_eps_bearer_context_information_s*>
// Data: S11BearerContext*
// TODO (rsarwad): rename S11BearerContext to SpgwSessionContext and also
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]

@@ -103,7 +110,8 @@ static void add_portno_rec(char* port_name, uint32_t portno) {
// all records.
new_size = INIT_GTP_TABLE_SIZE;
}
struct gtp_portno* new_arr = calloc(new_size, sizeof(struct gtp_portno));
struct gtp_portno* new_arr =
(gtp_portno*)calloc(new_size, sizeof(struct gtp_portno));
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<gtp_portno*>(...) instead [readability/casting] [4]

@@ -267,7 +275,8 @@
}
OAILOG_INFO(LOG_GTPV1U, "Using GTP type: %s", ovs_gtp_type);

gtp_portno_rec.arr = calloc(INIT_GTP_TABLE_SIZE, sizeof(struct gtp_portno));
gtp_portno_rec.arr =
(gtp_portno*)calloc(INIT_GTP_TABLE_SIZE, sizeof(struct gtp_portno));
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Using C-style cast. Use reinterpret_cast<gtp_portno*>(...) instead [readability/casting] [4]

#include "lte/gateway/c/core/oai/include/mme_config.h"
#include "lte/gateway/c/core/oai/include/mme_app_messages_types.hpp"
#include "lte/gateway/c/core/oai/include/mme_config.hpp"
#include "lte/gateway/c/core/oai/include/mme_init.hpp"
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
"lte/gateway/c/core/oai/include/mme_init.hpp" already included at lte/gateway/c/core/oai/tasks/s1ap/s1ap_mme.cpp:41 [build/include] [4]

(proto_ip->pdn_type() == IPv6 || proto_ip->pdn_type() == IPv4_AND_v6)) {
inet_pton(AF_INET6, proto_ip->ipv6_addr().c_str(), ipv6);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Closing brace should be aligned with beginning of struct in_addr [whitespace/indent] [3]

eps_bearer_ctxt->s_gw_teid_S5_S8_up);
}

// TODO Need to add handling on failing to delete s1-u tunnel rules from
Copy link
Contributor

Choose a reason for hiding this comment

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

[cpplint] reported by reviewdog 🐶
Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

pep8

lte/gateway/fabfile.py|565 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/fabfile.py|566 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/fabfile.py|567 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/fabfile.py|591 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/fabfile.py|597 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/fabfile.py|630 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/fabfile.py|638 col 1| D103 Missing docstring in public function
lte/gateway/fabfile.py|672 col 1| D401 First line should be in imperative mood
lte/gateway/fabfile.py|719 col 1| DAR101 Missing parameter(s) in Docstring: - c
lte/gateway/fabfile.py|719 col 1| DAR101 Missing parameter(s) in Docstring: - gateway_ip
lte/gateway/fabfile.py|719 col 1| DAR101 Missing parameter(s) in Docstring: - test_mode
lte/gateway/fabfile.py|719 col 1| DAR101 Missing parameter(s) in Docstring: - tests
lte/gateway/fabfile.py|719 col 1| DAR101 Missing parameter(s) in Docstring: - vm_data
lte/gateway/fabfile.py|753 col 9| Q003 Change outer quotes to avoid escaping inner quotes
lte/gateway/deploy/roles/trfserver/files/traffic_server.py|500 col 1| D300 Use """triple double quotes"""
lte/gateway/deploy/roles/trfserver/files/traffic_server.py|500 col 5| Q002 Single quote docstring found but double quotes preferred
lte/gateway/deploy/roles/trfserver/files/traffic_server.py|710 col 10| N806 variable 'WAITING_TIME' in function should be lowercase
lte/gateway/deploy/roles/trfserver/files/traffic_server.py|711 col 10| N806 variable 'MAX_WAITING_TIME' in function should be lowercase
lte/gateway/python/magma/mobilityd/mac.py|23 col 1| D105 Missing docstring in magic method
lte/gateway/python/magma/mobilityd/ip_descriptor.py|81 col 1| D105 Missing docstring in magic method
lte/gateway/python/magma/mobilityd/ip_descriptor.py|82 col 16| WPS222 Found a condition with too much logic: 6 > 4
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|25 col 1| S404 Consider possible security implications associated with the subprocess module.
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|49 col 1| WPS407 Found mutable module constant
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|87 col 1| D102 Missing docstring in public method
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|95 col 1| D102 Missing docstring in public method
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|104 col 1| D403 First word of the first line should be properly capitalized
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|166 col 1| D102 Missing docstring in public method
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|176 col 1| D401 First line should be in imperative mood
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|234 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|250 col 13| WPS441 Found control variable used after block: sid
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|250 col 17| WPS361 Found an inconsistently structured comprehension
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|251 col 44| WPS441 Found control variable used after block: sid
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|283 col 1| DAR101 Missing parameter(s) in Docstring: - mac
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|283 col 1| DAR201 Missing "Returns" in Docstring: - return
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|283 col 1| DAR101 Missing parameter(s) in Docstring: - vlan
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|294 col 20| WPS529 Found implicit .get() dict usage
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|382 col 5| WPS602 Found using @staticmethod
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|383 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/ip_allocator_dhcp.py|443 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|40 col 1| S108 Probable insecure usage of temp file/directory.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|146 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|149 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|152 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|256 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|257 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|258 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|281 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|282 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|304 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|305 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|326 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp.py|327 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|20 col 1| S404 Consider possible security implications associated with the subprocess module.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|56 col 1| S607 Starting a process with a partial executable path
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|56 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|159 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|167 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|173 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|181 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|193 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/mobilityd/tests/test_ip_allocator_dhcp_with_vlan.py|209 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/pipelined/gw_mac_address.py|17 col 1| S404 Consider possible security implications associated with the subprocess module.
lte/gateway/python/magma/pipelined/gw_mac_address.py|47 col 1| D103 Missing docstring in public function
lte/gateway/python/magma/pipelined/gw_mac_address.py|58 col 1| D103 Missing docstring in public function
lte/gateway/python/magma/pipelined/gw_mac_address.py|69 col 1| D103 Missing docstring in public function
lte/gateway/python/magma/pipelined/gw_mac_address.py|72 col 1| S607 Starting a process with a partial executable path
lte/gateway/python/magma/pipelined/gw_mac_address.py|72 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/pipelined/gw_mac_address.py|74 col 1| S607 Starting a process with a partial executable path
lte/gateway/python/magma/pipelined/gw_mac_address.py|74 col 1| S603 subprocess call - check for execution of untrusted input.
lte/gateway/python/magma/pipelined/gw_mac_address.py|85 col 1| D103 Missing docstring in public function
lte/gateway/python/magma/pipelined/gw_mac_address.py|88 col 5| WPS327 Found useless continue at the end of the loop
lte/gateway/python/magma/pipelined/gw_mac_address.py|90 col 22| WPS518 Found implicit enumerate() call
lte/gateway/python/magma/pipelined/gw_mac_address.py|151 col 1| S104 Possible binding to all interfaces.
lte/gateway/python/magma/pipelined/gw_mac_address.py|154 col 16| WPS529 Found implicit .get() dict usage
lte/gateway/python/magma/pipelined/gw_mac_address.py|183 col 72| WPS339 Found number with meaningless zeros: 0x0003
lte/gateway/python/magma/pipelined/gw_mac_address.py|189 col 42| WPS339 Found number with meaningless zeros: 0x0003
lte/gateway/python/magma/pipelined/gw_mac_address.py|192 col 40| WPS341 Found wrong hex number case: 0xffff
lte/gateway/python/magma/pipelined/gw_mac_address.py|198 col 26| WPS341 Found wrong hex number case: 0xffff
lte/gateway/python/magma/pipelined/ifaces.py|34 col 1| D103 Missing docstring in public function
lte/gateway/python/magma/pipelined/openflow/magma_match.py|42 col 56| C816 missing trailing comma in Python 3.6+
lte/gateway/python/magma/pipelined/tests/test_ifaces.py|29 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/magma/pipelined/app/packet_parser.py|20 col 1| WPS407 Found mutable module constant
lte/gateway/python/magma/pipelined/app/packet_parser.py|46 col 1| WPS407 Found mutable module constant
lte/gateway/python/magma/pipelined/app/packet_parser.py|62 col 1| D101 Missing docstring in public class
lte/gateway/python/magma/pipelined/app/packet_parser.py|62 col 1| WPS306 Found class without a base class: ParseSocketPacket
lte/gateway/python/magma/pipelined/app/packet_parser.py|66 col 1| D105 Missing docstring in magic method
lte/gateway/python/magma/pipelined/app/packet_parser.py|74 col 1| D101 Missing docstring in public class
lte/gateway/python/magma/pipelined/app/packet_parser.py|74 col 1| WPS306 Found class without a base class: Ethernet
lte/gateway/python/magma/pipelined/app/packet_parser.py|80 col 1| D105 Missing docstring in magic method
lte/gateway/python/magma/pipelined/app/packet_parser.py|87 col 1| D101 Missing docstring in public class
lte/gateway/python/magma/pipelined/app/packet_parser.py|87 col 1| WPS306 Found class without a base class: Dot1Q
lte/gateway/python/magma/pipelined/app/packet_parser.py|94 col 1| D105 Missing docstring in magic method
lte/gateway/python/magma/pipelined/app/packet_parser.py|102 col 1| D101 Missing docstring in public class
lte/gateway/python/magma/pipelined/app/packet_parser.py|102 col 1| WPS306 Found class without a base class: Arp
lte/gateway/python/magma/pipelined/app/packet_parser.py|125 col 1| D105 Missing docstring in magic method
lte/gateway/python/magma/pipelined/app/packet_parser.py|149 col 40| WPS349 Found redundant subscript slice
lte/gateway/python/magma/pipelined/app/packet_parser.py|157 col 23| WPS339 Found number with meaningless zeros: 0b00010000
lte/gateway/python/magma/pipelined/app/packet_parser.py|158 col 24| WPS339 Found number with meaningless zeros: 0b00001111
lte/gateway/python/magma/pipelined/app/packet_parser.py|164 col 39| WPS349 Found redundant subscript slice
lte/gateway/python/magma/pipelined/app/enforcement.py|363 col 1| D401 First line should be in imperative mood
lte/gateway/python/magma/pipelined/app/enforcement.py|363 col 1| DAR201 Missing "Returns" in Docstring: - return
lte/gateway/python/magma/pipelined/app/restart_mixin.py|161 col 1| D401 First line should be in imperative mood; try rephrasing
lte/gateway/python/magma/pipelined/app/restart_mixin.py|161 col 1| DAR201 Missing "Returns" in Docstring: - return
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|30 col 1| WPS301 Found dotted raw import: scapy.packet
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|38 col 1| D101 Missing docstring in public class
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|50 col 1| D101 Missing docstring in public class
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|50 col 1| WPS306 Found class without a base class: MacAddress
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|54 col 1| D105 Missing docstring in magic method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|57 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|60 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|63 col 20| P101 format string does contain unindexed parameters
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|65 col 13| WPS503 Found useless returning else statement
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|68 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|69 col 54| WPS435 Found list multiply
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|71 col 1| D105 Missing docstring in magic method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|75 col 1| D101 Missing docstring in public class
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|75 col 1| WPS306 Found class without a base class: DhcpHelperCli
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|89 col 9| WPS601 Found shadowed class attribute: _vlan
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|107 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|113 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|117 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|118 col 9| WPS601 Found shadowed class attribute: _state
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|127 col 5| WPS602 Found using @staticmethod
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|127 col 5| WPS605 Found method without arguments: _get_new_xid
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|128 col 1| S311 Standard pseudo-random generators are not suitable for security/cryptographic purposes.
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|131 col 5| WPS602 Found using @staticmethod
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|137 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|144 col 19| WPS237 Found a too complex f string
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|149 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|151 col 13| WPS601 Found shadowed class attribute: _state
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|159 col 19| WPS237 Found a too complex f string
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|164 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|165 col 9| WPS601 Found shadowed class attribute: _state
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|175 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|179 col 1| S104 Possible binding to all interfaces.
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|185 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|204 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|209 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|214 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|228 col 9| WPS601 Found shadowed class attribute: _state
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|232 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|239 col 31| WPS529 Found implicit .get() dict usage
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|243 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|243 col 5| WPS602 Found using @staticmethod
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|244 col 40| WPS349 Found redundant subscript slice
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|247 col 20| WPS529 Found implicit .get() dict usage
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|250 col 1| D102 Missing docstring in public method
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|260 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|271 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|277 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|289 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|303 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|317 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/dhcp_helper_cli.py|346 col 1| D103 Missing docstring in public function
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|21 col 1| F401 'dhcp_helper_cli.dhcp_helper_cli.release_arg_handler' imported but unused
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|60 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|61 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|62 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|63 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|64 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|73 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|74 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|75 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|76 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|77 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|86 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|87 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|88 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|89 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|90 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|112 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|122 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/dhcp_helper_cli/tests/test_dhcp_helper_cli.py|132 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/scripts/runtime_report.py|50 col 51| WPS520 Found compare with falsy constant
lte/gateway/python/scripts/runtime_report.py|58 col 17| WPS519 Found implicit sum() call
lte/gateway/python/integ_tests/federated_tests/fabfile.py|17 col 1| F401 'fabric.Connection' imported but unused
lte/gateway/python/integ_tests/federated_tests/fabfile.py|21 col 1| F401 'tools.fab.hosts.vagrant_setup' imported but unused
lte/gateway/python/integ_tests/federated_tests/fabfile.py|21 col 1| E402 module level import not at top of file
lte/gateway/python/integ_tests/federated_tests/fabfile.py|130 col 1| S602 subprocess call with shell=True identified, security issue.
lte/gateway/python/integ_tests/federated_tests/fabfile.py|141 col 1| DAR101 Missing parameter(s) in Docstring: - c
lte/gateway/python/integ_tests/federated_tests/fabfile.py|141 col 1| DAR101 Missing parameter(s) in Docstring: - provision_vm
lte/gateway/python/integ_tests/federated_tests/fabfile.py|184 col 1| D103 Missing docstring in public function
lte/gateway/python/integ_tests/federated_tests/fabfile.py|190 col 1| D103 Missing docstring in public function
lte/gateway/python/integ_tests/federated_tests/fabfile.py|196 col 1| S602 subprocess call with shell=True identified, security issue.
lte/gateway/python/integ_tests/common/service303_utils.py|26 col 1| D101 Missing docstring in public class
lte/gateway/python/integ_tests/common/mobility_service_client.py|142 col 1| D102 Missing docstring in public method
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|23 col 1| D101 Missing docstring in public class
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|78 col 15| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|81 col 16| WPS507 Found useless len() compare
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|82 col 23| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|84 col 19| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|87 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|87 col 17| B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|87 col 24| WPS444 Found incorrect keyword condition
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp.py|87 col 31| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|23 col 1| D101 Missing docstring in public class
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|74 col 37| WPS425 Found boolean non-keyword argument: True
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|79 col 15| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|82 col 16| WPS507 Found useless len() compare
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|83 col 23| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|85 col 19| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|88 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|88 col 17| B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|88 col 24| WPS444 Found incorrect keyword condition
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue.py|88 col 31| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_multiple_rar_tcp_data.py|236 col 14| N806 variable 'GTP_PORT' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|629 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|632 col 13| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1175 col 33| WPS510 Found in used with a non-set container
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1225 col 21| WPS514 Found implicit in condition
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1280 col 1| D102 Missing docstring in public method
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1300 col 17| WPS514 Found implicit in condition
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1316 col 1| D401 First line should be in imperative mood
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1316 col 1| DAR201 Missing "Returns" in Docstring: - return
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1348 col 13| WPS503 Found useless returning else statement
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1680 col 1| D102 Missing docstring in public method
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1695 col 1| D102 Missing docstring in public method
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1726 col 1| D102 Missing docstring in public method
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1733 col 70| E712 comparison to True should be 'if cond is True:' or 'if cond:'
lte/gateway/python/integ_tests/s1aptests/s1ap_utils.py|1734 col 82| E712 comparison to True should be 'if cond is True:' or 'if cond:'
lte/gateway/python/integ_tests/s1aptests/test_gateway_metrics_attach_detach.py|144 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_he.py|204 col 14| N806 variable 'GTP_PORT' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|23 col 1| D101 Missing docstring in public class
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|42 col 1| D403 First word of the first line should be properly capitalized
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|73 col 48| WPS425 Found boolean non-keyword argument: True
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|78 col 15| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|81 col 16| WPS507 Found useless len() compare
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|82 col 23| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|84 col 19| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|87 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|87 col 17| B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|87 col 24| WPS444 Found incorrect keyword condition
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_with_non_nat_dhcp_multi_ue_looped.py|87 col 31| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|70 col 10| N806 variable 'ulFlow1' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|78 col 10| N806 variable 'ulFlow2' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|86 col 10| N806 variable 'ulFlow3' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|94 col 10| N806 variable 'ulFlow4' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|102 col 10| N806 variable 'dlFlow1' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|110 col 10| N806 variable 'dlFlow2' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|118 col 10| N806 variable 'dlFlow3' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|126 col 10| N806 variable 'dlFlow4' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|175 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|192 col 10| N806 variable 'GTP_PORT' in function should be lowercase
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|211 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|212 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|237 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|238 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|248 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|257 col 26| WPS441 Found control variable used after block: i
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|260 col 35| WPS441 Found control variable used after block: i
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|264 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|282 col 36| WPS441 Found control variable used after block: i
lte/gateway/python/integ_tests/s1aptests/test_attach_detach_rar_tcp_data.py|282 col 52| WPS441 Found control variable used after block: i
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|78 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|81 col 5| WPS234 Found overly complex annotation: 4 > 3
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|105 col 1| D102 Missing docstring in public method
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|110 col 5| WPS234 Found overly complex annotation: 4 > 3
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|110 col 5| WPS234 Found overly complex annotation: 5 > 3
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|133 col 13| WPS441 Found control variable used after block: service
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|133 col 22| WPS441 Found control variable used after block: status
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|133 col 29| WPS361 Found an inconsistently structured comprehension
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|134 col 16| WPS507 Found useless len() compare
lte/gateway/python/integ_tests/s1aptests/test_services_are_running.py|134 col 20| WPS441 Found control variable used after block: status
lte/gateway/python/integ_tests/s1aptests/util/traffic_messages.py|70 col 13| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/util/traffic_messages.py|100 col 13| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/util/traffic_messages.py|127 col 13| WPS237 Found a too complex f string
lte/gateway/python/integ_tests/s1aptests/util/traffic_util.py|163 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/util/traffic_util.py|163 col 17| B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
lte/gateway/python/integ_tests/s1aptests/util/traffic_util.py|163 col 24| WPS444 Found incorrect keyword condition
lte/gateway/python/integ_tests/s1aptests/util/traffic_util.py|173 col 1| S101 Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
lte/gateway/python/integ_tests/s1aptests/util/traffic_util.py|173 col 17| B011 Do not call assert False since python -O removes these calls. Instead callers should raise AssertionError().
lte/gateway/python/integ_tests/s1aptests/util/traffic_util.py|173 col 24| WPS444 Found incorrect keyword condition
feg/gateway/fabfile.py|21 col 1| E402 module level import not at top of file
feg/gateway/fabfile.py|22 col 1| E402 module level import not at top of file
orc8r/gateway/python/magma/magmad/metrics_collector.py|428 col 1| DAR101 Missing parameter(s) in Docstring: - metric
orc8r/gateway/python/magma/magmad/metrics_collector.py|428 col 1| DAR201 Missing "Returns" in Docstring: - return
orc8r/gateway/python/magma/magmad/metrics_collector.py|474 col 1| DAR101 Missing parameter(s) in Docstring: - metric
orc8r/gateway/python/magma/magmad/metrics_collector.py|474 col 1| DAR201 Missing "Returns" in Docstring: - return
orc8r/gateway/python/magma/magmad/metrics_collector.py|522 col 1| DAR101 Missing parameter(s) in Docstring: - metric
orc8r/gateway/python/magma/magmad/metrics_collector.py|522 col 1| DAR201 Missing "Returns" in Docstring: - return
orc8r/gateway/python/magma/magmad/sync_rpc_client.py|55 col 32| WPS358 Found a float zero (0.0)
orc8r/gateway/python/magma/magmad/upgrade/docker_upgrader.py|219 col 23| P101 format string does contain unindexed parameters
orc8r/tools/fab/dev_utils.py|301 col 1| DAR101 Missing parameter(s) in Docstring: - c_gw
orc8r/tools/fab/dev_utils.py|301 col 1| DAR101 Missing parameter(s) in Docstring: - cert_path
orc8r/tools/fab/dev_utils.py|301 col 1| DAR101 Missing parameter(s) in Docstring: - control_proxy_setting_path
orc8r/tools/fab/pkg.py|27 col 1| DAR101 Missing parameter(s) in Docstring: - c
orc8r/tools/fab/pkg.py|27 col 1| DAR201 Missing "Returns" in Docstring: - return
orc8r/tools/fab/pkg.py|53 col 13| WPS503 Found useless returning else statement
orc8r/tools/fab/pkg.py|63 col 1| D103 Missing docstring in public function
orc8r/tools/fab/pkg.py|64 col 12| WPS349 Found redundant subscript slice
orc8r/tools/fab/pkg.py|67 col 1| D103 Missing docstring in public function
orc8r/tools/fab/pkg.py|140 col 1| D103 Missing docstring in public function
orc8r/tools/fab/pkg.py|162 col 1| S108 Probable insecure usage of temp file/directory.
orc8r/tools/fab/pkg.py|167 col 17| Q003 Change outer quotes to avoid escaping inner quotes
orc8r/tools/fab/pkg.py|172 col 17| Q003 Change outer quotes to avoid escaping inner quotes
orc8r/tools/fab/pkg.py|182 col 1| S108 Probable insecure usage of temp file/directory.
orc8r/tools/fab/pkg.py|186 col 1| S108 Probable insecure usage of temp file/directory.
orc8r/tools/fab/pkg.py|186 col 1| S108 Probable insecure usage of temp file/directory.
orc8r/tools/fab/pkg.py|187 col 1| S108 Probable insecure usage of temp file/directory.
orc8r/tools/fab/pkg.py|187 col 1| S108 Probable insecure usage of temp file/directory.
orc8r/cloud/docker/controller/supervisor_logger.py|43 col 1| D103 Missing docstring in public function
orc8r/cloud/docker/controller/supervisor_logger.py|45 col 9| WPS237 Found a too complex f string
cwf/gateway/fabfile.py|21 col 1| E402 module level import not at top of file
cwf/gateway/fabfile.py|252 col 9| WPS503 Found useless returning else statement
cwf/gateway/fabfile.py|312 col 20| Q003 Change outer quotes to avoid escaping inner quotes
cwf/gateway/fabfile.py|335 col 14| WPS462 Wrong multiline string usage
cwf/gateway/fabfile.py|335 col 15| WPS322 Found incorrect multi-line string
cwf/gateway/fabfile.py|421 col 21| Q003 Change outer quotes to avoid escaping inner quotes

@@ -0,0 +1,35 @@
# Copyright 2022 The Magma Authors.
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
D100 Missing docstring in public module



@pytest.hookimpl()
def pytest_sessionstart(session):
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
D103 Missing docstring in public function

@pytest.hookimpl()
def pytest_sessionstart(session):
if os.geteuid() != 0:
raise Exception(
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
WPS454 Found wrong raise exception type: Exception

def pytest_sessionstart(session):
if os.geteuid() != 0:
raise Exception(
"\n\n" + \
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
E502 the backslash is redundant between brackets

if os.geteuid() != 0:
raise Exception(
"\n\n" + \
"################################################################################\n" * 3 + \
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
E502 the backslash is redundant between brackets


pattern_template = "^ config.vm.define :{},.*$"
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
P103 other string does contain unindexed parameters


pattern_template = "^ config.vm.define :{},.*$"
open_port_template = ' {}.vm.network \"forwarded_port\", guest: 9443, host: 9443'
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
P103 other string does contain unindexed parameters

# after line) works different on linux and macos (but would be more elegant)
# 2. don't use -i (inline replace), but copy .bak file - because syntax
# differs between linux and macos
cmd_open_port_template = "sed '/{}/p; s/{}/{}/' Vagrantfile > v.bak && cp v.bak Vagrantfile && rm v.bak"
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
P103 other string does contain unindexed parameters

with settings(warn_only=True):
get(remote_path=TEST_SUMMARY_GLOB, local_path=dst_path)
@task
def get_test_summaries(c, sudo_tests=False, integration_tests=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
D103 Missing docstring in public function

@task
def get_test_summaries(c, sudo_tests=False, integration_tests=False):
results_folder = "test_results"
results_dir = "/var/tmp/"
Copy link
Contributor

Choose a reason for hiding this comment

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

[pep8] reported by reviewdog 🐶
S108 Probable insecure usage of temp file/directory.

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines. label Mar 8, 2024
Copy link
Contributor

github-actions bot commented Mar 8, 2024

❌ The Semantic PR check ended with status failure. See instructions on formatting your commit and pull request titles.

Copy link
Contributor

github-actions bot commented Mar 8, 2024

DP Lint & Test

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 06559a0.

♻️ This comment has been updated with latest results.

…ment security limitations.

Fixes magma/security#179
Fixes magma/security#182

Signed-off-by: Lucas Gonze <lucas@gonze.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ci All updates on CI (Jenkins/CircleCi/Github Action) size/XS Denotes a PR that changes 0-9 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant