Skip to content

Custom links with MAC address #14553

Closed Locked Answered by candlerb
Azmodeszer asked this question in Q&A
Dec 18, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

The ! in the URL is always encoded as "%21" in the resulting link, which renders it useless. Is there a way to enforce the "!"?

What's your Netbox version? I remember seeing there was a change in URL encoding recently. I think it's #13011. Maybe you need to make a feature request to allow this character as well. (FWIW, exclamation mark is a "sub-delim" in rfc3986. I think reserved character escaping should be done inside {{ .. }} expansions, but not in the static part of a URL)

Regarding database queries: the interface you are using is the Django ORM, so you can look at the Django documentation for this.

For finding the first interface with a MAC address you probably want something like o…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Azmodeszer
Comment options

@Azmodeszer
Comment options

@candlerb
Comment options

@Azmodeszer
Comment options

@candlerb
Comment options

Answer selected by Azmodeszer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants