Skip to content

[interfaces-config] use systemd unit properties to configure dependen…#84

Closed
stepanblyschak wants to merge 1 commit intomasterfrom
interfaces-config-deps
Closed

[interfaces-config] use systemd unit properties to configure dependen…#84
stepanblyschak wants to merge 1 commit intomasterfrom
interfaces-config-deps

Conversation

@stepanblyschak
Copy link
Copy Markdown
Owner

…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)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

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)

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant