Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[baseos] Avoid disconnecting mgmt when re-cfg interfaces #553

Merged
merged 2 commits into from
Jun 7, 2017

Conversation

taoyl-ms
Copy link
Contributor

@taoyl-ms taoyl-ms commented Apr 28, 2017

In the previous version of interfaces-config, we restarted network service after re-generate interfaces file based on minigraph. This might break ssh connection through mgmt port even though mgmt ip was not changed.

To address this, we are now calling ifdown/ifup on only interfaces other than eth0, and config eth0 address seperately.

NEW_MGMT_MASK=`sonic-cfggen -m /etc/sonic/minigraph.xml -v 'minigraph_mgmt_interface["mask"]'`

ifconfig eth0 $NEW_MGMT_IP netmask $NEW_MGMT_MASK

Copy link
Contributor

Choose a reason for hiding this comment

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

so we only have lo and eth0 at this moment?

@lguohan
Copy link
Collaborator

lguohan commented May 1, 2017

can you add description why we need to avoid disconnecting mgmt when re-cfg interfaces?

Copy link
Collaborator

@lguohan lguohan left a comment

Choose a reason for hiding this comment

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

need to elaborated description for why need this.

@taoyl-ms
Copy link
Contributor Author

taoyl-ms commented Jun 2, 2017

Added description.

NEW_MGMT_MASK=`sonic-cfggen -m /etc/sonic/minigraph.xml -v 'minigraph_mgmt_interface["mask"]'`

ifconfig eth0 $NEW_MGMT_IP netmask $NEW_MGMT_MASK
[ -f /var/run/dhclient.eth0.pid ] && kill `cat /var/run/dhclient.eth0.pid` && rm -f /var/run/dhclient.eth0.pid
Copy link
Contributor

Choose a reason for hiding this comment

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

Add one line comment here?

@lguohan lguohan merged commit e74196c into sonic-net:master Jun 7, 2017
lguohan added a commit that referenced this pull request Jun 7, 2017
lguohan pushed a commit that referenced this pull request Jan 29, 2020
567191f [sairedis] Add knob to disable recording statistics API calls (#547)
8513506 Create Switch and SwitchContainer classes (#549) …
e991281 Update .gitignore (#551)
84b0eed [sairedis] Skip recording GET operations on AVAILABLE attributes (#550) …
634e4e3 [meta] Return OBJECT_IN_USE when removing port is in use (#553)
2961bd3 [syncd] Fix rpc server flag condition (#557)
madhanmellanox pushed a commit to madhanmellanox/sonic-buildimage that referenced this pull request Mar 23, 2020
…sonic-net#553)

* Add basic schema for warm start schema in configDB and application DB.

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>

* Move warm start table for process stats to state DB

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>

* Add reconciliation timer entry in configDB warm restart table.

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>

* Update warm restart timer schema

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>

* There might be more than one timer at system level or individual docker

Signed-off-by: Jipan Yang <jipan.yang@alibaba-inc.com>
dmytroxshevchuk pushed a commit to dmytroxshevchuk/sonic-buildimage that referenced this pull request Aug 31, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-buildimage that referenced this pull request Jan 31, 2025
[202412] Code sync sonic-net/sonic-buildimage:202411 => 202412
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants