mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Closes #2844: Correct display of far cable end for pass-through ports
This commit is contained in:
parent
2f1018c742
commit
69a5d3644a
@ -1,3 +1,11 @@
|
|||||||
|
v2.5.6 (FUTURE)
|
||||||
|
|
||||||
|
## Bug Fixes
|
||||||
|
|
||||||
|
* [#2844](https://github.com/digitalocean/netbox/issues/2844) - Correct display of far cable end for pass-through ports
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
v2.5.5 (2019-01-31)
|
v2.5.5 (2019-01-31)
|
||||||
|
|
||||||
## Enhancements
|
## Enhancements
|
||||||
|
@ -169,9 +169,9 @@ class CableTermination(models.Model):
|
|||||||
def get_cable_peer(self):
|
def get_cable_peer(self):
|
||||||
if self.cable is None:
|
if self.cable is None:
|
||||||
return None
|
return None
|
||||||
if self._cabled_as_a:
|
if self._cabled_as_a.exists():
|
||||||
return self.cable.termination_b
|
return self.cable.termination_b
|
||||||
if self._cabled_as_b:
|
if self._cabled_as_b.exists():
|
||||||
return self.cable.termination_a
|
return self.cable.termination_a
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user