Commit Graph

1579 Commits

Author SHA1 Message Date
Taoyu Li
8153ce7f05
[sudoer] Enable read-only commands for all users (#1558) 2018-04-19 11:25:08 -07:00
Rodny Molina
d42384168c [sonic-cfggen]: Sorting the information generated by sonic-cfggen for all j2 templates. (#1616)
With this patch all the content of the files generated by "sonic-cfggen -d -t" instructions will now be sorted, which is very useful for operational and troubleshooting purposes. See below a few examples of this behavior. Also, a few sonic-cfggen UT's have been modified to accomodate the new sorted configurations.

admin@lnos-x1-a-asw02:~$ sonic-cfggen -d -t /usr/share/sonic/templates/interfaces.j2 | more
…
auto lo
iface lo inet loopback
iface lo inet static
  address 10.10.1.2
  netmask 255.255.255.255
auto eth0
iface eth0 inet dhcp
allow-hotplug Ethernet112
iface Ethernet112 inet static
   mtu 9100
   address 10.1.2.2
   netmask 255.255.255.0
allow-hotplug Ethernet112
iface Ethernet112 inet6 static
  mtu 9100
  address fc00:1:2::2
  netmask 64
allow-hotplug Ethernet116
iface Ethernet116 inet static
   mtu 9100
   address 10.2.2.2
   netmask 255.255.255.0
allow-hotplug Ethernet116
iface Ethernet116 inet6 static
  mtu 9100
  address fc00:2:2::2
  netmask 64
allow-hotplug Ethernet120
iface Ethernet120 inet static
  mtu 9100
  address 10.3.2.2
  netmask 255.255.255.0

root@lnos-x1-a-csw01:/# sonic-cfggen -d -y /etc/sonic/deployment_id_asn_map.yml -t /usr/share/sonic/templates/bgpd.conf.j2
…
router bgp 65100
…
  network 10.10.2.1/32
  neighbor 10.0.0.1 remote-as 65200
  neighbor 10.0.0.1 description ARISTA01T2
  address-family ipv4
    neighbor 10.0.0.1 activate
    maximum-paths 64
  exit-address-family
  neighbor 10.0.0.11 remote-as 65200
  neighbor 10.0.0.11 description ARISTA06T2
  address-family ipv4
    neighbor 10.0.0.11 activate
    maximum-paths 64
  exit-address-family
  neighbor 10.0.0.13 remote-as 65200
  neighbor 10.0.0.13 description ARISTA07T2
  address-family ipv4
    neighbor 10.0.0.13 activate
    maximum-paths 64
  exit-address-family
  neighbor 10.0.0.15 remote-as 65200
  neighbor 10.0.0.15 description ARISTA08T2
  address-family ipv4
    neighbor 10.0.0.15 activate
    maximum-paths 64
  exit-address-family

root@lnos-x1-a-asw02:/# sonic-cfggen -d -t /usr/share/sonic/templates/lldpd.conf.j2
…
configure ports Ethernet4 lldp portidsubtype local Eth2/1 description ixia-card2-port8:Eth1/2/8
configure ports Ethernet112 lldp portidsubtype local Eth29/1 description lnos-x1-a-csw01:Eth29/1
configure ports Ethernet116 lldp portidsubtype local Eth30/1 description lnos-x1-a-csw02:Eth30/1
configure ports Ethernet120 lldp portidsubtype local Eth31/1 description lnos-x1-a-csw03:Eth31/1
configure ports Ethernet124 lldp portidsubtype local Eth32/1 description lnos-x1-a-csw04:Eth32/1

root@lnos-x1-a-asw02:/# sonic-cfggen -d -t /usr/share/sonic/templates/ports.json.j2 | more
[
    {
            "PORT_TABLE:Ethernet0": {
                        "speed": "10000",
                        "description": ""
    },
        "OP": "SET"
    },
    {
            "PORT_TABLE:Ethernet1": {
                        "speed": "10000",
                        "description": ""
    },
        "OP": "SET"
    },
    {
            "PORT_TABLE:Ethernet2": {
                        "speed": "10000",
                        "description": ""
    },
        "OP": "SET"
    },
]
2018-04-19 01:43:00 -07:00
Taoyu Li
5ebefeb841 [sonic-cfggen] Be case insensitive to hostname in minigraph (#1614) 2018-04-18 18:26:09 -07:00
Shuotian Cheng
01551363e2 [platform-common]: Update sonic-platform-common submodule (#1620)
[sfputilbase]: Add logic to parse the title of port_config.ini file

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2018-04-18 14:54:15 -07:00
Volodymyr Samotiy
61793dd05a [ip-in-ip]: Fix config template to apply correct platform depended values (#1619)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-04-18 09:37:27 -07:00
Jipan Yang
f0690b246b [build]: Fix the problem of ENABLE_SYSTEM_TELEMETRY not taking effect in rules/config (#1615)
Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
2018-04-18 00:31:12 -07:00
Ying Xie
58584ca30c
[test] Adding Broadcom configuration file test (#1611)
* [test] Adding Broadcom configuration file test

In order to allow SONiC community to check in Broadcom configuration
file directly under device folder. We need to add this test to make
sure the contents of the configuration is compliant with Broadcom
specifications.

* Invoke test from Debian package builder

* Use $() syntax

* Remove the debug echo statement
2018-04-17 21:10:17 -07:00
sihuihan88
3728009690 [utilities]: Update sonic-utilities submodule (#1613)
Signed-off-by: Sihui Han <sihan@microsoft.com>
2018-04-17 20:15:46 -07:00
pavel-shirshov
1ba00d27d0
Update sonic-swss submodule (#1612)
This includes priorities into orchagent
2018-04-17 18:56:07 -07:00
padmanarayana
ee811f374e Add support for S6100 switchport LEDs (#1610) 2018-04-17 18:18:09 -07:00
hui-ma
5c66beee66
[sonic-utilities] add pfcstat and queuestat tool (#1606) 2018-04-17 10:14:07 -07:00
pavel-shirshov
8a714c88c7
Use refactored Selectables from sonic-swss-common (#1604) 2018-04-16 18:38:48 -07:00
Andriy Moroz
6383de3907 [Mellanox] Add support for a new platform LS-SN2700
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
2018-04-14 20:42:31 +00:00
Wenda Ni, Ph.D
f947172c0a [devices]: Merge ingress service pools of lossless and lossy traffic for TD2 (#1578)
Signed-off-by: Wenda <wenni@microsoft.com>
2018-04-13 22:22:21 -07:00
klhaung
0bdb407d3f [device]: Add LED initialzation file for Inventec-d7054q28b-r0 (#1595)
* update SAI profile
* Add a new Initialization file for Broadcom LED microprocessors
2018-04-13 17:06:12 -07:00
yurypm
2b9f877b8f [baseimage]: Fix tcpdmatch dependency (#1594)
* Fix tcpdmatch dependency

Issue: sonic_debian_extension.j2 uses tcpdmatch from src folder
       which is result of libwrap build
Fix: added tcpd.deb to build results and extract required files
     from build results

* Install libwrap0 and tcpd deb packages
2018-04-13 17:00:38 -07:00
Qi Luo
b097b9672c
Fix syntax error in snmpd.conf.j2 (#1597)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-04-13 10:50:58 -07:00
Prince Sunny
fcbbb8a369
50G support for Arista 7060 (#1580)
* 50G SKU for Arista 7060
2018-04-12 18:06:26 -07:00
Ying Xie
7759bc8b92 [Broadcom SAI] upgrade Broadcom SAI to version 3.1.3.4-10 (#1591)
* [Broadcom SAI] upgrade Broadcom SAI to version 3.1.3.4-9

Includes configuration files for following devices:

- Quanta 1X1B-32X
- Dell Z9264F
- Inventec D7054Q28B and D7032Q28B

* [bcm sai] upgrade sai version to 3.1.3.4-10

include configuration change to 7060 T0.
2018-04-12 17:55:08 -07:00
Qi Luo
f12ab9473e [minigraph] Fix parser on PNG DeviceInterfaceLink Bandwidth (#1592)
* [minigraph] Fix parser on PNG DeviceInterfaceLink Bandwidth

Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-04-12 15:44:57 -07:00
lguohan
2d54d43a0f
[minigraph]: ignore minigraph ports which are not in port_config.ini (#1593)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-04-12 04:04:32 -07:00
ZivErlich
622d357719 Marvell's updates for SONiC 201803 over SAI v1.2 (#1588) 2018-04-11 16:52:58 -07:00
Harish Venkatraman
0d5dc775de [device/dell] Update pg_profile_lookup.ini (#1586)
This commit updates the pg_profile_lookuip.ini file with
correct xoff values for 50G. 25G/40m xoff value is updated
to reflect the correct value.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@dell.com>
2018-04-11 08:12:37 -07:00
Joe LeVeque
291321d851 Incorporate swss-common Table Name Separator Changes (#1584)
* Table name separator now determined by database ID, no longer passed manually upon table creation

* Update submodules to include table name separator changes
2018-04-11 01:50:17 -07:00
Prince Sunny
7b31f7df32 [devices]: Fix type for qos.json in 7060 and S6100 (#1582) 2018-04-10 22:45:59 -07:00
Taoyu Li
856fc830b5 [snmp] support multiple community strings (proposal 2) (#1583)
* [snmp] support multiple community strings

* Use community old if communities is absent
2018-04-10 20:20:35 -07:00
Samuel Angebault
ca111db34d [device] Update Arista driver submodule (#1585)
Watchdog timeout increased
2018-04-10 20:16:07 -07:00
Qi Luo
ccff73bb33 [snmp]: Bind snmpd to all ip addresses (#1587)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-04-10 20:15:20 -07:00
byu343
27e57c06ab [devices]: Fix the issue of ma1 not found in boot0 for Arista (#1579) 2018-04-10 20:14:45 -07:00
Joe LeVeque
c626dc921f
Allow one Service ACL to bind to multiple services (#1576)
* [caclmgrd] Also ignore IP protocol if found in rule; we will only use our predefined protocols
2018-04-10 18:14:12 -07:00
pavel-shirshov
83f81c9676
Use eth0 interface only to generate lldpd SystemId (#1577) 2018-04-10 13:37:46 -07:00
simonJi2018
2f53bcf8be [platform/nephos]add makefile for 7116 board (#1572) 2018-04-10 09:43:26 -07:00
Qi Luo
c29def6379 [installer]: Umount before delete partition (#1575)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-04-09 23:51:43 -07:00
lguohan
af0013e939
[cfggen]: ignore acl when its type is not defined (#1568)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-04-09 16:41:51 -07:00
lguohan
4d3f44bc32
[submodules]: update sonic-utilities (#1571)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-04-07 15:50:37 -07:00
lguohan
5a47b81c4b
[submodules]: update sonic-swss (#1570)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-04-07 10:19:55 -07:00
Joe LeVeque
30466b27c1 [router advertiser] Only start radvd process if device role is 'ToRRouter' (#1569) 2018-04-06 19:24:18 -07:00
byu343
ac2861e6d7 [Arista] Set MAC address of mangement port in initramfs (#1565)
* Set MAC address of mangement port in initramfs

* Fix boot0 for running in none-aboot environment
2018-04-06 10:48:13 -07:00
Joe LeVeque
e6015d89a7 [sonic-platform-common] Update submodule (#1563)
- Includes the following commits:
    - [bcmshell.py] Match extra whitespace before prompt in regex (#3)
    - add support for qsfp28 eeprom (#2)
2018-04-06 05:55:17 -07:00
Qi Luo
4754b43d7c [installer]: Suppress tar xz warning about time stamp in the future, if date is not correctly set (#1562)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-04-04 23:42:11 -07:00
lguohan
1051d82ebc
Revert "[installer]: Suppress tar xz warning about time stamp in the future, if date is not correctly set (#1560)" (#1561)
This reverts commit 0996356521.
2018-04-04 23:22:57 -07:00
Qi Luo
0996356521 [installer]: Suppress tar xz warning about time stamp in the future, if date is not correctly set (#1560)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2018-04-04 22:01:31 -07:00
Kebo Liu
ed915e342a [build templates] Add environment variables for mellanox syncd container to support mellanox sdk and prm sniffer. (#1551)
modified:   files/build_templates/docker_image_ctl.j2

  Signed-off-by:  Kebo Liu kebol@mellanox.com
2018-04-02 20:24:59 -07:00
simonJi2018
1c32321805 [device]: Add a new supported device accton-as7116 (#1539)
* Upgrade SAI to v1.2.4

* Add a new supported device accton as7116

* Add maintainer info for deb
2018-04-02 19:06:00 -07:00
Volodymyr Samotiy
dc7c524426 [mellanox]: Update MLNX SAI pointer (#1557)
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
2018-04-02 19:02:48 -07:00
Taoyu Li
a04401f68f [minigraph.py] Add support to parse tacacs server information (#1549)
* [minigraph.py] Add support to parse tacacs server information
2018-04-02 09:17:47 -07:00
lguohan
11b0cd93e8
[baseimage]: bring down eth0 before restart networking (#1555)
cfggen generates new eth0 configuration. Need to first
clean existing configuration on eth0 before bring up
new configuration on eth0. Thus, we need to first bring
down eth0 before putting new configuration into /etc/network/
interfaces

Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-04-01 21:36:43 -07:00
Ying Xie
8572f84ea0
[sonic-utilities] include reboot scripts improvements (#1554) 2018-03-30 19:23:46 -07:00
lguohan
d66e79d702
[installer]: remove single quotes around the value when create machine.conf (#1552)
Signed-off-by: Guohan Lu <gulv@microsoft.com>
2018-03-30 11:37:59 -07:00
lguohan
a5bfa2c7ab
[device]: do not export gpio{1,2} if already exist on S6000 (#1547) 2018-03-29 23:39:49 -07:00