try to remove the address first
This commit is contained in:
		
							parent
							
								
									881a8c9317
								
							
						
					
					
						commit
						c877868c33
					
				@ -159,6 +159,15 @@ class TunnelBroker(object):
 | 
				
			|||||||
                    raise e
 | 
					                    raise e
 | 
				
			||||||
            # The SLAAC prefixes.
 | 
					            # The SLAAC prefixes.
 | 
				
			||||||
            for b in assignment.iface_blocks:
 | 
					            for b in assignment.iface_blocks:
 | 
				
			||||||
 | 
					                try:
 | 
				
			||||||
 | 
					                    ipr.addr('del',
 | 
				
			||||||
 | 
					                             index = assignment.iface_idx,
 | 
				
			||||||
 | 
					                             address = b.str,
 | 
				
			||||||
 | 
					                             mask = b.prefixlen,
 | 
				
			||||||
 | 
					                             family = socket.AF_INET6)
 | 
				
			||||||
 | 
					                    logger.debug('Removed {0} with prefix {1} from {2}.'.format(b.str, b.prefixlen, assignment.iface))
 | 
				
			||||||
 | 
					                except Exception as e:
 | 
				
			||||||
 | 
					                    pass
 | 
				
			||||||
                try:
 | 
					                try:
 | 
				
			||||||
                    ipr.addr('add',
 | 
					                    ipr.addr('add',
 | 
				
			||||||
                             index = assignment.iface_idx,
 | 
					                             index = assignment.iface_idx,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user