-
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
[baseos] Avoid disconnecting mgmt when re-cfg interfaces #553
Conversation
NEW_MGMT_MASK=`sonic-cfggen -m /etc/sonic/minigraph.xml -v 'minigraph_mgmt_interface["mask"]'` | ||
|
||
ifconfig eth0 $NEW_MGMT_IP netmask $NEW_MGMT_MASK | ||
|
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.
so we only have lo and eth0 at this moment?
can you add description why we need to avoid disconnecting mgmt when re-cfg interfaces? |
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.
need to elaborated description for why need this.
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 |
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.
Add one line comment here?
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)
…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>
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.