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

Change order of ipv4_to_ipv6 arguments #228

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lunkwill42
Copy link
Collaborator

As pointed out by our core CNaaS team, the argument order of the ipv4_to_ipv6 filter function was confusing, as the filter would normally be used in Jinja templates by piping a host's IPv4 address through the filter.

@codecov
Copy link

codecov bot commented Nov 19, 2021

Codecov Report

Merging #228 (88e6270) into develop (52840ef) will decrease coverage by 4.36%.
The diff coverage is n/a.

❗ Current head 88e6270 differs from pull request most recent head dc7d90d. Consider uploading reports for the commit dc7d90d to get more accurate results

@@             Coverage Diff             @@
##           develop     #228      +/-   ##
===========================================
- Coverage    63.78%   59.41%   -4.37%     
===========================================
  Files           63       61       -2     
  Lines         6627     6180     -447     
===========================================
- Hits          4227     3672     -555     
- Misses        2400     2508     +108     
Impacted Files Coverage Δ
src/cnaas_nms/tools/jinja_filters.py 18.18% <ø> (-18.56%) ⬇️
src/cnaas_nms/api/linknet.py 19.56% <0.00%> (-46.93%) ⬇️
src/cnaas_nms/confpush/underlay.py 19.60% <0.00%> (-37.26%) ⬇️
src/cnaas_nms/db/session.py 75.00% <0.00%> (-9.85%) ⬇️
src/cnaas_nms/db/linknet.py 79.71% <0.00%> (-9.32%) ⬇️
src/cnaas_nms/db/git.py 53.99% <0.00%> (-9.30%) ⬇️
src/cnaas_nms/api/app.py 68.42% <0.00%> (-8.51%) ⬇️
src/cnaas_nms/confpush/init_device.py 50.11% <0.00%> (-7.88%) ⬇️
src/cnaas_nms/api/repository.py 54.76% <0.00%> (-7.15%) ⬇️
... and 33 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lunkwill42 lunkwill42 marked this pull request as draft November 23, 2021 13:37
@lunkwill42
Copy link
Collaborator Author

Putting this into draft status, as our team keeps changing their minds about how this function should ultimately work.

Will get back to a proper PR once our design is (hopefully) stabilized

As pointed out by our core CNaaS team, the argument order of the
filter function was confusing, as the filter would normally be used
in Jinja templates by piping a host's IPv4 address through the filter.
The requirements keep changing back and forth, but apparently, it
was still important that the resulting IPv6 address was somewhat
human-readably similar to the original IPv4 address.

Also, it isn't always necessary to keep the full IPv4 address inside
the IPv6 address. Mostly, the host address from the IPv4 subnetwork
should be readable as the same on the corresponding IPV6 subnetwork,
so an option to keep only a number of IPv4 octets in the result was
added.
@lunkwill42 lunkwill42 force-pushed the uninett.feature.fix_ipv4_to_ipv6_filter branch from 14f8734 to dc7d90d Compare September 14, 2022 12:20
@sonarcloud
Copy link

sonarcloud bot commented May 31, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 41 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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.

1 participant