diff options
author | Vivekanand Veeracholan <vveerach@google.com> | 2021-06-17 01:29:15 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-06-17 06:29:14 +0300 |
commit | e3f3370ac624b1d692a01614591474631568e2f7 (patch) | |
tree | d95a30b9bbfde9212ac91f0d90ebdea6d9e3b23a /meta-google/recipes-google/ncsi/files | |
parent | d84b7f4455406807637b7fecf9e96b73e17fcf62 (diff) | |
download | openbmc-e3f3370ac624b1d692a01614591474631568e2f7.tar.xz |
meta-google: gbmc-ncsi-config: Set NICEnabled property
Sometimes the phosphor-networkd starts before systemd-networkd finishes
configuring NCSI interface. This causes phosphor-networkd to mark this
interface as unmanaged.
Setting NICEnabled property to true will ensure the interface is
enabled. If this service starts before systemd-networkd is done, the
set-property command will fail. So retry till the command succeeds.
Signed-off-by: Vivekanand Veeracholan <vveerach@google.com>
Change-Id: I232d363cff48bbf955ac0f1f9a6dac7ae5467257
Diffstat (limited to 'meta-google/recipes-google/ncsi/files')
-rw-r--r-- | meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in new file mode 100644 index 000000000..99f0400bf --- /dev/null +++ b/meta-google/recipes-google/ncsi/files/gbmc-ncsi-set-nicenabled.service.in @@ -0,0 +1,17 @@ +[Unit] +Description=Set NICEnabled property to true +Wants=xyz.openbmc_project.Network.service +After=xyz.openbmc_project.Network.service +Wants=mapper-wait@-xyz-openbmc_project-network-@NCSI_IF@.service +After=mapper-wait@-xyz-openbmc_project-network-@NCSI_IF@.service +StartLimitIntervalSec=10 +StartLimitBurst=3 + +[Service] +Type=oneshot +ExecStart=busctl set-property xyz.openbmc_project.Network /xyz/openbmc_project/network/@NCSI_IF@ xyz.openbmc_project.Network.EthernetInterface NICEnabled b true +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target |