[interfaces-config] use systemd unit properties to configure dependen…#84
Closed
stepanblyschak wants to merge 1 commit intomasterfrom
Closed
[interfaces-config] use systemd unit properties to configure dependen…#84stepanblyschak wants to merge 1 commit intomasterfrom
stepanblyschak wants to merge 1 commit intomasterfrom
Conversation
…cy for networking service When switch boots up it is possible that networking service starts first before interfaces-config and brings eth0 up. For this case there is a syncrhonization mechanism implemented in interfaces-config.sh that will wait for networking service to finish and bring eth0 down and then restart networking service unconditionally at the end. This method works but takes more time for service to become started and blocks swss, teamd, bgp services which delays the restoration for fast and warm boot. The ideal order is: interfaces-config starts first at boot, generates /etc/network/interfaces and then systemd starts networking service. In case of "systemctl restart interfaces-config" systemd brings networking service down, restarts interfaces-config and starts networking service again. Signed-off-by: Stepan Blyschak <[email protected]>
stepanblyschak
pushed a commit
that referenced
this pull request
Dec 5, 2023
…utomatically (sonic-net#17371) #### Why I did it src/sonic-host-services ``` * e8ae2af - (HEAD -> master, origin/master, origin/HEAD) [featured]: Add database services for DPU (#84) (24 hours ago) [Ze Gan] ``` #### How I did it #### How to verify it #### Description for the changelog
stepanblyschak
pushed a commit
that referenced
this pull request
May 20, 2025
…est HEAD automatically (sonic-net#1126) #### Why I did it src/sonic-platform-common ``` * 821b7c1 - (HEAD -> 202412, origin/202412) [cmis] add a parameter to cmis.set_lpmode to ignore the time wait (#83) (18 hours ago) [mssonicbld] * 596a19b - [cmis] combine cmis eeprom i2c read (#84) (18 hours ago) [mssonicbld] ``` #### How I did it #### How to verify it #### Description for the changelog
stepanblyschak
pushed a commit
that referenced
this pull request
Aug 6, 2025
…ically (sonic-net#23389) #### Why I did it src/sonic-dash-ha ``` * aeac5d0 - (HEAD -> master, origin/master, origin/HEAD) Remove fvs and rename backup_fvs to fields in show hamgrd actor command (#85) (6 hours ago) [yue-fred-gao] * cf03fe8 - Add test case to verify zmq reconnect behaviour (#84) (6 hours ago) [yue-fred-gao] ``` #### How I did it #### How to verify it #### Description for the changelog
stepanblyschak
pushed a commit
that referenced
this pull request
Aug 6, 2025
…omatically (sonic-net#23392) #### Why I did it src/sonic-swss-common ``` * fc35dd0 - (HEAD -> master, origin/master, origin/HEAD) Move SonicDbTable to sonic-dash-ha. (sonic-net#1056) (3 hours ago) [dypet] * 100e2e0 - [MSTP] Schema Support (sonic-net#961) (5 hours ago) [Wajahat Razi] * d7c661b - [trim]: Add Packet Trimming Drop Counters DB schema (sonic-net#1055) (33 hours ago) [Nazarii Hnydyn] * 465cc1c - Add test case to verify zmq reconnect behaviour (#84) (sonic-net#1052) (12 days ago) [Qi Luo] * 93af927 - Move swss-common/swss-common-testing crates from https://github.com/sonic-net/sonic-dash-ha (sonic-net#1044) (13 days ago) [Qi Luo] ``` #### How I did it #### How to verify it #### Description for the changelog
stepanblyschak
pushed a commit
that referenced
this pull request
Dec 24, 2025
…ly (sonic-net#24787) #### Why I did it src/dhcprelay ``` * f908c85 - (HEAD -> master, origin/master, origin/HEAD) [dhcp4relay] Smart switch support, defect fixes (#84) (4 days ago) [Shivashankar C R] * d7fd4ed - Allow using Boost 1.83 for dhcp4relay (#87) (5 days ago) [Saikrishna Arcot] ``` #### How I did it #### How to verify it #### Description for the changelog
This file contains hidden or 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
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.
…cy for networking service
When switch boots up it is possible that networking service starts first before interfaces-config and brings eth0 up. For this case there is a syncrhonization mechanism implemented in interfaces-config.sh that will wait for networking service to finish and bring eth0 down and then restart networking service unconditionally at the end. This method works but takes more time for service to become started and blocks swss, teamd, bgp services which delays the restoration for fast and warm boot. The ideal order is: interfaces-config starts first at boot, generates /etc/network/interfaces and then systemd starts networking service. In case of "systemctl restart interfaces-config" systemd brings networking service down, restarts interfaces-config and starts networking service again.
Signed-off-by: Stepan Blyschak [email protected]
Why I did it
To optimize boot sequence
How I did it
Put a dependency configuration in interfaces-config.service file
How to verify it
Boot switch with no MGMT_INTERFACE table, verify we get mgmt IP from dhcp.
Boot with MGMT_INTERFACE config, verify we get mgmt IP set statically.
Restart interfaces-config.sh, verify mgmt interface is configured properly.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)