metal-stack / metal-hammer

metal-hammer is used to boot bare metal servers with ipxe and the metal-stack kernel
GNU Affero General Public License v3.0
42 stars 6 forks source link

Fix neighbor interface name #120

Closed majst01 closed 8 months ago

majst01 commented 8 months ago

TODO:

Before:

  nics:                                                                                                                                                                                                                                       
  - identifier: ""                                                                                                                                                                                                                            
    mac: b4:96:91:49:95:d0                                                                                                                                                                                                                    
    name: eth0                                                                                                                                                                                                                                
    neighbors: []                                                                                                                                                                                                                             
  - identifier: ""                                                                                                                                                                                                                            
    mac: b4:96:91:49:95:d1                                                                                                                                                                                                                    
    name: eth1                                                                                                                                                                                                                                
    neighbors: []                                                                                                                                                                                                                             
  - identifier: ""                                                                                                                                                                                                                            
    mac: b4:96:91:49:95:d2                                                                                                                                                                                                                    
    name: eth2                                                                                                                                                                                                                                
    neighbors: []                                                                                                                                                                                                                             
  - identifier: ""                                                                                                                                                                                                                            
    mac: b4:96:91:49:95:d3                                                                                                                                                                                                                    
    name: eth3                                                                                                                                                                                                                                
    neighbors: []                                                                                                                                                                                                                             
  - identifier: ""                                                                                                                                                                                                                            
    mac: ac:1f:6b:7b:ed:30                                                                                                                                                                                                                    
    name: eth4                                                                                                                                                                                                                                
    neighbors:                                                                                                                                                                                                                                
    - identifier: b8:6a:97:74:00:49                                                                                                                                                                                                           
      mac: b8:6a:97:74:00:49                                                                                                                                                                                                                  
      name: eth4                                                                                                                                                                                                                              
      neighbors: []                                                                                                                                                                                                                           
  - identifier: ""                                                                                                                                                                                                                            
    mac: ac:1f:6b:7b:ed:31                                                                                                                                                                                                                    
    name: eth5                                                                                                                                                                                                                                
    neighbors:                                                                                                                                                                                                                                
    - identifier: b8:6a:97:73:f8:49                                                                                                                                                                                                           
      mac: b8:6a:97:73:f8:49                                                                                                                                                                                                                  
      name: eth5                                                                                                                                                                                                                              
      neighbors: []                                                                                                                                                                                                                           
  - identifier: ""                                                                                                                                                                                                                            
    mac: "00:00:00:00:00:00"                                                                                                                                                                                                                  
    name: lo                                                                                                                                                                                                                                  
    neighbors: []            

After:

  nics:                                                                                                                                                                                                                                       
  - identifier: ""                                                                                                                                                                                                                            
    mac: 3c:ec:ef:22:fc:1a                                                                                                                                                                                                                    
    name: eth0                                                                                                                                                                                                                                
    neighbors: []                                                                                                                                                                                                                             
  - identifier: ""                                                                                                                                                                                                                            
    mac: 3c:ec:ef:22:fc:1b                                                                                                                                                                                                                    
    name: eth1                                                                                                                                                                                                                                
    neighbors: []                                                                                                                                                                                                                             
  - identifier: ""                                                                                                                                                                                                                            
    mac: 50:7c:6f:16:c5:a8                                                                                                                                                                                                                    
    name: eth2                                                                                                                                                                                                                                
    neighbors:                                                                                                                                                                                                                                
    - identifier: b8:6a:97:74:00:56                                                                                                                                                                                                           
      mac: b8:6a:97:74:00:56                                                                                                                                                                                                                  
      name: swp7s3                                                                                                                                                                                                                            
      neighbors: []                                                                                                                                                                                                                           
  - identifier: ""                                                                                                                                                                                                                            
    mac: 50:7c:6f:16:c5:a9                                                                                                                                                                                                                    
    name: eth3                                                                                                                                                                                                                                
    neighbors:                                                                                                                                                                                                                                
    - identifier: b8:6a:97:73:f8:56                                                                                                                                                                                                           
      mac: b8:6a:97:73:f8:56                                                                                                                                                                                                                  
      name: swp7s3                                                                                                                                                                                                                            
      neighbors: []                                                                                                                                                                                                                           
  - identifier: ""                                                                                                                                                                                                                            
    mac: "00:00:00:00:00:00"                                                                                                                                                                                                                  
    name: lo                                                                                                                                                                                                                                  
    neighbors: []

And on SONiC:

  nics:                                                                                                                                                                                                                                       
  - identifier: ""                                                                                                                                                                                                                            
    mac: 3c:ec:ef:d8:be:d8                                                                                                                                                                                                                    
    name: eth0                                                                                                                                                                                                                                
    neighbors:                                                                                                                                                                                                                                
    - identifier: Eth15/2(Port15)                                                                                                                                                                                                             
      mac: Eth15/2(Port15)                                                                                                                                                                                                                    
      name: Ethernet57                                                                                                                                                                                                                        
      neighbors: []                                                                                                                                                                                                                           
  - identifier: ""                                                                                                                                                                                                                            
    mac: 3c:ec:ef:d8:be:d9                                                                                                                                                                                                                    
    name: eth1                                                                                                                                                                                                                                
    neighbors:                                                                                                                                                                                                                                
    - identifier: Eth15/2(Port15)                                                                                                                                                                                                             
      mac: Eth15/2(Port15)                                                                                                                                                                                                                    
      name: Ethernet57                                                                                                                                                                                                                        
      neighbors: []