Lines Matching refs:field

618         for field in self["attrs"]:
619 if field[1] == "none" or self.get_attr(field[0]) is None:
624 if field[0] == "OVS_ACTION_ATTR_OUTPUT":
625 print_str += "%d" % int(self.get_attr(field[0]))
626 elif field[0] == "OVS_ACTION_ATTR_RECIRC":
627 print_str += "recirc(0x%x)" % int(self.get_attr(field[0]))
628 elif field[0] == "OVS_ACTION_ATTR_TRUNC":
629 print_str += "trunc(%d)" % int(self.get_attr(field[0]))
630 elif field[0] == "OVS_ACTION_ATTR_DROP":
631 print_str += "drop(%d)" % int(self.get_attr(field[0]))
632 elif field[0] == "OVS_ACTION_ATTR_CT_CLEAR":
634 elif field[0] == "OVS_ACTION_ATTR_POP_VLAN":
636 elif field[0] == "OVS_ACTION_ATTR_POP_ETH":
638 elif field[0] == "OVS_ACTION_ATTR_POP_NSH":
640 elif field[0] == "OVS_ACTION_ATTR_POP_MPLS":
643 datum = self.get_attr(field[0])
644 if field[0] == "OVS_ACTION_ATTR_CLONE":
648 elif field[0] == "OVS_ACTION_ATTR_SET" or \
649 field[0] == "OVS_ACTION_ATTR_SET_MASKED":
651 field = datum
653 if field[0] == "OVS_ACTION_ATTR_SET_MASKED":
655 field = datum[0]
658 print_str += field.dpstr(mask, more)
664 print_str += "{ATTR: %s not decoded}" % field[0]
1640 for field in (
1696 fld = field[1] + "("
1700 if not isinstance(field[2], types.FunctionType):
1701 nk = field[2]()
1702 flowstr, k, m = nk.parse(flowstr, field[2])
1705 flowstr, k, m = field[2](flowstr)
1708 mask["attrs"].append([field[0], m])
1709 self["attrs"].append([field[0], k])
1718 for field in (
1821 v = self.get_attr(field[0])
1823 m = None if mask is None else mask.get_attr(field[0])
1824 if field[4] is False:
1828 if m is None or field[3](m):
1829 print_str += field[1] + "("
1830 print_str += field[2] % v
1833 print_str += field[1] + "("
1834 print_str += (field[2] % v) + "/" + (field[2] % m)