Commit 01b386ba authored by Pedro Oliveira's avatar Pedro Oliveira Committed by GitHub

Update non_root_interface.py

parent 41d9dba8
......@@ -111,10 +111,10 @@ class SFRMNonRootInterface(SFRMTreeInterface):
# Override
def is_forwarding(self):
return self._assert_state == AssertState.Winner and not self.is_pruned()
return self._assert_state == AssertState.Winner and self.is_in_group()
def is_pruned(self):
return not self.igmp_has_members() and self._prune_state == SFMRPruneState.NDI
def is_in_group(self):
return self.igmp_has_members() or self._prune_state != SFMRPruneState.NDI
# Override
def nbr_died(self, neighbor_ip):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment