File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2527,7 +2527,12 @@ let migrate_receive ~__context ~host ~network ~options:_ =
25272527        let  configuration_mode = 
25282528          Db.PIF. get_ipv6_configuration_mode ~__context ~self: pif
25292529        in 
2530-         match  Db.PIF. get_IPv6 ~__context ~self: pif with 
2530+         let  valid_ipv6s = 
2531+           List. filter
2532+             (fun  ipv6  -> not  (String. starts_with " fe80::" 
2533+             (Db.PIF. get_IPv6 ~__context ~self: pif)
2534+         in 
2535+         match  valid_ipv6s with 
25312536        |  []  ->
25322537            (" " 
25332538        |  ip  :: _  ->
Original file line number Diff line number Diff line change @@ -262,4 +262,9 @@ let get_primary_address ~__context ~pif =
262262    match  Db.PIF. get_IP ~__context ~self: pif with  ""  ->  None  |  ip  ->  Some  ip
263263  )
264264  |  `IPv6  ->
265-       List. nth_opt (Db.PIF. get_IPv6 ~__context ~self: pif) 0 
265+       let  valid_ipv6s = 
266+         List. filter
267+           (fun  ipv6  -> not  (String. starts_with " fe80::" 
268+           (Db.PIF. get_IPv6 ~__context ~self: pif)
269+       in 
270+       List. nth_opt valid_ipv6s 0 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments