Skip to content

Commit

Permalink
premerge
Browse files Browse the repository at this point in the history
  • Loading branch information
Nieuwejaar committed Jul 26, 2024
1 parent 1c27e88 commit 8175536
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sled-agent/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3822,25 +3822,25 @@ impl ServiceManager {
};

info!(self.inner.log, "Setting up uplinkd service");
let smfh = SmfHelper::new(&zone, &SwitchService::Uplink);
let usmfh = SmfHelper::new(&zone, &SwitchService::Uplink);

// We want to delete all the properties in the `uplinks` group, but we
// don't know their names, so instead we'll delete and recreate the
// group, then add all our properties.
smfh.delpropgroup("uplinks")?;
smfh.addpropgroup("uplinks", "application")?;
usmfh.delpropgroup("uplinks")?;
usmfh.addpropgroup("uplinks", "application")?;

for port_config in &our_ports {
for addr in &port_config.addrs {
info!(self.inner.log, "configuring port: {port_config:?}");
smfh.addpropvalue_type(
usmfh.addpropvalue_type(
&format!("uplinks/{}_0", port_config.port,),
&addr.to_string(),
"astring",
)?;
}
}
smfh.refresh()?;
usmfh.refresh()?;

Ok(())
}
Expand Down

0 comments on commit 8175536

Please sign in to comment.