Skip to content

Commit

Permalink
fix svccfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Nieuwejaar committed Jul 25, 2024
1 parent f73e472 commit d978f79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ impl BackgroundTask for SwitchPortSettingsManager {
chassis_id: c.chassis_id.clone(),
system_name: c.system_name.clone(),
system_description: c.system_description.clone(),
management_addrs:c.management_ip.map(|a| vec![a.ip().into()]),
management_addrs:c.management_ip.map(|a| vec![a.ip()]),
})
}
;
Expand Down
4 changes: 2 additions & 2 deletions sled-agent/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3763,7 +3763,7 @@ impl ServiceManager {
// 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.
usmfh.delpropgroup("uplinks")?;
let _ = usmfh.delpropgroup("uplinks");
usmfh.addpropgroup("uplinks", "application")?;

for port_config in &our_ports {
Expand All @@ -3778,7 +3778,7 @@ impl ServiceManager {
if let Some(lldp_config) = &port_config.lldp {
let group_name = format!("port_{}", port_config.port);
info!(self.inner.log, "setting up {group_name}");
usmfh.delpropgroup(&group_name)?;
let _ = lsmfh.delpropgroup(&group_name);
lsmfh.addpropgroup(&group_name, "application")?;
apv(
&lsmfh,
Expand Down
2 changes: 1 addition & 1 deletion sled-agent/src/smf_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl<'t> SmfHelper<'t> {
"addpropvalue",
&prop.to_string(),
&format!("{}:", valtype.to_string()),
&val.to_string(),
&format!("\"{}\"", val.to_string()),
])
.map_err(|err| Error::ZoneCommand {
intent: format!("add {} smf property value", prop.to_string()),
Expand Down

0 comments on commit d978f79

Please sign in to comment.