mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 12:12:53 -06:00
Fixes #2864: Correct display of VRF name when no RD is assigned
This commit is contained in:
parent
42d1d6e1b0
commit
375e66047d
@ -7,6 +7,7 @@ v2.5.6 (FUTURE)
|
|||||||
* [#2845](https://github.com/digitalocean/netbox/issues/2845) - Enable filtering of rack unit list by unit ID
|
* [#2845](https://github.com/digitalocean/netbox/issues/2845) - Enable filtering of rack unit list by unit ID
|
||||||
* [#2856](https://github.com/digitalocean/netbox/issues/2856) - Fix navigation links between LAG interfaces and their members on device view
|
* [#2856](https://github.com/digitalocean/netbox/issues/2856) - Fix navigation links between LAG interfaces and their members on device view
|
||||||
* [#2857](https://github.com/digitalocean/netbox/issues/2857) - Add `display_name` to DeviceType API serializer; fix DeviceType list for bulk device edit
|
* [#2857](https://github.com/digitalocean/netbox/issues/2857) - Add `display_name` to DeviceType API serializer; fix DeviceType list for bulk device edit
|
||||||
|
* [#2864](https://github.com/digitalocean/netbox/issues/2864) - Correct display of VRF name when no RD is assigned
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -81,9 +81,9 @@ class VRF(ChangeLoggedModel, CustomFieldModel):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def display_name(self):
|
def display_name(self):
|
||||||
if self.name and self.rd:
|
if self.rd:
|
||||||
return "{} ({})".format(self.name, self.rd)
|
return "{} ({})".format(self.name, self.rd)
|
||||||
return None
|
return self.name
|
||||||
|
|
||||||
|
|
||||||
class RIR(ChangeLoggedModel):
|
class RIR(ChangeLoggedModel):
|
||||||
|
Loading…
Reference in New Issue
Block a user