sonic-net / SONiC

Landing page for Software for Open Networking in the Cloud (SONiC) - https://sonic-net.github.io/SONiC/
2.26k stars 1.13k forks source link

No interfaces on Netberg Aurora 710 switch based Barefoot Tofino ASIC with SONiC #178

Open igormirosh opened 6 years ago

igormirosh commented 6 years ago

Hello guys, I have Netberg Aurora 710 switch based Barefoot Tofino ASIC. After SONiC installation, no interfaces are recognized on switch ("ifconfig -a" shows only management and bridge interfaces).

Did someone see the problem before? Any suggestions? Thanks to haplers.

root@switch:/home/admin# show interfaces status
Command: intfutil status
  Interface            Lanes    Speed    MTU        Alias    Oper    Admin
-----------  ---------------  -------  -----  -----------  ------  -------
  Ethernet0          0,1,2,3     100G    N/A    Ethernet0     N/A      N/A
  Ethernet4          4,5,6,7     100G    N/A    Ethernet4     N/A      N/A
  Ethernet8        8,9,10,11     100G    N/A    Ethernet8     N/A      N/A
 Ethernet12      12,13,14,15     100G    N/A   Ethernet12     N/A      N/A
 Ethernet16      16,17,18,19     100G    N/A   Ethernet16     N/A      N/A
 Ethernet20      20,21,22,23     100G    N/A   Ethernet20     N/A      N/A
 Ethernet24      24,25,26,27     100G    N/A   Ethernet24     N/A      N/A
 Ethernet28      28,29,30,31     100G    N/A   Ethernet28     N/A      N/A
 Ethernet32      32,33,34,35     100G    N/A   Ethernet32     N/A      N/A
 Ethernet36      36,37,38,39     100G    N/A   Ethernet36     N/A      N/A
 Ethernet40      40,41,42,43     100G    N/A   Ethernet40     N/A      N/A
 Ethernet44      44,45,46,47     100G    N/A   Ethernet44     N/A      N/A
 Ethernet48      48,49,50,51     100G    N/A   Ethernet48     N/A      N/A
 Ethernet52      52,53,54,55     100G    N/A   Ethernet52     N/A      N/A
 Ethernet56      56,57,58,59     100G    N/A   Ethernet56     N/A      N/A
 Ethernet60      60,61,62,63     100G    N/A   Ethernet60     N/A      N/A
 Ethernet64      64,65,66,67     100G    N/A   Ethernet64     N/A      N/A
 Ethernet68      68,69,70,71     100G    N/A   Ethernet68     N/A      N/A
 Ethernet72      72,73,74,75     100G    N/A   Ethernet72     N/A      N/A
 Ethernet76      76,77,78,79     100G    N/A   Ethernet76     N/A      N/A
 Ethernet80      80,81,82,83     100G    N/A   Ethernet80     N/A      N/A
 Ethernet84      84,85,86,87     100G    N/A   Ethernet84     N/A      N/A
 Ethernet88      88,89,90,91     100G    N/A   Ethernet88     N/A      N/A
 Ethernet92      92,93,94,95     100G    N/A   Ethernet92     N/A      N/A
 Ethernet96      96,97,98,99     100G    N/A   Ethernet96     N/A      N/A
Ethernet100  100,101,102,103     100G    N/A  Ethernet100     N/A      N/A
Ethernet104  104,105,106,107     100G    N/A  Ethernet104     N/A      N/A
Ethernet108  108,109,110,111     100G    N/A  Ethernet108     N/A      N/A
Ethernet112  112,113,114,115     100G    N/A  Ethernet112     N/A      N/A
Ethernet116  116,117,118,119     100G    N/A  Ethernet116     N/A      N/A
Ethernet120  120,121,122,123     100G    N/A  Ethernet120     N/A      N/A
Ethernet124  124,125,126,127     100G    N/A  Ethernet124     N/A      N/A
root@switch:/home/admin# ifconfig -a 
Bridge    Link encap:Ethernet  HWaddr 2a:5a:c4:5b:ca:7d  
          inet6 addr: fe80::285a:c4ff:fe5b:ca7d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:520 (520.0 B)

docker0   Link encap:Ethernet  HWaddr 02:42:79:93:1c:b4
          inet addr:240.127.1.1  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 70:b3:d5:cc:f0:6a
          inet addr:10.209.22.120  Bcast:10.209.23.255  Mask:255.255.252.0
          inet6 addr: fe80::72b3:d5ff:fecc:f06a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4086 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1045 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:384972 (375.9 KiB)  TX bytes:120965 (118.1 KiB)

eth1      Link encap:Ethernet  HWaddr 6c:ec:5a:08:5d:e1
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth2      Link encap:Ethernet  HWaddr 6c:ec:5a:08:5d:e2
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:52786 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52786 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3868758 (3.6 MiB)  TX bytes:3868758 (3.6 MiB)
serhepopovych commented 6 years ago

I suspect you want to port SONiC to this new device. In that case you should start from porting guide.

The main reason why interfaces not created is invalid config.bcm for your new device. Look at your configuration, try to play with various options, look at the "show logging" for SDK init complete/error messages, look play with bcmcmd and syncd docker container to find configuration that works with our device.

Take note that flex ports isn't supported by SONiC at the moment. That is if you have similar lines in config.bcm:

portmap_1=1:100 portmap_2=2:25:i portmap_3=3:25:i portmap_4=4:25:i

Then probably you can't get in SONiC single 100G port, but only 4x25G.