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

Add devices to WirelessLinkForm

This commit is contained in:
jeremystretch
2021-10-14 10:02:05 -04:00
parent bdf359470e
commit fb9da87abb
3 changed files with 32 additions and 6 deletions

View File

@@ -656,6 +656,10 @@ class Interface(ComponentModel, BaseInterface, LinkTermination, PathEndpoint):
"device, or it must be global".format(self.untagged_vlan)
})
@property
def _occupied(self):
return super()._occupied or bool(self.wireless_link_id)
@property
def is_wired(self):
return not self.is_virtual and not self.is_wireless