Exemple #1
0
  def __init__ (self, subtype, **kw):
    nx_data.__init__(self)
    self.subtype = subtype
    self.role = ROLE_OTHER
    self.length = 8

    initHelper(self, kw)
Exemple #2
0
    def __init__(self, subtype, **kw):
        nx_data.__init__(self)
        self.subtype = subtype
        self.role = ROLE_OTHER
        self.length = 8

        initHelper(self, kw)
Exemple #3
0
    def __init__(self, raw = None, **kw):
        self.parsed = False
        self.strlen  = 2
        self.ttl     = 0
        self.arr     = raw

        if raw is not None:
            self.parse()

        initHelper(self, kw)
Exemple #4
0
 def __init__(self, raw=None, **kw):
     self.parsed = False
     self.strlen = 0
     self.subtype = 0
     self.id = None
     self.arr = None
     if raw is not None:
         self.arr = raw
         self.parse()
     initHelper(self, kw)
Exemple #5
0
    def __init__(self, raw=None, **kw):
        self.parsed = False
        self.strlen = 2
        self.ttl = 0
        self.arr = raw

        if raw is not None:
            self.parse()

        initHelper(self, kw)
Exemple #6
0
 def __init__(self, raw = None, **kw):
     self.parsed   = False
     self.strlen   = 0
     self.subtype  = 0
     self.id       = None
     self.arr      = None
     if raw is not None:
         self.arr = raw
         self.parse()
     initHelper(self, kw)
Exemple #7
0
  def __init__ (self, **kw):
    self._cap_info = {}
    for val,name in ofp_capabilities_map.iteritems():
      name = name[5:].lower() # strip OFPC_
      name = "cap_" + name
      setattr(self, name, False)
      self._cap_info[name] = val

    self._act_info = {}
    for val,name in ofp_action_type_map.iteritems():
      name = name[6:].lower() # strip OFPAT_
      name = "act_" + name
      setattr(self, name, False)
      self._act_info[name] = val

    initHelper(self, kw)
Exemple #8
0
  def __init__ (self, **kw):
    self._cap_info = {}
    for val,name in ofp_capabilities_map.iteritems():
      name = name[5:].lower() # strip OFPC_
      name = "cap_" + name
      setattr(self, name, False)
      self._cap_info[name] = val

    self._act_info = {}
    for val,name in ofp_action_type_map.iteritems():
      name = name[6:].lower() # strip OFPAT_
      name = "act_" + name
      setattr(self, name, False)
      self._act_info[name] = val

    initHelper(self, kw)
Exemple #9
0
    def __init__(self, **kw):
        self.subtype = 0
        self.length = 4

        initHelper(self, kw)
Exemple #10
0
 def _init (self, kw):
     if 'payload' in kw:
       self.set_payload(kw['payload'])
       del kw['payload']
     initHelper(self, kw)
 def __init__ (self, **kw):
   ofp_vendor_base.__init__(self)
   self._init(kw)
   assert hasattr(self, 'vendor')
   assert hasattr(self, 'subtype')
   initHelper(self, kw)
Exemple #12
0
 def _init_helper (self, kw):
   if len(kw):
     if 'payload' in kw:
       self.payload = None
     initHelper(self, kw)
     self.parsed = True
Exemple #13
0
 def _init (self, kw):
     initHelper(self,kw)
Exemple #14
0
 def __init__(self, **kw):
     self.type = None
     self.aux = b''
     self.source_addresses = []
     self.address = None
     initHelper(self, kw)
Exemple #15
0
  def __init__ (self, **kw):
    self.subtype = 0
    self.length = 4

    initHelper(self, kw)
Exemple #16
0
 def _init_helper(self, kw):
     if len(kw):
         if 'payload' in kw:
             self.payload = None
         initHelper(self, kw)
         self.parsed = True
Exemple #17
0
 def _init(self, kw):
     initHelper(self, kw)