summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
9b309b6)
Change-Id: I77a43bfb37d827727c331cd65eee77536cc15953
Signed-off-by: Ole Troan <ot@cisco.com>
IP_API_NEIGHBOR_FLAG_NONE = 0,
IP_API_NEIGHBOR_FLAG_STATIC = 0x1,
IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY = 0x2,
IP_API_NEIGHBOR_FLAG_NONE = 0,
IP_API_NEIGHBOR_FLAG_STATIC = 0x1,
IP_API_NEIGHBOR_FLAG_NO_FIB_ENTRY = 0x2,
- IP_API_NEIGHBOR_FLAG_FIX_ME_OLE = 0x3,
};
/** \brief IP neighbor
};
/** \brief IP neighbor
license='Apache-2.0',
test_suite='vpp_papi.tests',
install_requires=['cffi >= 1.6'] if stdlib_enum else
license='Apache-2.0',
test_suite='vpp_papi.tests',
install_requires=['cffi >= 1.6'] if stdlib_enum else
- ['cffi >= 1.6', 'enum34'],
+ ['cffi >= 1.6', 'aenum'],
packages=find_packages(),
long_description='''VPP Python language binding.''',
zip_safe=True)
packages=find_packages(),
long_description='''VPP Python language binding.''',
zip_safe=True)
import struct
import collections
import struct
import collections
-from enum import IntEnum
+import sys
+if sys.version[0] == '2':
+ from aenum import IntEnum, IntFlag
+else:
+ from enum import IntEnum, IntFlag
import logging
from . import vpp_format
import ipaddress
import logging
from . import vpp_format
import ipaddress
continue
ename, evalue = f
e_hash[ename] = evalue
continue
ename, evalue = f
e_hash[ename] = evalue
- self.enum = IntEnum(name, e_hash)
+ self.enum = IntFlag(name, e_hash)
types[name] = self
def __getattr__(self, name):
types[name] = self
def __getattr__(self, name):