Commit Graph

980 Commits

Author SHA1 Message Date
Abhishek Dosi
6ebc79e297 [submodule update] sonic-rest API's
PR#39  Setup module versioning
Add support for get all Vlans (#37)
2020-05-21 22:20:18 -07:00
Abhishek Dosi
7b5fb95fc7 [submodule update] sonic-util
Revert "[config] Add 'interface transceiver' subgroup with 'lpmode' and
 'reset' subcommands (#904)"
  Multi-asic changes for config bgp commands and utilities. (#910)
2020-05-20 22:44:14 -07:00
Abhishek Dosi
a197dd46e0 [submodule update] sonic-swss with PR
[vnet] Fix IP2ME route creation logic for BITMAP VNET interface (#1284)
2020-05-20 22:44:14 -07:00
arlakshm
fd2831c15c [config]: Fix the device type and internal bgp session status for multi NPU platforms (#4600)
* The following changes for multi-npu platforms are done
- Set the type in device_metadata for asic configuration to be same as host
- Set the admin-status of internal bgp sessions as up
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
2020-05-20 22:44:14 -07:00
Qi Luo
1f3091c5e1
[minigraph] Support FECDisabled in minigraph parser (#4556) (#4624)
Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
2020-05-20 16:23:16 -07:00
Abhishek Dosi
7234bc120a [Submodule update] sonic-utlities with PR's
[201911][show] Fix abbreviations for 'show ip bgp ...' commands (#909)
Changes to support acl-loader and mirror-session config commands for
multi-npu platforms. (#908)
Changes to commands  config reload/load-minigraph (#919)
Stop/Start restapi server upon config reload (#911)
[config] Add 'interface transceiver' subgroup with 'lpmode' and
'reset' subcommands (#904)
2020-05-20 08:17:23 -07:00
Danny Allen
4079d39697 [minigraph] Add tags for egress mirror tables (#4526)
Signed-off-by: Danny Allen <daall@microsoft.com>
2020-05-20 08:01:38 -07:00
abdosi
f087275e92 Moved utility functions for multi-npu platforms from sonic-utilities to sonic_device_util.py (#4559)
* Moved utility functions for multi-npu platforms from
sonic-utilities config/main.py to here so that they can be used
any module

* Fix the issue with test run during compilation with acl-uploader
PR#908 of sonic-utilities.

* Fix get_num_npu as it was retuning string and not int

* Address Review Comments

* Address Review Comments
2020-05-20 07:52:43 -07:00
abdosi
9ea746e25f Changes for LLDP docker to support multi-npu platforms (#4530)
* Changes for LLDP for Multi NPU Platoforms:-
a) Enable LLDP for Host namespace for Management Port
b) Make sure Management IP is avaliable in per asic namespace
   needed for LLDP Chassis configuration
c) Make sure chassis mac-address is correct in per asic namespace
d) Do not run lldp on eth0 of per asic namespace and avoid chassis
   configuration for same
e) Use Linux hostname instead from Device Metadata for lldp chassis
   configuration since in multi-npu platforms device metadata hostname
   will be differnt

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Address Review Comment with following changes:
a) Use Device Metadata hostname even in per namespace conatiner.
   updated minigraph parsing for same to have hostname as system
   hostname and add new key for asic name

b) Minigraph changes to have MGMT_INTERFACE Key in per asic/namespace
   config also as needed for LLDP for setting chassis management IP.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Address Review Comments
2020-05-20 07:51:49 -07:00
abdosi
8fc4657f68 [sonic-buildimage] updated minigraph for ACL Table data and ACL Interface Binding for Multi-NPU platforms (#4491)
* [sonic-buildimage] updated minigraph for ACL Table data and ACL Interface
binding update for multu-npu platform based on subrole as "Frontend" or
"Backend". For backend npu no ACL table is associated. For frontend npu
only front-panel interface are associated.

Updated with test case and fix typo in sample-mingraph for npu

Address Review comments

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fixed the logic as per preview comment. Interface Filter logic
only applies to Everflow/Mirror tables.

* Address Review Comments.
2020-05-20 07:50:45 -07:00
pavel-shirshov
2778363049 [FRR]: Update frr to latest 7.2.1-s3 (#4294)
- Updated to latest frr 7.2.1 from the master.
- Updated patches accordingly
2020-05-20 07:48:23 -07:00
Abhishek Dosi
e4ccfa56c4 [sonic-utilities] sub-module update.
Reverted Add 'interface transceiver' subgroup with 'lpmode' and 'reset'
subcommands (#904) as it dependent of #903 which is not marked to
cherry-pick for 201911. Need to add that before we can use this.
2020-05-09 22:47:26 -07:00
Abhishek Dosi
45c2ab63a3 [submodule update] sonic-utilities with PR:
Support load_minigraph command for multi NPU platform
2020-05-09 21:36:44 -07:00
judyjoseph
c808640f4e Multi DB with namespace support, Introducing the database_global.json… (#4477)
* Multi DB with namespace support, Introducing the database_global.json file
for supporting accessing DB's in other namespaces for service running in
linux host

* Updates based on comments

* Adding the j2 templates for database_config and database_global files.

* Updating to retrieve the redis DIR's to be mounted from database_global.json file.

* Additional check to see if asic.conf file exists before sourcing it.

* Updates based on PR comments discussion.

* Review comments update

* Updates to the argument "-n" for namespace used in both context of parsing minigraph and multi DB access.

* Update with the attribute "persistence_for_warm_boot" that was added to database_config.json file earlier.

* Removing the database_config.json file to avioid confusion in future.
We use the database_config.json.j2 file to generate database_config.json files dynamically.

* Update the comments for sudo usage in docker_image_ctrl.j2

* Update with the new logic in PING PONG tests using sonic-db-cli. With this we wait till the
PONG response is received when redis server is up.

* Similar changes in swss and syncd scripts for the PING tests with sonic-db-cli

* Updated with a missing , in the database_config.json.j2 file, Do pip install of j2cli in docker-base-buster.
2020-05-09 21:33:07 -07:00
rlhui
87f3592d22 Added the below PRs:
[Vnet] Fix NameError for 'swsssdk' and align output (#902)
[config] Add 'interface transceiver' subgroup with 'lpmode' and 'reset' subcommands (#904)
Improved route_check tool and adopt to 20191130 image. (#898)
2020-05-09 19:38:48 -07:00
SuvarnaMeenakshi
c02f6d929f [minigraph.py]: Fix undefined variable error. (#4555)
Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
2020-05-09 18:15:17 -07:00
Neetha John
596bec1b32 [qos]: Alpha and ECN settings change for Th (#4564)
Dynamic threshold setting changed to 0 and WRED profile green min threshold set to 250000 for Tomahawk devices

Changed the dynamic threshold settings in pg_profile_lookup.ini
Added a macro for WRED profiles in qos.json.j2 for Tomahawk devices
Necessary changes made in qos.config.j2 to use the macro if present

Signed-off-by: Neetha John <nejo@microsoft.com>
2020-05-09 18:13:10 -07:00
shlomibitton
8367dfebaa
hw-mgmt_V.7.0000.3034 integration (#4518)
Signed-off-by: Shlomi Bitton <shlomibi@mellanox.com>
2020-05-06 12:14:41 +03:00
Abhishek Dosi
acd82fcdc1 [sonic-pyswssdk] submodule update with PR's:
[configdb.py]: Allow deletion of entire table from mod_config API. (#61)
[MultiDB] mimic redis-dump-load , adding sonic_db_dump_load.py and so… 
[MultiDB] add sonic-db-cli PING all instances support (#65)
Fix sonic-db-cli script to be compatible with python3 and python2.7 (#66)
Namespace support in SonicV2Connector (#63)
[Multiasic]: Add calculation of interface index for backplane interfa…
2020-05-05 11:29:40 -07:00
SuvarnaMeenakshi
3bf2bf9a52 [config engine] Parser changes to support parsing of multi-asic device minigraph (#4222)
- Changes to minigraph.py to parse minigraph.xml of a multi asic platform 
- Changes to portconfig.py to parse additional column "asic_port_name" in
port_config.ini
- Add a new option -n to sonic-cfggen for multi asic platforms
- Add unit tests for config generation for multi asic platforms

Signed-off-by: SuvarnaMeenakshi <sumeenak@microsoft.com>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
2020-05-05 11:03:39 -07:00
Nazarii Hnydyn
c266435d40
Revert "Add thermal control support for SONiC (#3949)" (#4527)
This reverts commit 109a13cc03.

Conflicts:
	dockers/docker-platform-monitor/docker-pmon.supervisord.conf.j2
2020-05-04 21:20:47 +03:00
rlhui
fed5009834 [config] Add support for multi-ASIC devices (#877) 2020-05-03 22:14:26 -07:00
Junchao-Mellanox
109a13cc03 Add thermal control support for SONiC (#3949) 2020-04-30 22:39:17 -07:00
Abhishek Dosi
f762c7786a [submodule update] sonic-utilities
[fwutil]: Fix firmware update command. (#895)
[utility] Filter FDB entries (#890)
2020-04-30 22:24:17 -07:00
Sumukha Tumkur Vani
e624183aa3 [docker-restapi]: add restapi config to config Db (#4495) 2020-04-30 22:17:41 -07:00
Sumukha Tumkur Vani
3c92bc02cd Parse Device region field in Minigraph (#4486) 2020-04-30 22:17:08 -07:00
Tamer Ahmed
cd57d4579a [dhcpmon] Filter DHCP O/A Messages of Neighboring Vlans (#4469)
* [dhcpmon] Filter DHCP O/A Messages of Neighboring Vlans

This code fixes a bug where two or more vlans exist. Cross contamination
happens for DHCP packets Offer/Ack when received on shared northbound links.
The code filters out those packet based on dst IP equal Vlan loopback IP.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
2020-04-30 22:12:21 -07:00
rlhui
fad7e417ed Update swss with PR1269 - pass asic instance as SAI attribute 2020-04-30 13:58:32 -07:00
Abhishek Dosi
827aab79d5 [submodule update] sonic-utilities with PR's
[Vxlan] : adding show vnet/vxlan cmds (#880)
[show][bgp] Use only 'show ip bgp' as the base and use bgp_frr_v4 file
for FRR routing stack (#884)
[fast reboot] set a fast-reboot DB flag (#887)
[show] Add 'ip/ipv6 bgp network' commands (#888)
2020-04-27 09:03:51 -07:00
Abhishek Dosi
6c65e79548 [submodule-update] sonic-swss with PR's
[routeorch] Handle the empty "nexthop" field for backward compatibility (#1263)
[vnet] Set MTU for the VNET bridge RIF in BITMAP implementation (#1271)
 [vnet] Verify if BITMAP route exists before creating new one to avoid
 dublication (#1272)
2020-04-27 08:55:23 -07:00
Kebo Liu
1d7d8fac66 [Mellanox] Update hw-mgmt package to V.7.0000.3020 (#4362)
* update hw-mgmt package to V.7.0000.3020
* update sonic-linux-kernel repo to pick up new patches
2020-04-27 08:50:23 -07:00
pavel-shirshov
2f44bcd071 [bgpcfgd]: Split one bgp mega-template to chunks. (#4143)
The one big bgp configuration template was splitted into chunks.

Currently we have three types of bgp neighbor peers:

general bgp peers. They are represented by CONFIG_DB::BGP_NEIGHBOR table entries
dynamic bgp peers. They are represented by CONFIG_DB::BGP_PEER_RANGE table entries
monitors bgp peers. They are represented by CONFIG_DB::BGP_MONITORS table entries
This PR introduces three templates for each peer type:

bgp policies: represent policieas that will be applied to the bgp peer-group (ip prefix-lists, route-maps, etc)
bgp peer-group: represent bgp peer group which has common configuration for the bgp peer type and uses bgp routing policy from the previous item
bgp peer-group instance: represent bgp configuration, which will be used to instatiate a bgp peer-group for the bgp peer-type. Usually this one is simple, consist of the referral to the bgp peer-group, bgp peer description and bgp peer ip address.
This PR redefined constant.yml file. Now this file has a setting for to use or don't use bgp_neighbor metadata. This file has more parameters for now, which are not used. They will be used in the next iteration of bgpcfgd.

Currently all tests have been disabled. I'm going to create next PR with the tests right after this PR is merged.

I'm going to introduce better bgpcfgd in a short time. It will include support of dynamic changes for the templates.

FIX:: #4231
2020-04-25 09:41:28 +00:00
Abhishek Dosi
898f8789a7 [submodule update] sonic-swss-common with PR's
[DBConnector] Add methods to set/get Redis client name (#335)
2020-04-19 16:57:49 -07:00
Abhishek Dosi
ca926f2e75 [Submodule update] sonic-platform-common with PR's
[Chassis base] Add sfp error event definition #80
SFP(sff8472 attributes) transciever eeprom attribute support #74
2020-04-19 16:52:19 -07:00
Abhishek Dosi
9c43360652 [submodule update] sonic-platform-daemons
[xcvrd] Extend xcvrd with SFP error event handling (#52)
[thermal fix] 1. Catch exception for each update iteration; 2. add
unit test (#51)
 Add thermal control daemon to monitor FAN and thermal status and run
 thermal policy (#49
2020-04-19 16:48:00 -07:00
Abhishek Dosi
8f8ea04891 [Submodule update] sonic-utilities with PR's:
[201911] Explicitly specify command names with underscores (continued)
(#868)
[fwutil]: Update Command-Reference.md. (#876)
2020-04-19 16:42:26 -07:00
Abhishek Dosi
4324f307ef [Submodule update] swss with following PR's:
Do not set PG to Buffer porfile mapping again if already exist. (#1261)
[sub intf] Use m_lag_id to be the parent port object id when parent port
is LAG (#1235)
2020-04-19 16:38:10 -07:00
pavel-shirshov
c7c78f03bc Update frr to latest 7.2.1 (#4145) 2020-04-19 16:25:07 -07:00
rlhui
e8bfde39f8 Update SAI to v1.5.2 2020-04-16 18:19:02 -07:00
Sumukha Tumkur Vani
23aed5ae6a [docker-restapi]: Fix authentication in restapi (#4383)
- enabling http/https endpoint and mounting the certificates directory
- updating the sonic-restapi submodule
2020-04-15 13:14:14 -07:00
noaOrMlnx
68448856a7 Bug fix: #4011 #4012 - "show run acl", "show run interfaces" - traceback when no ACL_RULE/INTERFACE is present. (#4226)
* Fix bugs - "show run acl/interfaces" returns traceback when no ACL_RULE/INTERFACE is present in configuration
- Change logic in main to take data only if the var_json appears in DB.
- Add unit testing for bug fix & fix comments

Signed-off-by: Noa Or <noaor@mellanox.com>
2020-04-15 13:06:33 -07:00
Abhishek Dosi
4f1b9ff6f3 [SubModule Update] sonic-swss
Fixed SAI_BUFFER_PROFILE_ATTR_BUFFER_SIZE to uint64_t
2020-04-10 21:33:00 -07:00
Abhishek Dosi
a78789f15a [sonic-swss] sunmodule update with PR's:
[portsorch] Enable port-level buffer drop counters (#1237)
 [vnet]: Fix double route installation for BITMAP VNET interface (#1114)
2020-04-06 17:30:36 -07:00
Abhishek Dosi
d4bcd3305a [sonic-utilities] submodule update with PR's:
[watermarkstat] Fix issue of fields overwritten before display (#862)
2020-04-06 17:29:49 -07:00
CharlieChenEC
63450d7d21 Fix the error that 'sensord' daemon cannot be spawn correctly in pmon container (#4354)
- This commit fixes the issue #4021 (Sensord not able to start up on
  both master and 201911 branches)
- Add the new patch file for "lm-sensors" to perform dh_installinit to
  include sensord.init in the packed deb. So that the missing init
  script file for 'sensord' will be included in the created 'sensord'
  deb.

Signed-off-by: Charlie Chen <charlie_chen@edge-core.com>
2020-04-06 17:13:00 -07:00
rlhui
d35e382dad [multi-asic]: Update reload of systemd services to support multi-asic
platform
2020-03-29 23:07:08 -07:00
Renuka Manavalan
83c7770d3a [submodule]: Update sonic-mgmt-framework to fix a build break fix. (#4318)
Module updated: sonic-mgmt-framework
Azure/sonic-mgmt-framework#44
2020-03-26 12:11:08 -07:00
Abhishek Dosi
1ba8944268 [Submodule Update] sonic-utilities Following Changes:
[fwutil]: Use overlay driver when mounting next image filesystem (#825)
Fix for adding L3 interface to Vlan group (#826)Fix for adding L3 interface to Vlan group (#826)
[db_migrator]Do DB migration for buffer pool size change on Mellanox platform (#833)
explicitly specify command with underscores (#846)
[intfutil] set speed to 0 when interface speed is not available (#839)
2020-03-24 15:43:16 -07:00
Abhishek Dosi
4a99a763d2 [SubModule Update] sonic-swsss . Following changes:
Don't remove RIF for Vnet interface when ip prefix is deleted (#1225)
2020-03-24 15:40:42 -07:00
lguohan
8969b7c06f [telemetry]: move default certs location from device metadata to telemetry (#4307)
maintains backward compatibility to search original x509 location
when telemetry table does not have certs

Signed-off-by: Guohan Lu <lguohan@gmail.com>
2020-03-24 15:14:40 -07:00