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

merge azure/sonic-swss to aclorch branch #3

Merged
merged 50 commits into from
Oct 2, 2019

Commits on Jul 24, 2019

  1. [portsorch]: Rename function isPortReady() to allPortsReady() (#990)

    Signed-off-by: Wenda Ni <wenni@microsoft.com>
    wendani authored and stcheng committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    5d04f05 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2019

  1. ARM32 bit fixes, for 64bit printf format specifier (#989)

    * ARM32 bit fixes, for 64bit printf format specifier
    
    Signed-off-by: Antony Rheneus <arheneus@marvell.com>
    antony-rheneus authored and lguohan committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    dde876d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e1f4403 View commit details
    Browse the repository at this point in the history
  3. [test]: Update test_vlan to use dvs functions (#986)

    Signed-off-by: Shu0t1an Cheng <shuche@microsoft.com>
    stcheng authored and lguohan committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    b7fa616 View commit details
    Browse the repository at this point in the history
  4. Support per buffer pool watermark polling mode (#973)

    Buffer pool watermark design is built on a READ_AND_CLEAR polling mode at the syncd level. We observe some SAI implementation is missing the clear_stats operation support for buffer pool watermark, either simply not coded yet or having hardware limitation. In such cases, we have mismatch between the actual polling behavior and what a user perceives from FLEX_COUNTER_DB read from FLEX_COUNTER_GROUP_TABLE.
    
    To have a consistent view, we propose per buffer pool watermark stats polling mode at the orchagent level when not all buffer pools support clear_stats operation on a switch. The situation is detected by issuing clear_stats operation at the orchagent level to probe the capability over all pools first. If this is truly the case, we then do not set "STATS_MODE" field in "FLEX_COUNTER_GROUP_TABLE:BUFFER_POOL_WATERMARK_STAT_COUNTER", but set it to the per buffer pool table "FLEX_COUNTER_TABLE:BUFFER_POOL_WATERMARK_STAT_COUNTER:oid:<buffer_pool_oid>".
    wendani authored and lguohan committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    ab8fead View commit details
    Browse the repository at this point in the history
  5. [vstest]: report error when team kernel module is not available (#994)

    make explicit failure if team kernel module is not available on the system
    
    Signed-off-by: Guohan Lu <gulv@microsoft.com>
    lguohan authored Jul 25, 2019
    Configuration menu
    Copy the full SHA
    6236b8f View commit details
    Browse the repository at this point in the history
  6. [qosorch]: Add cir and pir parameters for scheduler (#991)

    Signed-off-by: tengfei <tengfei@asterfusion.com>
    tengfei-astfs authored and stcheng committed Jul 25, 2019
    Configuration menu
    Copy the full SHA
    cadc5bd View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2019

  1. [vstest]: add --imgname option to specify vs image to test (#996)

    default image is docker-sonic-vs:latest
    
    Signed-off-by: Guohan Lu <gulv@microsoft.com>
    lguohan authored Jul 27, 2019
    Configuration menu
    Copy the full SHA
    5c54393 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2019

  1. [test]: Add Class object in each test script file (#992)

    This is to get a better JUnitXML file and align all
    the tests under the same level of hierarchy.
    
    Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
    stcheng authored Jul 28, 2019
    Configuration menu
    Copy the full SHA
    7368527 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2019

  1. Remove the platform check for remove/add port action at init phase. (#…

    …1006)
    
    Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
    zhenggen-xu authored and lguohan committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    5be3963 View commit details
    Browse the repository at this point in the history
  2. Trap DHCPv6 packets for supporting ZTP over in-band interfaces using … (

    #997)
    
    * Trap DHCPv6 packets for supporting ZTP over in-band interfaces using DHCPv6 discovery
    
    Also increase incoming packet rate on in-band interfaces to support faster
    download of large files. SONiC firmware image download over in-band can
    take a lot of time if the incoming packet rate is limited to 600pps. This,
    change increases it to 6000pps.
    
    Signed-off-by: Rajendra Dendukuri <rajendra.dendukuri@broadcom.com>
    rajendra-dendukuri authored and lguohan committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    8e50633 View commit details
    Browse the repository at this point in the history
  3. Config DB manual is being moved from Wiki to SWSS repo (#1002)

    Config DB manual is being moved from Wiki to SWSS repo.
    Once if this is merged, the page from Wiki will point to this config DB manual.
    After that, whichever developer makes changes on config DB, are expected to make the corresponding changes in this manual.
    kannankvs authored and lguohan committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    00d8d41 View commit details
    Browse the repository at this point in the history
  4. Fix VLAN error introduced with new 4.9 kernel behavior (#1001)

    The change includes two parts:
    
    <1> Bring member out of default VLAN 1 upon putting port/lag in a VLAN
    
    <2> Second part was done by @tieguoevan ( https://github.com/tieguoevan) and incorporated here to avoid test error that would follow change <1>.
    
    Summary:
    The Bridge interface needs to be up all the time. Otherwise, the command bridge vlan will fail.
    Not sure it is a kernel bug, but it cause error when clear all vlan members and reconfigure it.
    
    create a dummy interface in the Bridge to keep it up all the time
    
    Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
    jipanyang authored and lguohan committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    5166212 View commit details
    Browse the repository at this point in the history
  5. [vxlanorch] Fix Logic of Vxlan tunnel removal (#995)

    As the vxlan tunnel_id and tunnel_term_id are not created until the map entrys are added, in case of configuring the vxlan tunnel without map entry, and then it is invalid to remove it without validity checking.
    
    Signed-off-by: sundandan <sundandan@asterfusion.com>
    sdddean authored and lguohan committed Jul 31, 2019
    Configuration menu
    Copy the full SHA
    a5e6bea View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2019

  1. [fdborch] support mac update (#877)

    Signed-off-by: leo.li <leo.li@nephosinc.com>
    shine4chen authored and lguohan committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    9143018 View commit details
    Browse the repository at this point in the history
  2. [warm-reboot]: add bgp eoiu support to speed up route reconcile (#856)

    Three PRs for adding BGP eoiu support to speed up route reconciliation in fpmsyncd
    
    sonic-buildimage: sonic-net/sonic-buildimage#2823
    sonic-swss-common: sonic-net/sonic-swss-common#273
    sonic-swss: #856
    
    Why I did it
    
    Similar to restore_neigbors.py for neigborsyncd, start a bgp_eoiu_mark.py for bgp docker.
    
    The script check bgp neighbor state via cli interface periodically (every 1 second)
    It looks for explicit EOR and implicit EOR (keep alive after established) in the json output of show ip bgp neighbors A.B.C.D json
    
    Once the script has collected all needed EORs, it set a EOIU flag in stateDB.
    
    fpmsyncd could hold a few seconds (3 seconds) after getting the flag before starting routing reconciliation.
    
    For any reason the script failed to set EOIU flag in stateDB, the current warm_restart bgp_timer will kick in later.
    
    This approach may have a few more seconds delay compared with the FRR embedded EOIU solution, but simple and less risk.
    
    Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
    jipanyang authored and lguohan committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    ee2b1e5 View commit details
    Browse the repository at this point in the history
  3. [vstest]: Add the CRM tests (#1013)

    add some CRM pytest test cases, the list is shown below for CRM test.
    
    1.Test the mechanism for CRM threshold displaying SWSS_LOG_WARN by syslog checking.
    2.Add CRM Acl Group test case.
    3.Add the configuration tests of threshold and polling interval.
    
    From: iris_hsu@edge-core.com
    lguohan authored Aug 1, 2019
    Configuration menu
    Copy the full SHA
    4580fa7 View commit details
    Browse the repository at this point in the history
  4. [vlan] Add pytest cases to verify data in app db and state db. (#895)

    Check app db and state db after create vlan. => succeed
    Check app db and state db after add vlan member. => succeed
    
    Signed-off-by: Emma Lin <emma_lin@edge-core.com>
    linemma authored and lguohan committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    0da2f4c View commit details
    Browse the repository at this point in the history
  5. [vstests]: change 'test_acl_egress_table.py' to UNIX format (#1010)

    Signed-off-by: wangshengjun <wangshengjun@asterfusion.com>
    wangshengjun authored and lguohan committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    596aac6 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2019

  1. [vstest]: Add test_port_config.py which include breakout port test. (#…

    …866)
    
    * Signed-off-by: chiourung_huang <chiourung_huang@edge-core.com>
    chiourung authored and lguohan committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    6301abe View commit details
    Browse the repository at this point in the history
  2. [VLAN] Add pytest cases to validate different use-case of tagging_mod…

    …e. (#860)
    
    * [VLAN] Add pytest cases to validate different use-case of tagging_mode.
    
    Signed-off-by: Emma Lin <emma_lin@edge-core.com>
    linemma authored and lguohan committed Aug 2, 2019
    Configuration menu
    Copy the full SHA
    51393a2 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2019

  1. Provide broadcast IP while configuring interface ip address (#1007)

    Problem: When SONiC CLI command is used to display summary of interface(s), broadcast address is always 0.0.0.0 irrespective of prefix length
    
    Solution: When interface ip address is added using the command "ip addr add ...", we can specify the broadcast address as well. I did NOT set broadcast addr for interface with point-to-point link addresses(/31, and /127)
    
    Signed-off-by: Vasant Patil vapatil@linkedin.com
    vasant17 authored and lguohan committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    8fcf43d View commit details
    Browse the repository at this point in the history
  2. [orchagent] Add support for Innovium platform (#1005)

    Signed-off-by: Tony Titus ttitus@innovium.com
    tonytitus authored and lguohan committed Aug 3, 2019
    Configuration menu
    Copy the full SHA
    34b582c View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2019

  1. Configuration menu
    Copy the full SHA
    264e548 View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2019

  1. [aclorch]: Add MIRRORv6 support for NPS platform (#1018)

    Signed-off-by: Jared.Liu <Jared.Liu@nephosinc.com>
    JaredLius authored and stcheng committed Aug 7, 2019
    Configuration menu
    Copy the full SHA
    273608c View commit details
    Browse the repository at this point in the history
  2. [policerorch]: Add the capability to update policer rate/size (#1017)

    Monitor the changes in the configuration databaes and update
    the corresponding rate/size for the policers
    
    Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
    stcheng authored Aug 7, 2019
    Configuration menu
    Copy the full SHA
    a882f75 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2019

  1. [vlan] Add pytest cases to validate the behavior about add LAG member…

    … to vlan. (#875)
    
    * [vlan] Add pytest cases to validate the behavior about add LAG member to
    vlan.
    
    Signed-off-by: Emma Lin <emma_lin@edge-core.com>
    linemma authored and lguohan committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    bb0bcf8 View commit details
    Browse the repository at this point in the history
  2. [vnet]: Enable "vnet_orch_1" VS test case (#1020)

    Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
    Volodymyr Samotiy authored and liat-grozovik committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    fcddc0f View commit details
    Browse the repository at this point in the history
  3. [portsyncd]: Fix portsyncd restart case (#1019)

    I noticed that after swss restart in VS orchagent does not receive
    PortInitDone. I looked at the comment about "g_portSet" says that:
    
     When this LinkSync class is
     * initialized, we check the database to see if some of the ports' host
     * interfaces are already created and remove them from this set.
    However g_portSet was filled after LinkSync is initialized, so I
    considered this is a bug causing orchagent does not receive PortInitDone
    when portsyncd starts after host interfaces were created.
    
    Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
    stepanblyschak authored and stcheng committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    2902ba0 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2019

  1. Add scope attribute to VNET table. (#954)

    * Add a global scope to VNet to consider default VRF
    
    * Add VS test to validate default scope changes
    prsunny authored Aug 9, 2019
    Configuration menu
    Copy the full SHA
    252e12c View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2019

  1. [Orchagent]: Fixbug segmentfault at routeorch (#1025)

    The log statement will cause segmentfault if `observerEntry->second.routeTable` is empty.
    
    Signed-off-by: Ze Gan <ganze718@gmail.com>
    Pterosaur authored and lguohan committed Aug 16, 2019
    Configuration menu
    Copy the full SHA
    b611808 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65cbd55 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2019

  1. [test]: Adjust stale timer for warm-reboot neighborsync test cases (#…

    …1031)
    
    Increase the stale timer to "600" seconds so it won't be aged
    out in case the test server is busy or slow
    
    Signed-off-by: Zhenggen Xu <zxu@linkedin.com>
    zhenggen-xu authored and stcheng committed Aug 19, 2019
    Configuration menu
    Copy the full SHA
    5ae4226 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2019

  1. [vnet]: Fix FDB related failure in "vnet_bitmap" virtual switch test (#…

    …1034)
    
    Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
    Volodymyr Samotiy authored and prsunny committed Aug 20, 2019
    Configuration menu
    Copy the full SHA
    dc81a21 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2019

  1. [portsyncd]: Add default catch block in portsyncd (#1033)

    * Add default catch block in portsyncd
    * Updated error message with the right spelling
    * Update try block to throw exception of type runtime_error
    * Remove additional paranthesis in throw statement
    SuvarnaMeenakshi authored and stcheng committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    34915de View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2019

  1. [copporch]: Fix the typo - mld_v1_done (#1037)

    Signed-off-by: wangshengjun <wangshengjun@asterfusion.com>
    wangshengjun authored and stcheng committed Aug 26, 2019
    Configuration menu
    Copy the full SHA
    c461911 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2019

  1. [aclorch]: Revise ACL rule creation/removal logs (#1042)

    Adding the table name in the log when creating/removing
    the ACL rules.
    
    Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
    stcheng authored and lguohan committed Aug 30, 2019
    Configuration menu
    Copy the full SHA
    39fe568 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2019

  1. Add dot1p to tc mapping support (#871)

    Signed-off-by: Wenda Ni <wenni@microsoft.com>
    wendani authored and lguohan committed Sep 6, 2019
    Configuration menu
    Copy the full SHA
    5841e06 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2019

  1. Warmboot Vlan neigh restore fix (#1040)

    * Send arp request after first Vlan member port is added
    
    * Add wait logic after Vlan member add, nbrmgr to wait for restore complete
    
    * Address comment to pass db as a parameter and open only once
    prsunny authored Sep 9, 2019
    Configuration menu
    Copy the full SHA
    313ef5c View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2019

  1. [aclorch]: Egress mirror action support and action ASIC support check (

    …#963)
    
    
    * Add support for egress mirror action
    
    * Move redirect out from PACKET_ACTION to
    its own REDIRECT_ACTION key preserving
    backwards compatibility with old schema
    to be aligned with SAI data types
    
    * Query ACL action list supported by ASIC
    per stage and put this information in
    STATE DB SWITCH_CAPABILITY table
    
    * perform secondary query for ACL action
    attributes which parameters are enum values
    
    * implement VS test cases
    
    Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
    stepanblyschak authored and stcheng committed Sep 16, 2019
    Configuration menu
    Copy the full SHA
    d98d1e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3fb22e1 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2019

  1. Configuration menu
    Copy the full SHA
    da514f5 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2019

  1. change in fpmsyncd to skip the lookup for the Master device name if t…

    …he route object table value is zero (#1048)
    
    * change in fpmsyncd to  skip the lookup for the Master device name
    if the route object table value is zero
    .i.e. the route needs to put in the global routing table
    Arvind-Brcm authored and prsunny committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    4d8e08d View commit details
    Browse the repository at this point in the history
  2. Cannot ping to link-local ipv6 interface address of the switch. (#774)

    * Cannot ping to link-local ipv6 interface address of the switch.
    
    Fixes:
           1. Packets destined to the switch's routing interface link-local ipv6 address
           are not coming to CPU. Hence the ping fails.
           Since all interfaces have the same link-local ipv6 address, all we need is
           a single ip2me /128 route corresponding to this address added in the hardware.
           We don't need fe80 ip2me route added to hardware for every interface. Hence the
           address overlap issue won't arise for the link-local interface address.
    
           2. Fixed another issue as part of this PR.
           Where the link-local ipv6 neighbors are not learned via netlink by neighsync.
           As a result, we could not add an ipv6 route via link-local nexthop.
           Allow neighsync to learn the link-local neighbors too.
    
    Signed-off-by: kiran.kella@broadcom.com
    
    * Incremental change to the code changes.
    
    * Incremental change to the code changes.
    
    * Incorporated review comments.
    
    * Incorporated review comments.
    
    * Add fe80::/10 route to CPU to forward all locally destined link-local ipv6 packets to CPU.
    
    * Retain fe80.../128 ip2me route in the hardware along with fe80::/10 subnet route.
    
    Signed-off-by: Kiran Kella <kiran.kella@broadcom.com>
    kirankella authored and yxieca committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    12c29b4 View commit details
    Browse the repository at this point in the history
  3. [aclorch]: Fix table name in counter table for mirror rules (#1060)

    In ACL combined mode, v4 and v6 rules are sharing the same
    physical table while having separated configuration tables.
    The daemon needs to use the configuration table name to store
    the counter information.
    
    Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
    stcheng authored and yxieca committed Sep 19, 2019
    Configuration menu
    Copy the full SHA
    543bd98 View commit details
    Browse the repository at this point in the history
  4. Adopt to signature change of Selectable::readData, which switched (#1061

    )
    
    return type from void to uint64_t.
    renukamanavalan authored Sep 19, 2019
    Configuration menu
    Copy the full SHA
    0ddaba3 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2019

  1. Configuration menu
    Copy the full SHA
    a5b6e7c View commit details
    Browse the repository at this point in the history
  2. [MirrorOrch]: Mirror Session Retention across Warm Reboot (#1054)

    * [MirrorOrch]: Mirror Session Retention across Warm Reboot
    
    After warm reboot, it is expected that the monitor port of
    the mirror session is retained - no changing on the monitor
    port withint the ECMP group members and the LAG members. This
    is due to the general of the sairedis comparison logic and
    the minimalization of SAI function calls during reconciliation.
    
    Changes:
    1. Add bake() and postBake() functions in MirrorOrch
       bake() function retrieves the state database information
       and get the VLAN + monitor port information.
       postBake() function leverages the information and recovers
       the active mirror sessions the same as before warm reboot.
    2. state database format change
       Instead of storing the object ID of the monitor port, store
       the alias of the monitor port.
       Instead of storing true/false of VLAN header, store the VLAN
       ID.
    
    Update: Freeze doTask() function instead of update() function
    
    With this update, we could fix potential orchagent issues before
    the warm reboot when the monitor port was wrongly calculated.
    
    Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
    stcheng authored Sep 20, 2019
    Configuration menu
    Copy the full SHA
    d823dd1 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2019

  1. [mirrororch]: Remove mirror session state after it is remvoed (#1066)

    Remove deprecated mirror session states in the state database
    
    Signed-off-by: Shu0t1an Cheng <shuche@microsoft.com>
    stcheng authored Sep 26, 2019
    Configuration menu
    Copy the full SHA
    182940d View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2019

  1. Update ECMP NHopGroup for Port Channel oper down (#1030)

    * Remove nexthop member from nexthopgroup
    on detecting portchannel down
    
    * Code cleanup
    
    * Fix spacing errors
    
    * Create new Test
    1. Add 4 PortChannels
    2. Add to nexthop group
    
    * Check for 3 NH group members
    after bringing down a portchannel
    sumukhatv authored Sep 30, 2019
    Configuration menu
    Copy the full SHA
    175f3de View commit details
    Browse the repository at this point in the history