Configuration examples for generating ifIndexes offline

The following examples provide details on how ifIndexes can be generated for various interface types.

Physical interfaces with LC type 72x10G

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i physical -t 72x10G -s 2 -p 65 -d all
Decimal :  413171855
Hex     :  18a0808f
Binary  :  00011000101000001000000010001111

Physical interfaces with LC type 36x100G (100g mode)

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i phy -t 36x100G -m 100g -s 3 -p 1 -d all
Decimal :  415285249
Hex     :  18c0c001
Binary  :  00011000110000001100000000000001

Physical interfaces with LC type 36x100G (40g mode) non-breakout

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i phy -t 36x100G -m 40g -s 3 -p 8 -d all
Decimal :  207683777
Hex     :  0c6100c1
Binary  :  00001100011000010000000011000001

Physical interfaces with LC type 36x100G (40g mode) breakout

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i phy -t 36x100G -m 40g -s 3 -p 15 -sp 1 -d all
Decimal :  207741442
Hex     :  0c61e202
Binary  :  00001100011000011110001000000010

LAG (Port-channel) interface

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i lag -lp 1 -d all
Decimal :  671088641
Hex     :  28000001
Binary  :  00101000000000000000000000000001

VE interface

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i ve -vi 10 -d all
Decimal :  1207959562
Hex     :  4800000a
Binary  :  01001000000000000000000000001010

Tunnel interfaces

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i tunnel -tt mpls -ti 2 -d all
Decimal :  2092957698
Hex     :  7cc00002
Binary  :  01111100110000000000000000000010

Loopback interface

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i lb -lbi 20 -d all
Decimal :  1476395028
Hex     :  58000014
Binary  :  01011000000000000000000000010100

Management interface

[admin@SLX]# /fabos/cliexec/ifindex_gen.py -i mgmt -mi 2 -d all
Decimal :  805306370
Hex     :  30000002
Binary  :  00110000000000000000000000000010