Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master merge #15

Merged
merged 39 commits into from
Mar 28, 2022
Merged

Master merge #15

merged 39 commits into from
Mar 28, 2022

Commits on Mar 17, 2022

  1. [Submodule]: Update sonic-restapi (#10257)

    #### Why I did it
    ```
    Update submodule sonic-restapi
    bd97dfe Fix urllib3 CVE-2021-33503 issue (#104)
    f159bfa Upgrade the containers to be based on Debian Buster (#103)
    a1830c1 (origin/201911) Fix OpenAPI spec to be readable by autorest (#101)
    ```
    xumia authored Mar 17, 2022
    Configuration menu
    Copy the full SHA
    e1f57db View commit details
    Browse the repository at this point in the history
  2. [yang] Fixing Ethertype field regex in acl rule yang to accept decima…

    …l values (#10108)
    
    #### Why I did it
    Fixing issue #9991
    The ACL RULE table field ETHER_TYPE can accept both hex as well as decimal values. However yang model didn't allow decimal values. Fixed it to allow decimal values (same pattern as in hex (1536-65535)
    
    
    #### How I did it
    Updated yang model to handle decimal values
    
    #### How to verify it
    Added UT to verify it.
    dgsudharsan authored Mar 17, 2022
    Configuration menu
    Copy the full SHA
    52c2a3a View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. Edgecore 4630/5835/7326/7816 API2.0 platform support (#10053)

    * Initial pass of EdgeCore platform changes.
    
    * Remove libevent dependency from lldpd.
    
    * Remove python2 dependencies python3.7 force from platform install script.
    
    * Include usbmount support changes.
    
    * Add missing 4630 install file.
    
    * Update a few file permissions.  Add umask line to Makefile.  Specify python3.9 in install script.
    
    * Misc platform updates:
    - Add missing fan drawer component to sonic_platform
    - Remove kernel version specification from Makefile
    - Update to 4630 utility
    
    * - Fix file permissions on source files
    - Fix compile issue with 4630 driver modules (set_fs, get_fs, no longer supported in kernel 5.10)
    
    * Fix missing/extra parens in 4630 util script.
    
    * Fix indentation in fanutil.py.
    
    * Integrate deltas from Edgecore to ec_platform branch.
    
    * Installer update from Edgecore to resolve smbus serial console errors.
    
    * Update stable_size for warm boot.
    
    * Fix SFP dictionary key to match xcvrd.
    
    * - Add missing define in event.py files needed for xcvrd
    - Fix SFP info dict key for 7xxx switches
    
    * 5835 platform file updates including installer and 5835 utility.
    
    * 5835 fix for DMAR errors on serial console.
    
    * Don't skip starting thermalctld in the pmon container.
    
    * Revert several changes that were not related to platform.
    
    * Run thermalctld in pmon container.
    
    * Don't disable thermalctld in the pmon container.
    
    * Fix prints/parens in 7816 install utility.
    
    * - Incorporate 7816 changes from Edgecore
    - Fix 7326 driver file using old kernel function
    
    * Update kernel modules to use kernel_read().
    
    * Fix compile errors with 7816 and 7326 driver modules.
    
    * Fix some indents preventing platform files from loading.
    
    * Update 7816 platform sfp dictionary to match field names in xcvrd.
    
    * Add missing service and util files for 7816.
    
    * Update file names, etc. based on full SKU for 7816.
    
    * Delete pddf files not needed.  These were causing conflicts with API2.0
    implementation.
    
    * Remove pddf files suggested by Edgecore that were preventing API2.0 support from starting.
    
    * Install API2.0 file instead of pddf.
    
    * Update 7326 mac service file to not use pddf.  Fix syntax errors in 7326 utility script.
    
    * Fix sonic_platform setup file for 7326.
    
    * Fix syntax errors in python scripts.
    
    * Updates to 7326 platform files.
    
    * Fix some tab errors pulled down from master merge.
    
    * Remove pddf files that were added from previous merge.
    
    * Updates for 5835.
    
    * Fix missing command byte for 5835 psu status.
    
    * Fix permission bits on 4630 service files.
    
    * Update platforms to use new SFP refactoring.
    
    * Fix unused var warnings.
    jeffhtgt authored Mar 18, 2022
    Configuration menu
    Copy the full SHA
    ad62000 View commit details
    Browse the repository at this point in the history
  2. [pddf]: Adding support for fan_drawer class in PDDF common platform A…

    …PIs (#10213)
    
    Why I did it
    fan_drawer support was missing in PDDF common platform APIs. This resulted in 'thermalctld' not working and 'show platform fan' and 'show platfomr temperature' commands not working.
    _thermal_list array inside PSU class was not initialized. Made changes to attach the PSU related thermal sensors in the PSU instance.
    How I did it
    Added a common class pddf_fan_drawer.py. This class uses the PDDF JSON to fetch the platform specific data. A platform which uses PDDF would follow the below hierarchy.
    
    fan_drawer_base.py ---> pddf_fan_drawer.py ---> fan_drawer.py
    
    How to verify it
    Run the 'show platform fan' and 'show platform temperature' commands and check the o/p.
    
    o/p on AS7326:
    
    root@sonic:/home/admin# show platform fan
    s  Drawer    LED         FAN    Speed    Direction    Presence    Status          Timestamp
    --------  -----  ----------  -------  -----------  ----------  --------  -----------------
    Fantray1  green  Fantray1_1      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray1  green  Fantray1_2      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray2  green  Fantray2_1      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray2  green  Fantray2_2      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray3  green  Fantray3_1      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray3  green  Fantray3_2      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray4  green  Fantray4_1      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray4  green  Fantray4_2      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray5  green  Fantray5_1      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray5  green  Fantray5_2      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray6  green  Fantray6_1      38%      EXHAUST     Present        OK  20220311 04:15:03
    Fantray6  green  Fantray6_2      38%      EXHAUST     Present        OK  20220311 04:15:03
         N/A    off   PSU1_FAN1       0%                  Present    Not OK  20220311 04:15:05
         N/A  green   PSU2_FAN1      34%      EXHAUST     Present        OK  20220311 04:15:05
    hroot@sonic:/home/admin# show platform temperature
        Sensor    Temperature    High TH    Low TH    Crit High TH    Crit Low TH    Warning          Timestamp
    ----------  -------------  ---------  --------  --------------  -------------  ---------  -----------------
    PSU1_TEMP1            0          N/A       N/A             N/A            N/A      False  20220311 04:15:05
    PSU2_TEMP1           37          N/A       N/A             N/A            N/A      False  20220311 04:15:05
         TEMP1           37         80.0       N/A             N/A            N/A      False  20220311 04:15:05
         TEMP2           27         80.0       N/A             N/A            N/A      False  20220311 04:15:05
         TEMP3           28.5       80.0       N/A             N/A            N/A      False  20220311 04:15:05
         TEMP4           30.5       80.0       N/A             N/A            N/A      False  20220311 04:15:05
    root@sonic:/home/admin#
    root@sonic:/home/admin#
    root@sonic:/home/admin#
    o/p on AS7726:
    
    root@as7726-32x-2:~# show platform fan
      Drawer    LED         FAN    Speed    Direction    Presence    Status          Timestamp
    --------  -----  ----------  -------  -----------  ----------  --------  -----------------
    Fantray1  green  Fantray1_1      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray1  green  Fantray1_2      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray2  green  Fantray2_1      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray2  green  Fantray2_2      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray3  green  Fantray3_1      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray3  green  Fantray3_2      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray4  green  Fantray4_1      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray4  green  Fantray4_2      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray5  green  Fantray5_1      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray5  green  Fantray5_2      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray6  green  Fantray6_1      38%      EXHAUST     Present        OK  20220311 08:13:04
    Fantray6  green  Fantray6_2      38%      EXHAUST     Present        OK  20220311 08:13:04
         N/A  green   PSU1_FAN1      23%      EXHAUST     Present        OK  20220311 08:13:04
         N/A  green   PSU2_FAN1      22%      EXHAUST     Present        OK  20220311 08:13:04
    root@as7726-32x-2:~# show platform temp
        Sensor    Temperature    High TH    Low TH    Crit High TH    Crit Low TH    Warning          Timestamp
    ----------  -------------  ---------  --------  --------------  -------------  ---------  -----------------
    PSU1_TEMP1           28          N/A       N/A             N/A            N/A      False  20220311 08:13:04
    PSU2_TEMP1           25          N/A       N/A             N/A            N/A      False  20220311 08:13:04
         TEMP1           23.5       80.0       N/A             N/A            N/A      False  20220311 08:13:04
         TEMP2           27         80.0       N/A             N/A            N/A      False  20220311 08:13:04
         TEMP3           24         80.0       N/A             N/A            N/A      False  20220311 08:13:04
         TEMP4           27         80.0       N/A             N/A            N/A      False  20220311 08:13:04
         TEMP5           24         80.0       N/A             N/A            N/A      False  20220311 08:13:04
    FuzailBrcm authored Mar 18, 2022
    Configuration menu
    Copy the full SHA
    d3f2da8 View commit details
    Browse the repository at this point in the history
  3. [sonic-linkmgrd][master] submodule update (#10271)

    f00efef Longxiang Lyu Wed Mar 16 09:12:46 2022 +0800 Add a command line option to store logs into a separate file (#41)
    ff2e67d Longxiang Lyu Tue Mar 15 09:10:59 2022 +0800 Add default port cable type (#39)
    ebbb4d8 Jing Zhang Mon Mar 14 15:41:11 2022 -0700 Prevent switching MUX to "Unknown" (#36)
    c779b8f Longxiang Lyu Thu Mar 10 21:35:11 2022 +0800 [nonfunctional] Use LinkProberStateMachineBase (#38)
    b9fedd0 Longxiang Lyu Wed Mar 9 13:03:58 2022 +0800 [NONFUNCTIONAL] Add LinkProberStateMachineBase (#37)
    bedd42b Longxiang Lyu Wed Mar 9 10:03:00 2022 +0800 Add .clang-format file to format code (#28)
    9fe4fc6 Guohan Lu Thu Mar 3 17:51:43 2022 -0800 [doc]: add lgtm badge in README.md
    c1249d9 Longxiang Lyu Wed Mar 2 18:05:18 2022 +0800 Enable lgtm (#33)
    b8514c6 Longxiang Lyu Wed Mar 2 13:34:39 2022 +0800 Collect port cable type to use corresponding state machine (#31)
    9b59ef9 Longxiang Lyu Wed Mar 2 07:19:33 2022 +0800 Improve make clean (#32)
    zjswhhh authored Mar 18, 2022
    Configuration menu
    Copy the full SHA
    64822d8 View commit details
    Browse the repository at this point in the history
  4. [Arista] Update driver submodules (#10267)

     - Fix i2c bus on crow cpu
     - Fix exception handling in logs
     - Improve linecard mgmt interface configuration
     - Add new PSU models for chassis
     - Misc fixes
    Staphylo authored Mar 18, 2022
    Configuration menu
    Copy the full SHA
    3a4ed99 View commit details
    Browse the repository at this point in the history
  5. [Mellanox] Update Mellanox SN2201 device specific files (#10275)

    Update device-specific files for new platform SN2201, including:
    
    device/mellanox/x86_64-nvidia_sn2201-r0/ACS-SN2201/buffers_defaults_objects.j2
    device/mellanox/x86_64-nvidia_sn2201-r0/ACS-SN2201/hwsku.json
    device/mellanox/x86_64-nvidia_sn2201-r0/default_sku
    device/mellanox/x86_64-nvidia_sn2201-r0/pcie.yaml
    device/mellanox/x86_64-nvidia_sn2201-r0/platform.json
    device/mellanox/x86_64-nvidia_sn2201-r0/platform_components.json
    device/mellanox/x86_64-nvidia_sn2201-r0/sensors.conf
    
    Signed-off-by: Kebo Liu <kebol@nvidia.com>
    Co-authored-by: Stephen Sun <stephens@nvidia.com>
    keboliu and stephenxs authored Mar 18, 2022
    Configuration menu
    Copy the full SHA
    9d2078c View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2022

  1. [yang] Update YANG model for mirror session to support decimal value …

    …for GRE type (#10140)
    
    #### Why I did it
    PR  sonic-net/sonic-utilities#1825 added validation for the input of `config mirror session add`, and only decimal value is accepted.
    An issue #10096 was raised to suggest accepting HEX value as well, and the suggestion makes sense to me.
    
    To accept HEX value for GRE type, and keep backward compatibility as well, I updated the YANG model to support both decimal and hexadecimal input for GRE type.
    
    #### How I did it
    Update the regex for GRE type.
    
    #### How to verify it
    Verified by UT
    ```
    platform linux -- Python 3.9.2, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
    rootdir: /sonic/src/sonic-yang-models
    plugins: pyfakefs-4.5.4, cov-2.10.1
    collected 3 items                                                                                                                                                                                     
    
    tests/test_sonic_yang_models.py ..                                                                                                                                                              [ 66%]
    tests/yang_model_tests/test_yang_model.py .                                                                                                                                                     [100%]
    
    ========================================================================================== 3 passed in 2.53s ==========================================================================================
    ```
    
    #### Description for the changelog
    Update YANG model for mirror session to support decimal value for GRE type.
    bingwang-ms authored Mar 19, 2022
    Configuration menu
    Copy the full SHA
    fb7f046 View commit details
    Browse the repository at this point in the history
  2. [Build][Bug]: fix the warning message not printed as expected issue (#…

    …10278)
    
    Fix the warning message not printed as expected issue
    xumia authored Mar 19, 2022
    Configuration menu
    Copy the full SHA
    ed4f19f View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2022

  1. [Mellanox] Fix issue: psu might use wrong voltage sysfs which causes …

    …invalid voltage value (#10231)
    
    - Why I did it
    Fix issue: psu might use wrong voltage sysfs which causes invalid voltage value. The flow is like:
    
    1. User power off a PSU
    2. All sysfs files related to this PSU are removed
    3. User did a reboot/config reload
    4. PSU will use wrong sysfs as voltage node
    
    - How I did it
    Always try find an existing sysfs.
    
    - How to verify it
    Manual test
    Junchao-Mellanox authored Mar 20, 2022
    Configuration menu
    Copy the full SHA
    dc04d64 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. [Submodule] Update src/sonic-utilities (#10272)

    Updating sonic-utilities sub module with the following commits
    
        b00b870 [build] stop vstest in the Azure pipeline 
        2c56e92 [GCU] Marking fields under BGP_PEER_RANGE, BGP_MONITORS as create-only
        6289987 Fix sonic-installer failure due to missing import 
        45e6ac1 [show] add support for hwstatus in show muxcable status
        93384ed Try get port operational speed from STATE DB
        483fc6e [techsupport] Added a lock to avoid running techsupport in parallel
        398da58 Validation check correction while adding a member to PortChannel
        a8a7edb [generate_dump] exclude mft and mlx folders from /etc
        1cf1d03 Fix UT failed cause by change pycommon to use swsscommon
    liuh-80 authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    4659f8b View commit details
    Browse the repository at this point in the history
  2. [Build]: Support to set jobFilters (#10280)

    [Build]: Support to set jobFilters
    xumia authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    49ac9f9 View commit details
    Browse the repository at this point in the history
  3. Update submodule sonic-snmpagent (#10277)

    Updating sonic-snmpagent submodule with the following commits
    
            dae8146 [ci]: Support code diff coverage
            6bd51c4 Fix: LAG counters, if LAG don't have L3 interface
            2654f4a Fix snmp agent Initialize config DB multiple times issue
    
    #### Why I did it
        When change pycommon to use swsscommon UT failed in sonic-snmpagent, need submodule update with UT issue fix.
    
    #### How I did it
    
    #### How to verify it
    
    #### Which release branch to backport (provide reason below if selected)
    
    #### Description for the changelog
    
            [ci]: Support code diff coverage
            Fix: LAG counters, if LAG don't have L3 interface
            Fix snmp agent Initialize config DB multiple times issue
    
    #### A picture of a cute animal (not mandatory but encouraged)
    liuh-80 authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    87af565 View commit details
    Browse the repository at this point in the history
  4. [Build]: Use one debian mirror config (#10274)

    Why I did it
    Use one debian mirror config.
    The empty config in https://github.com/Azure/sonic-buildimage/blob/master/files/image_config/apt/sources.list overrides the file https://github.com/Azure/sonic-buildimage/blob/master/files/apt/sources.list.amd64 (armhf/arm64), it does not make sense.
    All the content in files/image_config/apt is no use, any one wants to add mirror config, please add in files/apt.
    
    How I did it
    Remove files/image_config/apt and the reference.
    xumia authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    1017ee6 View commit details
    Browse the repository at this point in the history
  5. [Build]: support to collect version when purging debian package (#10287)

    Why I did it
    support to collect version when purging debian package
    Support to collect version multiple times
    
    How I did it
    Add the collection action before purging.
    xumia authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    92363ea View commit details
    Browse the repository at this point in the history
  6. [Arista] rename management interface in initrd (#9856)

    On some products the pci enumeration adds randomness into which nic gets
    initialized first.
    Because SONiC doesn't use deterministic interface naming but instead old
    style interface naming, this leads to eth0 not always being the
    management port.
    To make sure eth0 is always the management port (SONiC expectation)
    rename the interfaces in the initramfs for Arista products.
    Staphylo authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    e4b507f View commit details
    Browse the repository at this point in the history
  7. [Nokia][IXR7250E]Update Nokia IXR7250E platform device data file (#10091

    )
    
    Signed-off-by: mlok <marty.lok@nokia.com>
    mlok-nokia authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    e919f4d View commit details
    Browse the repository at this point in the history
  8. Fix issue of partially parsing syseeprom value (#10020) (#10276)

    Why I did it
    The current code assumes that the value part does not have whitespace. So everything after the whitespace will be ignored. The syseeprom values returned from platform API do not match the output of "show platform syseeprom" on dx010 and e1031 device.
    
    How I did it
    This change improved the regular expression for parsing syseeprom values to accommodate whitespaces in the value.
    PR 10021 provides the solution, but committed to the wrong place for dx010 and e1031.
    
    How to verify it
    Compile the sonic_platform wheel for dx010, then upload to device and install the wheel, verify the platform eeprom API.
    
    Signed-off-by: Eric Zhu <erzhu@celestica.com>
    qnos authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    4caa887 View commit details
    Browse the repository at this point in the history
  9. [Mellanox] Add CPU thermal control for Nvidia platforms (#10202)

    Why I did it
    Add CPU thermal control for Nvidia platforms which will be enabled for platforms that have heavy CPU load. Now it is only enabled on 4800, and it will be enabled on future platforms.
    
    How I did it
    Check CPU pack temperature and update cooling level accordingly
    
    How to verify it
    Manual test
    Added sonic-mgmt test case, PR link will update later
    Junchao-Mellanox authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    f0ddd10 View commit details
    Browse the repository at this point in the history
  10. [Barefoot][Syncd] restart of the interface for cleaning txquee throug…

    …h which communication takes place between Sonic and openBMC (#9941)
    
    Why I did it
    improvement of starting barefoot SDK
    
    How I did it
    restart of the interface for cleaning txquee through which communication takes place between Sonic and openBMC
    
    How to verify it
    run sonic autorestart tests
    KostiantynYarovyiBf authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    bf4ab4a View commit details
    Browse the repository at this point in the history
  11. [Mellanox] update MFT version to 4.18.0-106 (#10304)

    - Why I did it
    With the previous MFT 4.18.1-16 there is a bug in mstdump tool accessing wrong address. it is confirmed this issue does not exist in official 4.18.0-106.
    
    - How I did it
    Update the MFT version to 4.18.0-106
    
    - How to verify it
    Run regression on Mellanox platforms
    keboliu authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    42ab5b8 View commit details
    Browse the repository at this point in the history
  12. [sonic-config-engine][portconfig] Do not parse JSON as Python AST (#1…

    …0224)
    
    #### Why I did it
    To fix #9643
    
    #### How I did it
    Instead of ast.literal_eval added python2 compat code for json strings unicode -> str convertion.
    
    We need python2 compatibility since py2 sonic config engine (buster/sonic_config_engine-1.0-py2-none-any.whl target) is still included into the build (ENABLE_PY2_MODULES flag is set for buster). Once we abandon buster and python2, this compat and ast.literal_eval could be cleaned up all through the code base.
    
    #### How to verify it
    run steps from the linked issue
    vboykox authored Mar 21, 2022
    Configuration menu
    Copy the full SHA
    24397ea View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2022

  1. Configuration menu
    Copy the full SHA
    90416b5 View commit details
    Browse the repository at this point in the history
  2. [Build]: Fix armhf mirrors not existing issue (#10312)

    Why I did it
    [Build]: Fix armhf mirrors not existing issue
    The mirror endpoint debian-archive.trafficmanager.net does not support armhf, change to use deb.debian.org and security.debian.org.
    xumia authored Mar 22, 2022
    Configuration menu
    Copy the full SHA
    e9ac136 View commit details
    Browse the repository at this point in the history
  3. [build] Fix docker image cached tag issue. (#10297)

    before: [ finished ] target/docker-base-buster.gz
    after: [ cached ] target/docker-base-buster.gz
    liushilongbuaa authored Mar 22, 2022
    Configuration menu
    Copy the full SHA
    f8e1104 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2022

  1. [yang] In ACL_RULE PRIORITY is mandatory and PACKET_ACTION for CTRLPL…

    …ANE ACLs (#10248)
    
    #### Why I did it
    Fixes sonic-net/sonic-utilities#2049
    
    from caclmgr:
    - PRIORITY is a required field [code](https://github.com/Azure/sonic-buildimage/blob/3fa18d18d4c06fe38164ebfefdc3187820fc7496/src/sonic-host-services/scripts/caclmgrd#L548)
    - PACKET_ACTION is a required field [code](https://github.com/Azure/sonic-buildimage/blob/3fa18d18d4c06fe38164ebfefdc3187820fc7496/src/sonic-host-services/scripts/caclmgrd#L581)
    
    I think PRIORITY is a required field for ACLs not only CTRLPLANE ACLs
    
    #### How I did it
    Check code.
    
    #### How to verify it
    Unit-test
    
    #### Which release branch to backport (provide reason below if selected)
    
    <!--
    - Note we only backport fixes to a release branch, *not* features!
    - Please also provide a reason for the backporting below.
    - e.g.
    - [x] 202006
    -->
    
    - [ ] 201811
    - [ ] 201911
    - [ ] 202006
    - [ ] 202012
    - [ ] 202106
    - [ ] 202111
    
    #### Description for the changelog
    <!--
    Write a short (one line) summary that describes the changes in this
    pull request for inclusion in the changelog:
    -->
    
    #### Link to config_db schema for YANG module changes
    <!--
    Provide a link to config_db schema for the table for which YANG model
    is defined
    Link should point to correct section on https://github.com/Azure/SONiC/wiki/Configuration.
    -->
    
    #### A picture of a cute animal (not mandatory but encouraged)
    ghooo authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    874d7fc View commit details
    Browse the repository at this point in the history
  2. [sonic-py-swsssdk]: Advance submodule (#10308)

    Update sonic-py-swsssdk submodule to include below commits:
    
    96c0590 [port_util] Fix issue: port_util.get_vlan_interface_oid_map should not raise exception when DB has not RIF data (#117)
    96da8b9 [build] pin pytest-azurepipelines version (#119)
    
    Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
    SuvarnaMeenakshi authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    74c32d0 View commit details
    Browse the repository at this point in the history
  3. [Nokia ixs7215] Fixes to support Debian bullseye (#10309)

    The following changes are provided to support bullseye and the latest master
    branch content.
        - Accommodate relocated fan and thermal sysfs entries in bullseye
        - Add support for chassis and PSU HW revision
    
    
    Why I did it
    Fix platform issues introduced by the bullseye kernel upgrade.
    
    How I did it
    Minor fixes to Nokia ixs7215 platform code
    
    How to verify it
    Execute the following CLI commands
    show platform summary
    show platform fan
    show platform temperature
    dflynn-Nokia authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    99b7891 View commit details
    Browse the repository at this point in the history
  4. [restapi]: Don't use python/python2 for restapi start scripts (#10285)

    Python 2 isn't installed by default in Buster and Bullseye containers,
    and the scripts/modules can be used with Python 3, so make sure Python 3
    is used.
    
    Why I did it
    After the Buster and Bullseye upgrade for the restapi container, processes will no longer start because supervisord is trying to call python and python2, both of which are unavailable.
    
    Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
    saiarcot895 authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    4a5e75e View commit details
    Browse the repository at this point in the history
  5. Check to see that the py2 and py3 version files exist before trying t…

    …o sort them (#10325)
    
    For Bullseye, Python 2 isn't present at all. This means that in certain
    build cases (such as building something only for Bullseye), the version
    file may not exist, and so the sort command would fail.
    
    For most normal build commands, this probably won't be an issue, because
    the SONiC build will start with Buster (which has both Python 2 and
    Python 3 wheels built), and so the py2 and py3 files will be present
    even during the Bullseye builds.
    
    Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
    saiarcot895 authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    9451a9d View commit details
    Browse the repository at this point in the history
  6. [Mellanox] Refactor SFP to use new APIs. (#10317)

    - Why I did it
    Refactor SFP code to remove code duplication and to be able to use the latest features available in new APIs.
    
    - How I did it
    Refactor SFP code to remove code duplication and to be able to use the latest features available in new APIs.
    
    - How to verify it
    Run sonic-mgmt/platform_tests/sfp tests
    oleksandrivantsiv authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    9565ef7 View commit details
    Browse the repository at this point in the history
  7. [Mellanox] Update NVIDIA License header for files changed since 1.1.2…

    …022 (#10289)
    
    - Why I did it
    Update NVIDIA Copyright header to "mellanox" files which were changed since 1.1.2022
    
    - How I did it
    Update the copyright header
    
    - How to verify it
    Sanity tests and PR checkers.
    dprital authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    8bc8120 View commit details
    Browse the repository at this point in the history
  8. [Build]: Enable marvell-armhf PR check (#10259)

    Why I did it
    [Build]: Enable marvell-armhf PR check
    Improve the azp dependencies, make the Test stage only depended on BuildVS stage. The Test stage will be triggered once the BuildVS stage finished, reduce the waiting time.
    xumia authored Mar 23, 2022
    Configuration menu
    Copy the full SHA
    8f418bb View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2022

  1. [PINS] update sonic-p4rt docker to bullseye (#10182)

    #### Why I did it
    SONiC is migrating to bullseye. This will update the sonic-pins container to bullseye.
    
    #### How I did it
    The [sonic-pins code](https://github.com/Azure/sonic-buildimage/blob/master/rules/p4rt.mk) isn't dependent on any architecture so it will already build successfully for bullseye. This PR updates the docker to use bullseye.
    
    #### How to verify it
    Today we cannot build the docker-sonic-p4rt.gz target (e.g. Issue #9885). With this change the docker will build successfully. The P4RT executable will not run, because of a missing runtime library, libgmpxx, which I'll address in a followup PR.
    
    #### Description for the changelog
    Update docker-sonic-p4rt.gz target to build with Bullseye instead of Buster.
    rhalstea authored Mar 24, 2022
    Configuration menu
    Copy the full SHA
    147d631 View commit details
    Browse the repository at this point in the history
  2. [Marvell-armhf] Fixing issues related to partition label (#10203)

    Why I did it
    Removing incorrect check in plt setup for fw_env config: This check was added before to compare 2 different types of disk. Now the check is redundant and check is not required as transition is complete.
    2)Removing legacy_volume_label in create_partition: legacy_volume_label is not used in armhf install files. With legacy_volume_label initialized to NULL, current code will always return true for check, if demo_part exits.
    
    How I did it
    Change is about removing the redundant/incorrect code explained above.
    
    How to verify it
    uboot fw_printenv and fw_setenv is tested
    onie-nos-install has be verified.
    
    Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com>
    pavannaregundi authored Mar 24, 2022
    Configuration menu
    Copy the full SHA
    97c0207 View commit details
    Browse the repository at this point in the history
  3. [Marvell-armhf] Setting u-boot ftd_high to resolve kernel hung (#10204)

    Why I did it
    Kernel hang in during early boot is caused due overwriting of device tree with uncompressing kernel. Added the fdt_high which gives a safe offset from kernel location.
    
    How I did it
    Setting uboot environment variable fdt_high.
    
    How to verify it
    Successful boot of bullseye kernel on Marvell Armada 380/385.
    
    Change-Id: I3e2521780f5ecdb3bdf6cbb6542250814ca11959
    Signed-off-by: Pavan Naregundi <pnaregundi@marvell.com>
    pavannaregundi authored Mar 24, 2022
    Configuration menu
    Copy the full SHA
    7eb321c View commit details
    Browse the repository at this point in the history
  4. Refactoring DELL platform init to reduce rc.local processing time por…

    …ting changes in master (#10318)
    
    Why I did it
    To reduce the processing time of rc.local, refactoring s6100 platform initialization.
    Porting changes from 202012 branch [202012] Refactoring DELL platform init to reduce rc.local processing time #10171
    santhosh-kt authored Mar 24, 2022
    Configuration menu
    Copy the full SHA
    e2502ed View commit details
    Browse the repository at this point in the history
  5. [YANG] Add route flow counter support (#9814)

    * [YANG] Add route flow counter support
    Junchao-Mellanox authored Mar 24, 2022
    Configuration menu
    Copy the full SHA
    9282618 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2022

  1. Dynamic port configuration - solve lldp issues when adding/removing p…

    …orts (#9386)
    
    #### Why I did it
    when adding and removing ports after init stage we saw two issues:
    
    first:
    In several cases, after removing a port, lldpmgr is continuing to try to add a port to lldp with lldpcli command. the execution of this command is continuing to fail since the port is not existing anymore.
    
    second:
    after adding a port, we sometimes see this warning messgae:
    "Command failed 'lldpcli configure ports Ethernet18 lldp portidsubtype local etp5b': 2021-07-27T14:16:54 [WARN/lldpctl] cannot find port Ethernet18"
    
    we added these changes in order to solve it.
    #### How I did it
    port create events are taken from app db only.
    lldpcli command is executed only when linux port is up.
    
    when delete port event is received we remove this command from  pending_cmds dictionary
    
    #### How to verify it
    manual tests and running lldp tests
    
    
    #### Description for the changelog
    Dynamic port configuration - solve lldp issues when adding/removing ports
    tomer-israel authored Mar 26, 2022
    Configuration menu
    Copy the full SHA
    cc938e7 View commit details
    Browse the repository at this point in the history