mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	Fixes #1104: Fix VLAN assignment on prefix import
This commit is contained in:
		@@ -236,7 +236,6 @@ class PrefixFromCSVForm(forms.ModelForm):
 | 
			
		||||
                    self.add_error('vlan_vid', "Invalid global VLAN ID ({}).".format(vlan_vid))
 | 
			
		||||
            except VLAN.MultipleObjectsReturned:
 | 
			
		||||
                self.add_error('vlan_vid', "Multiple VLANs found ({} - VID {})".format(site, vlan_vid))
 | 
			
		||||
            self.instance.vlan = vlan
 | 
			
		||||
 | 
			
		||||
    def save(self, *args, **kwargs):
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user