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

Prefix export replacing subnets with • #9407

Closed
bakergt1 opened this issue May 23, 2022 · 4 comments
Closed

Prefix export replacing subnets with • #9407

bakergt1 opened this issue May 23, 2022 · 4 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@bakergt1
Copy link

NetBox version

V3.2.2

Python version

3.9

Steps to Reproduce

  1. Select selecting prefixes from site
  2. export current view
  3. Output is showing as

Prefix
10.51.16.0/20
"•

10.51.16.0/24"
"•

10.51.17.0/24"
"•

10.51.18.0/24"
"•

10.51.20.0/22"

Expected Behavior

there should be no • and blank lines in the export

Observed Behavior

nil

@bakergt1 bakergt1 added the type: bug A confirmed report of unexpected behavior in the application label May 23, 2022
@jeremystretch
Copy link
Member

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jeremystretch jeremystretch added the status: revisions needed This issue requires additional information to be actionable label May 23, 2022
@inigoleaga
Copy link

I have the same issue. Let me introduce some more info:

Netbox version:

v3.2.2

Python version:

v3.8.10

Steps to Reproduce:

  1. Go to IPAM -> Prefixes
  2. Filter the prefixes you want to export
  3. Select Export -> Current view
  4. A .csv will be downloaded.
  5. Open the .csv

Expected behavior:

When you open the CSV file you can see all the prefixes you had in your filter.

Observed behavior:

When you open the CSV file you can only see the parent networks. Any other prefix that is a child of another, will appear as "•". Please, check the attached image:

image

Hope this clarifies the issue.

@jeremystretch
Copy link
Member

The garbage characters result from improperly decoded Unicode, representing the hierarchical indentation of each prefix. You'll need to investigate your NetBox deployment and/or browser to determine why the fields are not being decoded properly. (You can confirm that this works as expected on the public demo instance.)

As for the content itself, it should be possible to implement a custom table column that omits the prepended characters from the output when rendering CSV data. Alternatively, you can work around this by swapping out the "Prefix" table column with the "Prefix (flat)" column before performing the export.

@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation and removed status: revisions needed This issue requires additional information to be actionable labels May 24, 2022
@bakergt1
Copy link
Author

Thanks Jeremy, this is only a new problem we have come across, its something that I have been using often. But we will investigate locally and see if we can work out what is happening.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels May 31, 2022
@jeremystretch jeremystretch self-assigned this May 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants