1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #8163: Add bridge members panel to interface view

This commit is contained in:
Stephan Blanke
2022-03-28 20:37:00 +02:00
parent 894665b067
commit b7e2ea1ca5
3 changed files with 20 additions and 0 deletions

View File

@@ -762,6 +762,10 @@ class Interface(ComponentModel, BaseInterface, LinkTermination, PathEndpoint):
def is_lag(self):
return self.type == InterfaceTypeChoices.TYPE_LAG
@property
def is_bridge(self):
return self.type == InterfaceTypeChoices.TYPE_BRIDGE
@property
def link(self):
return self.cable or self.wireless_link