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

[vs]: generate port table in config db for virtual switch #2169

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

lguohan
Copy link
Collaborator

@lguohan lguohan commented Oct 19, 2018

Signed-off-by: Guohan Lu gulv@microsoft.com

- What I did

- How I did it

- How to verify it

root@c32f9d2d6814:/# sonic-cfggen -d --var-json "PORT"
{
    "Ethernet8": {
        "alias": "fortyGigE0/8", 
        "lanes": "37,38,39,40"
    }, 
    "Ethernet0": {
        "alias": "fortyGigE0/0", 
        "lanes": "29,30,31,32"
    }, 
    "Ethernet4": {
        "alias": "fortyGigE0/4", 
        "lanes": "25,26,27,28"
    }, 
    "Ethernet108": {
        "alias": "fortyGigE0/108", 
        "lanes": "81,82,83,84"
    }, 
    "Ethernet100": {
        "alias": "fortyGigE0/100", 
        "lanes": "125,126,127,128"
    }, 
    "Ethernet104": {
        "alias": "fortyGigE0/104", 
        "lanes": "85,86,87,88"
    }, 
    "Ethernet96": {
        "alias": "fortyGigE0/96", 
        "lanes": "121,122,123,124"
    }, 
    "Ethernet124": {
        "alias": "fortyGigE0/124", 
        "lanes": "101,102,103,104"
    }, 
    "Ethernet92": {
        "alias": "fortyGigE0/92", 
        "lanes": "113,114,115,116"
    }, 
    "Ethernet120": {
        "alias": "fortyGigE0/120", 
        "lanes": "97,98,99,100"
    }, 
    "Ethernet52": {
        "alias": "fortyGigE0/52", 
        "lanes": "53,54,55,56"
    }, 
    "Ethernet56": {
        "alias": "fortyGigE0/56", 
        "lanes": "61,62,63,64"
    }, 
    "Ethernet76": {
        "alias": "fortyGigE0/76", 
        "lanes": "73,74,75,76"
    }, 
    "Ethernet72": {
        "alias": "fortyGigE0/72", 
        "lanes": "77,78,79,80"
    }, 
    "Ethernet64": {
        "alias": "fortyGigE0/64", 
        "lanes": "65,66,67,68"
    }, 
    "Ethernet32": {
        "alias": "fortyGigE0/32", 
        "lanes": "9,10,11,12"
    }, 
    "Ethernet16": {
        "alias": "fortyGigE0/16", 
        "lanes": "41,42,43,44"
    }, 
    "Ethernet36": {
        "alias": "fortyGigE0/36", 
        "lanes": "13,14,15,16"
    }, 
    "Ethernet12": {
        "alias": "fortyGigE0/12", 
        "lanes": "33,34,35,36"
    }, 
    "Ethernet88": {
        "alias": "fortyGigE0/88", 
        "lanes": "117,118,119,120"
    }, 
    "Ethernet24": {
        "alias": "fortyGigE0/24", 
        "lanes": "5,6,7,8"
    }, 
    "Ethernet116": {
        "alias": "fortyGigE0/116", 
        "lanes": "93,94,95,96"
    }, 
    "Ethernet80": {
        "alias": "fortyGigE0/80", 
        "lanes": "105,106,107,108"
    }, 
    "Ethernet112": {
        "alias": "fortyGigE0/112", 
        "lanes": "89,90,91,92"
    }, 
    "Ethernet84": {
        "alias": "fortyGigE0/84", 
        "lanes": "109,110,111,112"
    }, 
    "Ethernet48": {
        "alias": "fortyGigE0/48", 
        "lanes": "49,50,51,52"
    }, 
    "Ethernet44": {
        "alias": "fortyGigE0/44", 
        "lanes": "17,18,19,20"
    }, 
    "Ethernet40": {
        "alias": "fortyGigE0/40", 
        "lanes": "21,22,23,24"
    }, 
    "Ethernet28": {
        "alias": "fortyGigE0/28", 
        "lanes": "1,2,3,4"
    }, 
    "Ethernet60": {
        "alias": "fortyGigE0/60", 
        "lanes": "57,58,59,60"
    }, 
    "Ethernet20": {
        "alias": "fortyGigE0/20", 
        "lanes": "45,46,47,48"
    }, 
    "Ethernet68": {
        "alias": "fortyGigE0/68", 
        "lanes": "69,70,71,72"
    }
}

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Guohan Lu <gulv@microsoft.com>
@lguohan lguohan merged commit 890baed into sonic-net:master Oct 19, 2018
judyjoseph added a commit that referenced this pull request Apr 4, 2022
5bb99c7 Validate LAG has members before mirror session create (#2130)
ec6c8af [vxlan] Remove tunnel map objects on VNET tunnel removal (#2150)
7e7db19 [BFD]Registering BFD state change callback during session creation (#2202)
618fe07 [VNET]Fixing nexthop group delete during route change (#2198)
91b66df [portsorch]: Prevent LAG member configuration when port has active ACL binding (#2165)
29de9d0 Remove redundant and problematic code to skip "pool" field in buffer profile handling (#2197)
ded0b45 [PBH] Implement Edit Flows (#2169)
2ee0f49 [neighsyncd] increase neighsyncd timeout (#2209)
a0160c0 [QosOrch] The notifications cannot be drained in QosOrch in case the first one needs to retry (#2206)
saiarcot895 added a commit to saiarcot895/sonic-buildimage that referenced this pull request Apr 5, 2022
This submodule update brings in the following changes:

```
50d5be2 Make changes to support compiling on Bullseye with GCC 10 (sonic-net#2216)
0870cf5 [mirrororch]: Implement HW resources availability validation for SPAN/ERSPAN (sonic-net#2187)
f4ec565 [vlanmgrd] fix use-after-free memory issue (sonic-net#2211)
c2de7fc [QosOrch] The notifications cannot be drained in QosOrch in case the first one needs to retry (sonic-net#2206)
5575935 [neighsyncd] increase neighsyncd timeout (sonic-net#2209)
0f06910 [PBH] Implement Edit Flows (sonic-net#2169)
6241bbf Remove redundant and problematic code to skip "pool" field in buffer profile handling (sonic-net#2197)
a55343c [azp]: Set diff coverage threshhold to 80% (sonic-net#2188)
390cae1 [portsorch]: Prevent LAG member configuration when port has active ACL binding (sonic-net#2165)
c1d47e6 [VNET]Fixing nexthop group delete during route change (sonic-net#2198)
8941cc0 [BFD]Registering BFD state change callback during session creation (sonic-net#2202)
680c539 [vxlan] Remove tunnel map objects on VNET tunnel removal (sonic-net#2150)
20dde0c Fix for handling broadcom DNX ASIC to have ipv4 and ipv6 ACL rules in separate tables. (sonic-net#2178)
5b7c949 [FdbOrch] SAI_FDB_EVENT_MOVE generates update with empty update.entry.port_name (sonic-net#2200)
7350d49 [Vxlanmgr] vnet netdev cleanup during config reload fix (sonic-net#2191)
2bef62b Validate LAG has members before mirror session create (sonic-net#2130)
1e4d4ce [VS test] Increase VS test time, skip dpb flaky test (sonic-net#2195)
6eda965 [vstest]Migrating vs tests from using click commands to direct DB access (sonic-net#2179)
```

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
theasianpianist added a commit to theasianpianist/sonic-buildimage that referenced this pull request Apr 6, 2022
50d5be2 (HEAD, origin/master, origin/HEAD) Make changes to support compiling on Bullseye with GCC 10 (sonic-net#2216)
0870cf5 [mirrororch]: Implement HW resources availability validation for SPAN/ERSPAN (sonic-net#2187)
f4ec565 [vlanmgrd] fix use-after-free memory issue (sonic-net#2211)
c2de7fc [QosOrch] The notifications cannot be drained in QosOrch in case the first one needs to retry (sonic-net#2206)
5575935 [neighsyncd] increase neighsyncd timeout (sonic-net#2209)
0f06910 (master) [PBH] Implement Edit Flows (sonic-net#2169)
6241bbf Remove redundant and problematic code to skip "pool" field in buffer profile handling (sonic-net#2197)
a55343c [azp]: Set diff coverage threshhold to 80% (sonic-net#2188)
390cae1 [portsorch]: Prevent LAG member configuration when port has active ACL binding (sonic-net#2165)
c1d47e6 [VNET]Fixing nexthop group delete during route change (sonic-net#2198)
8941cc0 [BFD]Registering BFD state change callback during session creation (sonic-net#2202)
680c539 [vxlan] Remove tunnel map objects on VNET tunnel removal (sonic-net#2150)
20dde0c Fix for handling broadcom DNX ASIC to have ipv4 and ipv6 ACL rules in separate tables. (sonic-net#2178)
5b7c949 [FdbOrch] SAI_FDB_EVENT_MOVE generates update with empty update.entry.port_name (sonic-net#2200)
7350d49 [Vxlanmgr] vnet netdev cleanup during config reload fix (sonic-net#2191)
2bef62b Validate LAG has members before mirror session create (sonic-net#2130)
1e4d4ce [VS test] Increase VS test time, skip dpb flaky test (sonic-net#2195)
6eda965 [vstest]Migrating vs tests from using click commands to direct DB access (sonic-net#2179)

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
liat-grozovik pushed a commit that referenced this pull request Apr 7, 2022
In order to include the following commit:
0f06910 [PBH] Implement Edit Flows (sonic-net/sonic-swss#2169)

sonic-swss

50d5be2 Make changes to support compiling on Bullseye with GCC 10 (#2216)
0870cf5 [mirrororch]: Implement HW resources availability validation for SPAN/ERSPAN (#2187)
f4ec565 [vlanmgrd] fix use-after-free memory issue (#2211)
c2de7fc [QosOrch] The notifications cannot be drained in QosOrch in case the first one needs to retry (#2206)
5575935 [neighsyncd] increase neighsyncd timeout (#2209)
0f06910 [PBH] Implement Edit Flows (#2169)
6241bbf Remove redundant and problematic code to skip "pool" field in buffer profile handling (#2197)
a55343c [azp]: Set diff coverage threshhold to 80% (#2188)
390cae1 [portsorch]: Prevent LAG member configuration when port has active ACL binding (#2165)
c1d47e6 [VNET]Fixing nexthop group delete during route change (#2198)
8941cc0 [BFD]Registering BFD state change callback during session creation (#2202)
680c539 [vxlan] Remove tunnel map objects on VNET tunnel removal (#2150)
20dde0c Fix for handling broadcom DNX ASIC to have ipv4 and ipv6 ACL rules in separate tables. (#2178)
5b7c949 [FdbOrch] SAI_FDB_EVENT_MOVE generates update with empty update.entry.port_name (#2200)
7350d49 [Vxlanmgr] vnet netdev cleanup during config reload fix (#2191)
2bef62b Validate LAG has members before mirror session create (#2130)
1e4d4ce [VS test] Increase VS test time, skip dpb flaky test (#2195)
6eda965 [vstest]Migrating vs tests from using click commands to direct DB access (#2179)

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
Ndancejic pushed a commit to Ndancejic/sonic-buildimage that referenced this pull request May 3, 2022
PBH Edit Flows is a second phase of PBH feature implementation. It allows user to modify the already existing objects.
PBH Edit Flows offer a full entity update which assumes Config DB field ADD/UPDATE/REMOVE processing. PBH OA interprets series of Redis HSET/HDEL as SONiC SET operation and internally does the diff of existing/supplied configuration to deploy the new changes.

HLD: sonic-net/SONiC#909

- What I did
Implemented Edit Flows in scope of PBH enhancement

- Why I did it
Implementation is done according to the PBH HLD

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
liushilongbuaa pushed a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Jun 20, 2022
Related work items: #49, #58, #107, sonic-net#247, sonic-net#249, sonic-net#277, sonic-net#593, sonic-net#597, sonic-net#1035, sonic-net#2130, sonic-net#2150, sonic-net#2165, sonic-net#2169, sonic-net#2178, sonic-net#2179, sonic-net#2187, sonic-net#2188, sonic-net#2191, sonic-net#2195, sonic-net#2197, sonic-net#2198, sonic-net#2200, sonic-net#2202, sonic-net#2206, sonic-net#2209, sonic-net#2211, sonic-net#2216, sonic-net#7909, sonic-net#8927, sonic-net#9681, sonic-net#9733, sonic-net#9746, sonic-net#9850, sonic-net#9967, sonic-net#10104, sonic-net#10152, sonic-net#10168, sonic-net#10228, sonic-net#10266, sonic-net#10288, sonic-net#10294, sonic-net#10313, sonic-net#10394, sonic-net#10403, sonic-net#10404, sonic-net#10421, sonic-net#10431, sonic-net#10437, sonic-net#10445, sonic-net#10457, sonic-net#10458, sonic-net#10465, sonic-net#10467, sonic-net#10469, sonic-net#10470, sonic-net#10474, sonic-net#10477, sonic-net#10478, sonic-net#10482, sonic-net#10485, sonic-net#10488, sonic-net#10489, sonic-net#10492, sonic-net#10494, sonic-net#10498, sonic-net#10501, sonic-net#10509, sonic-net#10512, sonic-net#10514, sonic-net#10516, sonic-net#10517, sonic-net#10523, sonic-net#10525, sonic-net#10531, sonic-net#10532, sonic-net#10538, sonic-net#10555, sonic-net#10557, sonic-net#10559, sonic-net#10561, sonic-net#10565, sonic-net#10572, sonic-net#10574, sonic-net#10576, sonic-net#10578, sonic-net#10581, sonic-net#10585, sonic-net#10587, sonic-net#10599, sonic-net#10607, sonic-net#10611, sonic-net#10616, sonic-net#10618, sonic-net#10619, sonic-net#10623, sonic-net#10624, sonic-net#10633, sonic-net#10646, sonic-net#10655, sonic-net#10660, sonic-net#10664, sonic-net#10680, sonic-net#10683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants