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

[TSA]: Add community to the loopback prefix, when isolated #3708

Merged

Conversation

pavel-shirshov
Copy link
Contributor

- What I did

  1. Refactored constants of the image.
  2. Refactored TS[AB] config applications
  3. Added community to the loopback prefix in isolated mode

- How I did it

  1. Extended yaml file with deployment_id. Added community string, rename it to constants
  2. Use vtysh -f functionality instead of vtysh -c

- How to verify it
Build an image run on your dut

- Description for the changelog

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

@pavel-shirshov pavel-shirshov marked this pull request as ready for review November 5, 2019 18:27
@pavel-shirshov pavel-shirshov self-assigned this Nov 5, 2019
@pavel-shirshov pavel-shirshov merged commit d5af096 into sonic-net:master Nov 7, 2019
@pavel-shirshov pavel-shirshov deleted the pavelsh/add_constants branch November 7, 2019 00:07
@@ -235,7 +235,7 @@ sudo bash -c "echo '{ \"DEVICE_METADATA\": { \"localhost\": { \"default_bgp_stat
sudo cp $IMAGE_CONFIGS/snmp/snmp.yml $FILESYSTEM_ROOT/etc/sonic/

# Copy ASN configuration files
sudo cp $IMAGE_CONFIGS/asn/deployment_id_asn_map.yml $FILESYSTEM_ROOT/etc/sonic/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pavel-shirshov
I think this change breaks bgp_speaker TCs.

TASK [test : fetch bgp speaker asn number from DUT] ****************************
Monday 11 November 2019  12:07:39 +0000 (0:00:00.110)       0:00:12.550 ******* 
�[0;31mfatal: [cab18-2-dut]: FAILED! => {"changed": true, "cmd": "sonic-cfggen -m -d -y /etc/sonic/deployment_id_asn_map.yml -v \"deployment_id_asn_map[DEVICE_METADATA['localhost']['deployment_id']]\"", "delta": "0:00:00.166444", "end": "2019-11-11 12:07:39.972509", "failed": true, "rc": 1, "start": "2019-11-11 12:07:39.806065", "stderr": "Traceback (most recent call last):\n  File \"/usr/local/bin/sonic-cfggen\", line 318, in <module>\n    main()\n  File \"/usr/local/bin/sonic-cfggen\", line 250, in main\n    with open(yaml_file, 'r') as stream:\nIOError: [Errno 2] No such file or directory: '/etc/sonic/deployment_id_asn_map.yml'", "stdout": "", "stdout_lines": [], "warnings": []}�[0m

Could you please check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akokhan
Thank you for your report. Can you please check the fix? sonic-net/sonic-mgmt#1204 ?

zhenggen-xu pushed a commit to zhenggen-xu/sonic-buildimage that referenced this pull request Jan 10, 2020
…#3708)

* Rename asn/deployment_id_asn_map.yaml to constants/constants.yaml

* Fix bgp templates

* Add community for loopback when bgpd is isolated

* Use correct community value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants