Skip to content

Commit 2c50521

Browse files
..
1 parent 1ac035b commit 2c50521

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

dpd/src/mcast/mod.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@ pub(crate) fn del_group(s: &Switch, group_ip: IpAddr) -> DpdResult<()> {
599599
delete_multicast_groups(
600600
s,
601601
group_ip,
602-
group.external_group_id(),
603-
group.underlay_group_id(),
602+
group.external_group_id.clone(),
603+
group.underlay_group_id.clone(),
604604
)?;
605605

606606
if let Some(internal_ip) = nat_target_to_remove {
@@ -1204,10 +1204,11 @@ fn create_multicast_group_ids(
12041204
fn delete_multicast_groups(
12051205
s: &Switch,
12061206
group_ip: IpAddr,
1207-
external_group_id: Option<MulticastGroupId>,
1208-
underlay_group_id: Option<MulticastGroupId>,
1207+
external_group_id: Option<ScopedGroupId>,
1208+
underlay_group_id: Option<ScopedGroupId>,
12091209
) -> DpdResult<()> {
1210-
if let Some(external_id) = external_group_id {
1210+
if let Some(external_scoped) = external_group_id.as_ref() {
1211+
let external_id = external_scoped.id();
12111212
s.asic_hdl.mc_group_destroy(external_id).map_err(|e| {
12121213
DpdError::McastGroupFailure(format!(
12131214
"failed to delete external multicast group for IP {} with ID {}: {:?}",
@@ -1216,7 +1217,8 @@ fn delete_multicast_groups(
12161217
})?;
12171218
}
12181219

1219-
if let Some(underlay_id) = underlay_group_id {
1220+
if let Some(underlay_scoped) = underlay_group_id.as_ref() {
1221+
let underlay_id = underlay_scoped.id();
12201222
s.asic_hdl.mc_group_destroy(underlay_id).map_err(|e| {
12211223
DpdError::McastGroupFailure(format!(
12221224
"failed to delete underlay multicast group for IP {} with ID {}: {:?}",

0 commit comments

Comments
 (0)