Skip to content

Conversation

@DanSheps
Copy link
Member

@DanSheps DanSheps commented Sep 11, 2024

Fixes: #17437 - Fix exception when saving interface-template with bridged interface

  • Return None if NoReverseMatch found from self.reverse with BaseNetBoxHyperlinkedIdentityField.get_url

… with BaseNetBoxHyperlinkedIdentityField.get_url
@DanSheps DanSheps changed the title Fixes: #17452 - Fix exception when saving interface-template with bridged interface Fixes: #17437 - Fix exception when saving interface-template with bridged interface Sep 12, 2024
@DanSheps DanSheps linked an issue Sep 12, 2024 that may be closed by this pull request
@DanSheps DanSheps self-assigned this Sep 12, 2024
@jeremystretch
Copy link
Member

jeremystretch commented Sep 12, 2024

NetBoxURLHyperlinkedIdentityField should always return a valid URL. If it doesn't, that's an indication that it shouldn't be included on the serializer. display_url needs to be removed from NestedInterfaceTemplateSerializer. We also need to fix the filter names set on the bridge form field. I've submitted alternate PR #17470 to address both changes.

@DanSheps DanSheps deleted the 17452-fix-no-reverse-for-interfacetemplate branch September 12, 2024 14:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"No reverse for interfacetemplate" when saving a bridged interface Error when making an interface bridge on an intarface template of module type

3 participants