Commit Graph

1274 Commits

Author SHA1 Message Date
Abhishek Dosi
306d57e189 [submodule update] sonic-swss
[fix] Use the same storm detection condition for queue occupancy non-zero case as the zero case (#1111)
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-17 14:26:09 -07:00
abdosi
57e5077032 [muti-asic] Updated BGP community for Internal routes (#7617)
Following changes are done:

Internal routes are tagged with no-export instead of local-AS
Option to add User Define BGP community on top of no-export
2021-05-16 19:45:54 -07:00
Abhishek Dosi
3dd3093ddc [submodule update] sonic-platform-daemons
[201911] [xcvrd] Gracefully handle improper 'specification_compliance' field; also fix other potential bugs (#178)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-14 11:51:44 -07:00
Abhishek Dosi
ad500a7912 [Submodule update] sonic-utilities
copy soft-reboot to /usr/bin (#1603)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-14 11:43:50 -07:00
Abhishek Dosi
dd4e18ded0 [Submodule update] sonic-utilities
d898b03e4ec91f964f0e1fcba535ea33a78c838e (HEAD -> 201911, origin/201911) Create mappings using existing tunnel (#1593)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-05 22:26:17 -07:00
Abhishek Dosi
89d7299203 [Submodule update] sonic-sairedis
e438b0db6a8912b50f7acddf93d4dc2157f53ecf (HEAD -> 201911, origin/201911) Increase Syncd operation timeout from 1 min to 6 min. (#828)
17974adb369111b44dd56837547806918ed4b1ed Update syncd_flex_counter.cpp (#798)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-05 07:47:01 -07:00
anish-n
4c9d3599bc
Add downstreamsubrole parsing to minigraph.py (#7193) (#7514)
Add downstreamsubrole parsing to minigraph.py So that downstreamsubrole values can be used for policies. Backport PR, same as #7193
2021-05-05 07:43:25 -07:00
Abhishek Dosi
49cfed2916 [submodule update] sonic-swss
dd01491e4d167993b3a80517f737188151443a75 (HEAD -> 201911, origin/201911) [Monitor Vlan] Fix a typo in hostif (#1722)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-04 19:32:25 -07:00
Abhishek Dosi
459b0f0c2f [submodule update] sonic-utilities
1f249282e8066a5837f2b34478eb4e0f6b4a654c (HEAD -> 201911, origin/201911) [201911] soft-reboot - support ssd_fw_update  (#1518)
30a3cb3c085a7f208a44b58060ba797e4299214a [route_check] Filter out VNET routes (#1582)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-04 19:27:39 -07:00
Abhishek Dosi
39e978bf75 [submodule upate] sonic-utilities
[201911]: add show bgp neigh/network support for multi asic (#1587)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-05-03 19:03:10 -07:00
Junchao-Mellanox
afbdcf257a
[submodule] [201911] Update submodule for sonic-linux-kernel (#7491)
20e1589 [Mellanox] [201911] backport kernel patches for hw-management 7.0100.2303 (#210)
2021-04-30 12:10:47 -07:00
Abhishek Dosi
a754e4b178 [Submodule update] sonic-utilities
[techsupport] Update show ip interface command (#1562)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-23 15:29:25 -07:00
Qi Luo
e0f2d9a93b
[submodule] Update submodule of sonic-utilities (#7405)
a364614 2021-04-22 | [201911][acl] Use a list instead of a comma-separated string for ACL port list (#1576) [Danny Allen]
391e524 2021-04-15 | [201911] Fix Multi-ASIC show specific resursive route (#1563) [gechiang]
2021-04-23 09:49:33 -07:00
Abhishek Dosi
b375053a36 [submodule update] sonic-utilities
Fix Bad Merge

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-12 15:34:54 -07:00
Abhishek Dosi
16d9181d4a [submodule update] sonic-utilities
Fix show interface status Ethernet* (#1559)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-12 15:17:18 -07:00
Abhishek Dosi
7f80287dec [submodule update] sonic-utilities
209b7ddec109587ddeb90071ca23ae6a288b1442 (HEAD -> 201911, origin/201911) Fixed the possibility of using uninitialized variable in route_check.py (#1551)
e30387cbebaaccbf9385059b1e501955c40be338 route_check: Fix hanging & logging level (#1520)
3c8de6950615a4608a80e3d47ea678f8e8487186 Add self timeout and crash if exceeded. (#1502)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-12 15:15:03 -07:00
Abhishek Dosi
27600d9ccb [Submodule update] sonic-swss
5ff3d8c3cdc7516398f3c80f8cc3cd9ee02ef660 (HEAD -> 201911, origin/201911)
[vlan] Add support of VLAN host interface (#1645)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-08 15:30:11 -07:00
Abhishek Dosi
0f28dd84b4 [submodule update] sonic-dbsyncd
4a497407c8697a8c531ab999da95936ac1e71c9b (HEAD -> 201911, origin/201911) Fix the LLDP_LOC_CHASSIS not getting populated if no remote neighbors are present (#39)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-08 10:00:07 -07:00
xumia
31849a5f02 Fix CVE-2017-1000487 security alert (#7173)
#### Why I did it
Plexus-utils before 3.0.16 is vulnerable to command injection because it does not correctly process the contents of double quoted strings.

#### How I did it
Upgrade to 3.0.16
2021-04-07 18:09:56 -07:00
Sumukha Tumkur Vani
b70e47f2c8 [submodule]: Update restapi (#7213)
Feb 17 Fix tests failing due to duplicate vxlan tunnel creation (#75)
Mar 11 Update route api to specify limitation (#77)
Apr 01 Add host_ifname field while adding entry in VLAN table (#80)
2021-04-07 18:07:23 -07:00
abdosi
16b97f1859 [multi-asic] Make sure Everflow tables always gets classified as Mirror table (#7241)
Make sure Everflow always gets classified as Mirror table and not as Control Plane on multi-asic platforms.

Why I did:
In Multi-asic platforms we generate Everflow acl table data from minigraph for both host and namespace.
It is possible in multi-asic minigraph if there are no external port-channel (Only Router Port IP Interface) then Everflow table will have no binded interface in host and will gets classified as Control Plane ACL while in namespace gets classified as Mirror Table.
For ACL Rule generation we read global db as source of truth for acl table information and so for everflow rule generation if tables gets classified as Control plane we can generate rules with invalid action causing orchagent to throw runtime error.

How I did:
If the table is attach to erspan interface in minigraph then it always gets classified as mirror table.
2021-04-07 15:16:02 -07:00
Qi Luo
5bcd280b16
[submodule] Update submodule of sonic-utilities (#7235)
b39dbbc 2021-04-06 | [fast-reboot] Fix dump script to support PortChannels in a VLAN group [201911] (#1547) [shlomibitton]
2021-04-06 19:07:05 -07:00
Abhishek Dosi
b121b939dd [Submodule update] sonic-utilities
ecc1f9b1bb0ad18843e0f969fe8564cf37bf2080 (HEAD -> 201911, origin/201911)
[acl_loader]: add iptype match to the rules for dataplane acl

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-05 18:58:59 -07:00
abdosi
e94bc63057 [multi-asic] optimize api that checks port/port-channel/bgp is internal (#7232)
Optimize the API's is_port_internal() , is_portchannel_internal() and is_bgp_internal ()to call get_entry(Redis hget) instead of get_table (Redis keys *)
2021-04-05 18:58:59 -07:00
Abhishek Dosi
9143cca45f [Submodule update] sonic-utilities
ad9022ebf9c13b59ef8dc47aaa1f89628e64315e (HEAD -> 201911, origin/201911) Reduce time taken by show commands on multi-asic platforms (#1544)
4993a3644bff689701aac2ee2b10c351a9d241ef [fast-reboot]: Fix fail to execute fast-reboot problem (#1047)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-04-04 12:18:54 -07:00
Joe LeVeque
72b32a96fc
[201911][dockers][supervisor] Increase event buffer size for process exit listener (#7106)
Backport of https://github.com/Azure/sonic-buildimage/pull/7083 to the 201911 branch.

#### Why I did it

To prevent error [messages](https://dev.azure.com/mssonic/build/_build/results?buildId=2254&view=logs&j=9a13fbcd-e92d-583c-2f89-d81f90cac1fd&t=739db6ba-1b35-5485-5697-de102068d650&l=802) like the following from being logged:

```
Mar 17 02:33:48.523153 vlab-01 INFO swss#supervisord 2021-03-17 02:33:48,518 ERRO pool supervisor-proc-exit-listener event buffer overflowed, discarding event 46
```

This is basically an addendum to https://github.com/Azure/sonic-buildimage/pull/5247, which increased the event buffer size for dependent-startup. While supervisor-proc-exit-listener doesn't subscribe to as many events as dependent-startup, there is still a chance some containers (like swss, as in the example above) have enough processes running to cause an overflow of the default buffer size of 10.

This is especially important for preventing erroneous log_analyzer failures in the sonic-mgmt repo regression tests, which have started occasionally causing PR check builds to fail. Example [here](https://dev.azure.com/mssonic/build/_build/results?buildId=2254&view=logs&j=9a13fbcd-e92d-583c-2f89-d81f90cac1fd&t=739db6ba-1b35-5485-5697-de102068d650&l=802).

I set all supervisor-proc-exit-listener event buffer sizes to 1024, and also updated all dependent-startup event buffer sizes to 1024, as well, to keep things simple, unified, and allow headroom so that we will not need to adjust these values frequently, if at all.
2021-03-29 10:07:43 -07:00
Guohan Lu
4e48a67144 [submodule]: update sonic-utilities
* fc80eeb 2021-03-28 | [acl-loader]: do not add default deny rule for egress acl (#1531) (HEAD, origin/201911) [lguohan]

Signed-off-by: Guohan Lu <lguohan@gmail.com>
2021-03-28 23:27:42 -07:00
Abhishek Dosi
6f67599c38 [Submodule update] sonic-utilities
Copy missing values from INIT_CFG to config_db during db_migration (#1522)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-03-27 09:35:05 -07:00
Qi Luo
6761ac0aa1
[sonic-linux-kernel] Update submodule (#7170)
Includes below commits
```
be45d3e 2021-03-27 | Integrate kernel patch for hw-mgmt.v.7.0010.1000-bf1 (#202) [Stephen Sun]
```
2021-03-27 09:28:50 -07:00
Qi Luo
f609c6a536
[submodule] update sonic-snmpagent (#7123)
Includes commits:
```
8f1526f 2021-03-22 | Temporarily lower the logging level for invalid FDB, which is a known issue on Mellanox (#206) [Qi Luo]
```
2021-03-23 14:38:56 -07:00
Qi Luo
d0b4239f1c
[submodule] Update submodule of sonic-utilities (#7101)
Included commits:
```
b5aedfb 2021-03-18 | [show] Fix show arp in case with FDB entries, linked to default VLAN (#1517) [Qi Luo]
```
2021-03-19 11:32:38 -07:00
Joe LeVeque
2777e982ff
[201911][sonic-config-engine] Parse AutoNegotiation element from LinkMetadata section of minigraph file (#7047)
Backport of https://github.com/Azure/sonic-buildimage/pull/7031 to the 201911 branch

#### Why I did it

To enable parsing the `AutoNegotiation` element from the LinkMetadata section of minigraph file

#### How I did it

Parse the value `AutoNegotiation` element from the `LinkMetadata` section of minigraph file. If the element is present, an `autoneg` key will be added to the port in the `PORT` table of Config DB with a value of either `0` or `1`

If an `autoneg` value is present in port_config.ini, the value from the minigraph will take precedence, overriding that value.

Also remove `AutoNegotiation` and `EnableAutoNegotiation` elements from the `DeviceInfo` section, as we will use this data in the `LinkMetadata` section to determine whether to enable auto-negotiation for a port.
2021-03-18 13:18:15 -07:00
judyjoseph
c15b5ea339 To decrease the Connect Retry Timer from default value which is 120sec to 10 sec. (#7087)
Why I did it
It was observed that on a multi-asic DUT bootup, the BGP internal sessions between ASIC's was taking more time to get ESTABLISHED than external BGP sessions. The internal sessions was coming up almost exactly 120 secs later.

In multi-asic platform the bgp dockers ( which is per ASIC ) on switch start are bring brought up around the same time and they try to make the bgp sessions with neighbors (in peer ASIC's) which may be not be completely up. This results in BGP connect fail and the retry happens after 120sec which is the default Connect Retry Timer

How I did it
Add the command to set the bgp neighboring session retry timer to 10sec for internal bgp neighbors.
2021-03-17 23:16:44 -07:00
Abhishek Dosi
b5e12d9970 [Submodule update] sonic-utilities
ad8eb74cf9b705b914227588b5c8af1ad1af02da (HEAD -> 201911, origin/201911)
[route_check]: Dropped redundant code. (#1463)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-03-17 16:45:53 -07:00
Qi Luo
a70ab9ec47
[submodule] Update submodule of sonic-utilities (#7070)
Included commits:
```
0d5fb48 2021-03-16 | [show] Fix 'show mac' output, when FDB entry with Vlan 1 is present (#1507) [maksymbelei95]
```
2021-03-16 21:34:20 -07:00
Qi Luo
385e7265ce
[submodule] update sonic-py-swsssdk and sonic-snmpagent (#7061)
Included commits in sonic-py-swsssdk
```
63c75c1 2021-03-14 | Workaround Mellanox default vlan has no SAI_VLAN_ATTR_VLAN_ID attribute (#103) [Qi Luo]
```

Included commits in sonic-snmpagent
```
a8c6e36 2021-03-15 | Implement rfc4363 FdbUpdater for lag inside vlan (#204) [Qi Luo]
```
2021-03-16 04:49:40 -07:00
Tamer Ahmed
7c5f0ff316
Start DHCP Relay When Helpers IPs Are Available (#6961) (#7059)
It is possible to have DHCP relay configuration with no servers/
helpers which result in DHCP container to crash. This PR fixes this
issue by not starting DHCP relay for vlans with no DHCP helpers.

resolves: #6931
closes: #6931
Do not add program group for dhcp relay with not dhcp helpers

Unit test
2021-03-15 14:43:50 -07:00
Abhishek Dosi
50a56f6dd2 [Submodule update] sonic-snmpagent
d81828c6740f2d4fca59fe3ec1d0adb1088a9dbb (HEAD -> 201911, origin/201911) Updated lldpRemManAddrTable to use all the management ip address associated with interface. (#201)
093a3c2c5bc688ddc5e5362dc657f19175e12ce8 Fix fdb_vlanmac() on corner cases (#193)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-03-15 12:29:49 -07:00
trzhang-msft
139fcf500c
[dhcp-relay]: add option -si to support using src intf ip in relay (#7055) 2021-03-15 09:23:06 -07:00
Abhishek Dosi
de5c664b56 [submodule update] sonic-utilities.
650a68b7f1048530593e27a97536b52aa284a236 (HEAD -> 201911, origin/201911)
[201911 SKU creator] fix wrong speed in case breakout of 2x50
(#1352)
517cdb41febacc04c5ffd3ee326dd45dab33185c [201911] platform pre-check
for reboot (#1472)
d86af49a882095bf05f2e72d128e6103238a8943 [201911] Add soft-reboot
reboot type (#1449)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-03-14 19:25:43 -07:00
Qi Luo
c8e78a9e34
[201911][submodule] Update sonic-py-swsssdk and sonic-snmpagent submodules (#7046)
Included commits in sonic-py-swsssdk repo
```
4e0c561 2019-11-19 | read portchannel name from LAG_NAME_MAP_TABLE in COUNTERS_DB (#51) [anilkpandey]
```

Included commits in sonic-snmpagent repo
```
02dc2ce 2021-03-12 | add mock tables for LAG_NAME_MAP_TABLE in COUNTERS_DB (#202) [Qi Luo]
```
2021-03-12 21:48:01 -08:00
abdosi
9b553d905d
Fix bgpmon.py sylog for exception handling. (#7030)
[201911] Fix bgpmon.py syslog message during exception handling.
2021-03-12 11:11:59 -08:00
Kebo Liu
c2806eb756
Pickup latest change in sonic-platform-daemon (#7014)
Pick up the latest change in sonic-platform-daemons submodule: Azure/sonic-platform-daemons@f59480d

Signed-off-by: Kebo Liu <kebol@nvidia.com>
2021-03-11 12:00:37 +02:00
judyjoseph
b20e67819f [sonic-cfggen]: Use unix socket when reading from DB only if we are using sudo. (#7002)
Closes issue #6982.
The issue was root caused as we were using the unix_socket for reading from DB as a default mechanism (#5250). The redis unix socket is created as follows.

admin@str--acs-1:~$ ls -lrt /var/run/redis/redis.sock 
srwxrw---- 1 root redis 0 Mar  6 01:57 /var/run/redis/redis.sock
So it used to work fine for the user "root" or if user is part of redis group ( admin was made part of redis group by default )

Check if the user is with sudo permissions then use the redis unix socket, else fallback to tcp socket.
2021-03-10 12:47:20 -08:00
Abhishek Dosi
38fbd98cd7 [submodule update] sonic-utilities
9e740759c370645b4367acf22856aebcfb7fce45 (HEAD -> 201911, origin/201911) [201911][multi asic] show ip bgp summary changes for bgp mon (#1483)
fa07245786df11e6df902c33fcd9c7115a7c5380 [CLI][techsupport] Merge 'show techsupport' changes from master (#1468)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
2021-03-06 21:25:34 -08:00
Danny Allen
603767d94a
[201911][submodule] Update sonic-utilities submodule (#6966)
- [201911][acl] Expand VLAN into VLAN members when creating an ACL table (#1477)
- [201911][acl-loader] Add support for matching on ICMP and VLAN info (#1476)
- [201911][acl-loader] Improve input validation for acl_loader (#1481)

Signed-off-by: Danny Allen <daall@microsoft.com>
2021-03-05 07:26:10 -08:00
Danny Allen
5975d54917
[201911][openconfig_acl] Allow setting ICMP type/code to 0 (#6941)
Signed-off-by: Danny Allen <daall@microsoft.com>
2021-03-03 14:03:10 -08:00
abdosi
9dc285ab05 Changes in FRR temapltes for multi-asic (#6901)
1. Made the command next-hop-self force only applicable on back-end asic bgp. This is done so that BGPL iBGP session running on backend can send e-BGP learn nexthop. Back end asic FRR is able to recursively resolve the eBGP nexthop in its routing table since it knows about all the connected routes advertise from front end asic.

2. Made all front-end asic bgp use global loopback ip (Loopback0) as router id and back end asic bgp use Loopbacl4096 as ruter-id and originator id for Route-Reflector. This is done so that routes learnt by external peer do not see Loopback4096 as router id in show ip bgp <route-prerfix> output.

3. To handle above change need to pass Loopback4096 from BGP manager for jinja2 template generation. This was missing and this change/fix is needed for this also https://github.com/Azure/sonic-buildimage/blob/master/dockers/docker-fpm-frr/frr/bgpd/templates/dynamic/instance.conf.j2#L27

4. Enhancement to add mult_asic specific bgpd template generation unit test cases.
2021-03-02 14:42:22 -08:00
abdosi
fbc3386825 [multi-asic] BBR support on internal-peers for multi-asic platfroms. (#6848)
Enable BBR config allowas-in 1 for internal peers

Why I did:
To advertise BBR routes learnt via e-BGP peer in one asic/namespace to another iBGP asic/namespace via Route Reflector.
2021-03-02 13:44:17 -08:00
Danny Allen
16e11cf875
[201911][openconfig_acl] Add SONiC ACL extension to open config ACL model (#6897)
Add support for VLAN ID match
Add support for ICMP type/code match

To allow users to add ACL rules w/ ICMP and VLAN qualifiers via acl-loader.
2021-02-28 12:02:56 -08:00