[swss]: Generate config files for Everflow and IPinIP from minigraph#507
[swss]: Generate config files for Everflow and IPinIP from minigraph#507taoyl-ms merged 8 commits intosonic-net:masterfrom oleksandrivantsiv:master
Conversation
oleksandrivantsiv
commented
Apr 14, 2017
- Add Everflow DST IP to minigraph file
- Extend minigraph.py to support Everflow
- Add templates file for Everflow and IPinIP configuration
- Add config.sh for swss docker to generate config files
- Add Everflow DST IP to minigraph file - Extend minigraph.py to support Everflow - Add templates file for Everflow and IPinIP configuration - Add config.sh for swss docker to generate config files
|
Tests for template files will be added on Monday in separated commit or PR |
|
|
||
| ENTRYPOINT ["/bin/bash"] | ||
| CMD ["/usr/bin/start.sh"] | ||
| ENTRYPOINT ["/bin/bash", "-c"] |
There was a problem hiding this comment.
@marian-pritsak has a PR #441 that merges config.sh and start.sh back into a single file. I don't exactly know his reason, but I'll suggest you sync with him to see if he has any concern on using two scripts instead of one.
|
Will merge this after we verified it on other platforms. |
|
|
||
| mkdir -p /etc/swss/config.d/ | ||
|
|
||
| sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/ipinip.json.j2 > /etc/swss/config.d/ipinip.json |
There was a problem hiding this comment.
I think we need to support the case that ErspanDestinationIpv4 is not defined in minigraph as well. Current implementation will generate an illegal json therefore crashes docker-orchagent.
|
Hi marian, can you separate this into two PR, one for IP-in-IP and one for everflow. We are validating them separately. |
sihuihan88
left a comment
There was a problem hiding this comment.
Could you separate the everflow and ipinip into separate PRs? We could merge the IpInIp part first after the change.
| "tunnel_type":"IPINIP", | ||
| "src_ip":"{{ minigraph_lo_interfaces[0]['addr'] }}", | ||
| "dst_ip":"{{ minigraph_lo_interfaces[0]['addr'] }}", | ||
| "dscp_mode":"uniform", |
There was a problem hiding this comment.
Could you change the dscp_mode to pipe? And validate whether it will work on mlnx platform as well if possible?
There was a problem hiding this comment.
pipe currently is not supported on Mellanox platforms. Will left it "uniform" for Mellanox platform and pipe for other
There was a problem hiding this comment.
yes, please change broadcom platform to pipe mode. use the asic_type.
|
I can't simply separate ipinip and everflow. Both depends on the same file (start.sh, config.sh). I can remove everflow from this PR. Do you have any problems with it? I don't understand how it affects ipinip validation. |
|
There is a bug in SWSS now which causes creating mirror session crashes on BRCM platform. Therefore we are blocked from merging this PR. That was the reason why Guohan and Sihui suggested to split ipinip and mirroring as we'll be able to merge ipinip first then. Anyway, as we already located the bug today, I think I can try to fix the bug in mirroring asap and we can merge this PR after that. |
|
Will merge this PR now. Will submit another PR to use asic_type instead of minigraph_hwsku. |
|
See #527. |
Submodule src/sonic-utilities 6aee909..79a0185: > [fast/warm reboot] add some sanity check before warm reboot (sonic-net#510) > In sync with our latest change, where we default failthrough to be False. (sonic-net#507) > [generate_dump] system dump improvements (sonic-net#503) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Submodule src/sonic-utilities 6ee0aea..b531934: > [db migrator] Introduce the DB migration infrastructure (sonic-net#519) > Skip INTERFACE entries w/o prefix (sonic-net#477) > Bring queue storm status to 'pfcwd show stats' (sonic-net#500) > Align PSU DB count field with the schema Spec. (sonic-net#509) > [scripts] remove duplicate script copying for nbrshow (sonic-net#517) > If fast-reboot-dump gives an error, don't continue with fast-reboot (sonic-net#515) > load_minigraph: restart hostcfgd (sonic-net#511) > [fast/warm reboot] add some sanity check before warm reboot (sonic-net#510) > show BPS, PPS, UTIL rates w/o previous clear (sonic-net#508) > In sync with our latest change, where we default failthrough to be False. (sonic-net#507) > Add warm-boot feature processing for wedge100bf_32x/65x platforms (sonic-net#485) > [generate_dump] system dump improvements (sonic-net#503) > [neighbor advertiser] convert int to string before concatenating (sonic-net#505) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Submodule src/sonic-utilities 6ee0aea..b531934: > [db migrator] Introduce the DB migration infrastructure (#519) > Skip INTERFACE entries w/o prefix (#477) > Bring queue storm status to 'pfcwd show stats' (#500) > Align PSU DB count field with the schema Spec. (#509) > [scripts] remove duplicate script copying for nbrshow (#517) > If fast-reboot-dump gives an error, don't continue with fast-reboot (#515) > load_minigraph: restart hostcfgd (#511) > [fast/warm reboot] add some sanity check before warm reboot (#510) > show BPS, PPS, UTIL rates w/o previous clear (#508) > In sync with our latest change, where we default failthrough to be False. (#507) > Add warm-boot feature processing for wedge100bf_32x/65x platforms (#485) > [generate_dump] system dump improvements (#503) > [neighbor advertiser] convert int to string before concatenating (#505) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
Submodule src/sonic-utilities 6ee0aea..b531934: > [db migrator] Introduce the DB migration infrastructure (sonic-net#519) > Skip INTERFACE entries w/o prefix (sonic-net#477) > Bring queue storm status to 'pfcwd show stats' (sonic-net#500) > Align PSU DB count field with the schema Spec. (sonic-net#509) > [scripts] remove duplicate script copying for nbrshow (sonic-net#517) > If fast-reboot-dump gives an error, don't continue with fast-reboot (sonic-net#515) > load_minigraph: restart hostcfgd (sonic-net#511) > [fast/warm reboot] add some sanity check before warm reboot (sonic-net#510) > show BPS, PPS, UTIL rates w/o previous clear (sonic-net#508) > In sync with our latest change, where we default failthrough to be False. (sonic-net#507) > Add warm-boot feature processing for wedge100bf_32x/65x platforms (sonic-net#485) > [generate_dump] system dump improvements (sonic-net#503) > [neighbor advertiser] convert int to string before concatenating (sonic-net#505) Signed-off-by: Ying Xie <ying.xie@microsoft.com>
…lse. (sonic-net#507) Reference: Pull request sonic-net#2746
Signed-off-by: Guohan Lu <gulv@microsoft.com>
What I did: Changes to increase poll interval 10sec for port counter on supervisor. Reducing poll interval decreases cpu load as on packet chassis we can have 600+ ethernet backplane ports. For voq chaassis it is no-op as their is no ethernet port How I verify: Manual Verification of syncd cpu usage goes down. Counter working fine.
…lly (#24623) #### Why I did it src/sonic-gnmi ``` * 5a62935 - (HEAD -> master, origin/master, origin/HEAD) gNOI: Add gNMI Server changes for Healthz Acknowledge RPC (#509) (25 hours ago) [jayaragini-hcl] * ca045ea - Add support for ACL counter (#540) (2 days ago) [Feng-msft] * 4a5afd4 - gNOI: Add support for Healthz List and Check RPC (#487) (2 days ago) [jayaragini-hcl] * 08f7266 - gNOI: Add gNMI Server changes for Healthz Get RPC (#507) (2 days ago) [jayaragini-hcl] ``` #### How I did it #### How to verify it #### Description for the changelog
…lly (sonic-net#24623) #### Why I did it src/sonic-gnmi ``` * 5a62935 - (HEAD -> master, origin/master, origin/HEAD) gNOI: Add gNMI Server changes for Healthz Acknowledge RPC (sonic-net#509) (25 hours ago) [jayaragini-hcl] * ca045ea - Add support for ACL counter (sonic-net#540) (2 days ago) [Feng-msft] * 4a5afd4 - gNOI: Add support for Healthz List and Check RPC (sonic-net#487) (2 days ago) [jayaragini-hcl] * 08f7266 - gNOI: Add gNMI Server changes for Healthz Get RPC (sonic-net#507) (2 days ago) [jayaragini-hcl] ``` #### How I did it #### How to verify it #### Description for the changelog
…lly (sonic-net#24623) #### Why I did it src/sonic-gnmi ``` * 5a62935 - (HEAD -> master, origin/master, origin/HEAD) gNOI: Add gNMI Server changes for Healthz Acknowledge RPC (sonic-net#509) (25 hours ago) [jayaragini-hcl] * ca045ea - Add support for ACL counter (sonic-net#540) (2 days ago) [Feng-msft] * 4a5afd4 - gNOI: Add support for Healthz List and Check RPC (sonic-net#487) (2 days ago) [jayaragini-hcl] * 08f7266 - gNOI: Add gNMI Server changes for Healthz Get RPC (sonic-net#507) (2 days ago) [jayaragini-hcl] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: Navdha Jindal <navdhajindal@microsoft.com>
…lly (sonic-net#24623) #### Why I did it src/sonic-gnmi ``` * 5a62935 - (HEAD -> master, origin/master, origin/HEAD) gNOI: Add gNMI Server changes for Healthz Acknowledge RPC (sonic-net#509) (25 hours ago) [jayaragini-hcl] * ca045ea - Add support for ACL counter (sonic-net#540) (2 days ago) [Feng-msft] * 4a5afd4 - gNOI: Add support for Healthz List and Check RPC (sonic-net#487) (2 days ago) [jayaragini-hcl] * 08f7266 - gNOI: Add gNMI Server changes for Healthz Get RPC (sonic-net#507) (2 days ago) [jayaragini-hcl] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: Feng Pan <fenpan@microsoft.com>
…lly (sonic-net#24623) #### Why I did it src/sonic-gnmi ``` * 5a62935 - (HEAD -> master, origin/master, origin/HEAD) gNOI: Add gNMI Server changes for Healthz Acknowledge RPC (sonic-net#509) (25 hours ago) [jayaragini-hcl] * ca045ea - Add support for ACL counter (sonic-net#540) (2 days ago) [Feng-msft] * 4a5afd4 - gNOI: Add support for Healthz List and Check RPC (sonic-net#487) (2 days ago) [jayaragini-hcl] * 08f7266 - gNOI: Add gNMI Server changes for Healthz Get RPC (sonic-net#507) (2 days ago) [jayaragini-hcl] ``` #### How I did it #### How to verify it #### Description for the changelog Signed-off-by: xiaweijiang <xiaweijiang@microsoft.com>