p4command.py 589 Bytes
Newer Older
1
class P4Command():
2
  def __init__(self, command_type, attributes):
3
    self.command_type = command_type
4
    self.attributes = attributes # {<attrib_name>: <attribute}
5 6 7 8 9 10 11 12
                                 # standard attributes:
                                 #  table
                                 #  action
                                 #  mparams
                                 #  aparams
                                 #  handle
                                 #  src_table (for HP4 match commands)
                                 #  src_aparam_id (for HP4 primitive commands)