mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 20:36:26 -06:00
Remove clearing of tagged vlans from save()
This commit is contained in:
parent
bab5a5b273
commit
4f830ce3cc
@ -920,10 +920,6 @@ class Interface(ModularComponentModel, BaseInterface, CabledObjectModel, PathEnd
|
|||||||
|
|
||||||
super().save(*args, **kwargs)
|
super().save(*args, **kwargs)
|
||||||
|
|
||||||
# Clear any tagged vlans set when mode is tagged-all
|
|
||||||
if self.mode == InterfaceModeChoices.MODE_TAGGED_ALL and self.tagged_vlans.count():
|
|
||||||
self.tagged_vlans.set([])
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _occupied(self):
|
def _occupied(self):
|
||||||
return super()._occupied or bool(self.wireless_link_id)
|
return super()._occupied or bool(self.wireless_link_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user