-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[rc.local]: Copy saved minigraph if available. #533
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In case of sonic-to-sonic update old image stores minigraph under /host directory. Upon first boot this minigraph will be used by new image to save configuration. Signed-off-by: marian-pritsak <[email protected]>
stcheng
reviewed
Apr 24, 2017
files/image_config/platform/rc.local
Outdated
@@ -29,7 +29,11 @@ if [ -f /host/image-$sonic_version/platform/firsttime ]; then | |||
exit 0 | |||
fi | |||
|
|||
cp /usr/share/sonic/device/$platform/minigraph.xml /etc/sonic/ | |||
if [ -f /host/minigraph.xml ]; then | |||
mv /host/minigraph.xml /etc/sonic/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it will be better to add some comments here. In the future we could remove this logic when old image with /host/minigraph.xml is deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
lguohan
pushed a commit
that referenced
this pull request
Jul 17, 2019
* ee56d54 2019-07-16 | [fast-reboot] Stop services after killing containers to prevent automatic restart (#572) (HEAD -> master, origin/master, origin/HEAD) [Joe LeVeque] * c718cab 2019-07-17 | [acl_loader]: Fix show mirror_session error (#580) [JaredLius] * 2764c6c 2019-07-16 | [Mellanox] Improve the prompt of the Mellanox sdk sniffer command. (#546) [Stephen Sun] * 5a5b74d 2019-07-10 | Generate interface table to have an entry for default VRF (#525) [Prince Sunny] * c30e9ff 2019-07-10 | [show] Don't abort in InterfaceAliasConverter ctor if PORT table doesn't exist (#571) [Joe LeVeque] * 1aac696 2019-07-10 | [fast reboot] stop removing opennsl module before reboot (#560) [Ying Xie] * 37823d4 2019-07-09 | Modified CLI doc for 201904 release, changed the config interface command, etc., (#561) [kannankvs] * 77ae6b8 2019-07-03 | [PR template] Add reminder to update Command Line Reference Guide if modifying user-facing commands (#569) [Joe LeVeque] * dc52015 2019-06-25 | [Sonic-utilities]: Added commands to view acl and port running configs (#557) [Prem Prakash] * c7f45c3 2019-06-19 | [warm-reboot] Use retryCount option of orchagent_restart_check program (#555) [Jipan Yang] * c6a08f7 2019-06-17 | [scripts]: add support to db_migrator for non-default unix socket (#551) [Lawrence Lee] * 98e087f 2019-06-06 | [show]: Edit comment (#549) [Vasant Patil] * 5667a90 2019-06-06 | [intfutil] Fix error when <interface name> specified in show interface related commands (#548) [Gord Chen] * b7fcb1f 2019-06-04 | Add buffer pool watermark support in watermarkstat and counterpoll (#521) [Wenda Ni] * 635dc88 2019-06-03 | [config]: Add config acl add/remove table command (#541) [Shuotian Cheng] * dcdc922 2019-06-03 | [show]: Add show policer command (#540) [Shuotian Cheng] * 82ef3ec 2019-06-01 | IP Address validation check (#530) [Tapash Das] * 1f326ad 2019-05-31 | [show] Remove ability to clear counters from 'show' commands (#518) [Joe LeVeque] * 669d36d 2019-06-01 | Add SONIC CLI Manual (#533) [kannankvs] * 7657001 2019-06-01 | 'show vlan config' not displaying the VLAN members, after the clear config and reload with default l2 configuration. (#457) [RAMA CHANDRA REDDY GADDAM] * 9493883 2019-05-28 | use vlan members (#542) [trzhang-msft] * 128462a 2019-05-22 | [config]: Add --policer option for mirror session (#537) [Shuotian Cheng] * 38da7f3 2019-05-22 | [acl_loader]: Add policer attribute in show mirror_session command (#538) [Shuotian Cheng] * f95ff00 2019-05-22 | [acl_loader]: Do not apply default DENY rule for MIRRORV6 table (#522) [Shuotian Cheng] * 50b7256 2019-05-21 | [sonic_installer] If asked to install an image which is already installed, simply set as default (#534) [Joe LeVeque] * d823062 2019-05-20 | [201811] enable DB migrator code (#536) [Ying Xie] * 7f7f384 2019-05-10 | update scheme variable name (#531) [trzhang-msft] * c66315a 2019-05-10 | Config interface Loopback0 ip add/del is not working (#443) [Kiran Kumar Kella] * 430d4b8 2019-05-10 | decode-syseeprom : added new option to show the Product Name. (#496) [Olivier Singla]
Kalimuthu-Velappan
pushed a commit
to Kalimuthu-Velappan/sonic-buildimage
that referenced
this pull request
Sep 12, 2019
daall
added a commit
to daall/sonic-buildimage
that referenced
this pull request
Nov 22, 2019
- [syncd] Fix off-by-one error for attribute enum values query (sonic-net#536) - Add support for remove hostif when using tap device (sonic-net#533) Signed-off-by: Danny Allen <[email protected]>
daall
added a commit
that referenced
this pull request
Nov 22, 2019
- [syncd] Fix off-by-one error for attribute enum values query (#536) - Add support for remove hostif when using tap device (#533) Signed-off-by: Danny Allen <[email protected]>
zhenggen-xu
pushed a commit
to zhenggen-xu/sonic-buildimage
that referenced
this pull request
Jan 10, 2020
- [syncd] Fix off-by-one error for attribute enum values query (sonic-net#536) - Add support for remove hostif when using tap device (sonic-net#533) Signed-off-by: Danny Allen <[email protected]>
madhanmellanox
pushed a commit
to madhanmellanox/sonic-buildimage
that referenced
this pull request
Mar 23, 2020
dmytroxshevchuk
pushed a commit
to dmytroxshevchuk/sonic-buildimage
that referenced
this pull request
Aug 31, 2020
5 tasks
lguohan
pushed a commit
that referenced
this pull request
Nov 5, 2021
mssonicbld
added a commit
that referenced
this pull request
Oct 2, 2024
…D automatically (#20402) #### Why I did it src/sonic-platform-daemons ``` * 9598f6b - (HEAD -> 202405, origin/202405) Improve parsing of media-settings.json for non-CMIS and breakout ports (#533) (19 hours ago) [longhuan-cisco] ``` #### How I did it #### How to verify it #### Description for the changelog
mssonicbld
added a commit
that referenced
this pull request
Oct 2, 2024
…D automatically (#20403) #### Why I did it src/sonic-platform-daemons ``` * 604e454 - (HEAD -> master, origin/master, origin/HEAD) Improve parsing of media-settings.json for non-CMIS and breakout ports (#533) (22 hours ago) [longhuan-cisco] ``` #### How I did it #### How to verify it #### Description for the changelog
mssonicbld
added a commit
that referenced
this pull request
Oct 4, 2024
…D automatically (#20416) #### Why I did it src/sonic-platform-daemons ``` * 10ef649 - (HEAD -> 202311, origin/202311) Improve parsing of media-settings.json for non-CMIS and breakout ports (#533) (#545) (9 hours ago) [longhuan-cisco] ``` #### How I did it #### How to verify it #### Description for the changelog
saksarav-nokia
pushed a commit
to saksarav-nokia/sonic-buildimage
that referenced
this pull request
Oct 9, 2024
…D automatically (sonic-net#20403) #### Why I did it src/sonic-platform-daemons ``` * 604e454 - (HEAD -> master, origin/master, origin/HEAD) Improve parsing of media-settings.json for non-CMIS and breakout ports (sonic-net#533) (22 hours ago) [longhuan-cisco] ``` #### How I did it #### How to verify it #### Description for the changelog
sschlafman
pushed a commit
to sschlafman/sonic-buildimage
that referenced
this pull request
Oct 15, 2024
…D automatically (sonic-net#20403) #### Why I did it src/sonic-platform-daemons ``` * 604e454 - (HEAD -> master, origin/master, origin/HEAD) Improve parsing of media-settings.json for non-CMIS and breakout ports (sonic-net#533) (22 hours ago) [longhuan-cisco] ``` #### How I did it #### How to verify it #### Description for the changelog
aidan-gallagher
pushed a commit
to aidan-gallagher/sonic-buildimage
that referenced
this pull request
Nov 16, 2024
…D automatically (sonic-net#20403) #### Why I did it src/sonic-platform-daemons ``` * 604e454 - (HEAD -> master, origin/master, origin/HEAD) Improve parsing of media-settings.json for non-CMIS and breakout ports (sonic-net#533) (22 hours ago) [longhuan-cisco] ``` #### How I did it #### How to verify it #### Description for the changelog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In case of sonic-to-sonic update old image stores minigraph under /host
directory. Upon first boot this minigraph will be used by new image to
save configuration.
Signed-off-by: marian-pritsak [email protected]