Lines Matching refs:is_add
373 def _Rule(self, version, is_add, rule_type, table, match_nlattr, priority): argument
400 command = RTM_NEWRULE if is_add else RTM_DELRULE
417 def FwmarkRule(self, version, is_add, fwmark, fwmask, table, priority): argument
420 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
422 def IifRule(self, version, is_add, iif, table, priority): argument
424 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
426 def OifRule(self, version, is_add, oif, table, priority): argument
428 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
430 def UidRangeRule(self, version, is_add, start, end, table, priority): argument
434 return self._Rule(version, is_add, RTN_UNICAST, table, nlattr, priority)
436 def UnreachableRule(self, version, is_add, priority): argument
437 return self._Rule(version, is_add, RTN_UNREACHABLE, None, None, priority)
439 def DefaultRule(self, version, is_add, table, priority): argument
440 return self.FwmarkRule(version, is_add, 0, 0, table, priority)
618 def _Neighbour(self, version, is_add, addr, lladdr, dev, state, flags=0): argument
623 if is_add and lladdr:
631 if is_add and lladdr:
633 command = RTM_NEWNEIGH if is_add else RTM_DELNEIGH