diff options
author | Marcel Enguehard <mengueha+fdio@cisco.com> | 2017-05-29 15:54:39 +0200 |
---|---|---|
committer | Marcel Enguehard <mengueha+fdio@cisco.com> | 2017-05-29 15:54:39 +0200 |
commit | 97c6a8bb1847febe8bda5f95e19f527cabc060b9 (patch) | |
tree | eef5bd3a9c10179d59205f11240535d8be20f5ee /vicn/resource/linux/numa_mgr.py | |
parent | a836e5c16ea7df38646c46f2e9ffc6163ab05f06 (diff) |
Misc bug fixes: VPP, deb package detection, lxd
Change-Id: Ib3d339e636c0ec62dc0fe3227af85bcc167445cf
Signed-off-by: Marcel Enguehard <mengueha+fdio@cisco.com>
Diffstat (limited to 'vicn/resource/linux/numa_mgr.py')
-rw-r--r-- | vicn/resource/linux/numa_mgr.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vicn/resource/linux/numa_mgr.py b/vicn/resource/linux/numa_mgr.py index 632264ce..90c526a8 100644 --- a/vicn/resource/linux/numa_mgr.py +++ b/vicn/resource/linux/numa_mgr.py @@ -56,7 +56,7 @@ def parse_lscpu_rv(rv): ret.append(parse_lscpu_line(line)) return ret -#------------------------------------------------------------------------------ +#------------------------------------------------------------------------------ class NumaManager(Resource): """ @@ -68,36 +68,36 @@ class NumaManager(Resource): multiplicity = Multiplicity.OneToOne, reverse_auto = True, reverse_name = 'numa_mgr') - numa_repartitor = Attribute(CycleType, + numa_repartitor = Attribute(CycleType, description = 'Tool to separate cores/CPUs/sockets', - multiplicity = Multiplicity.OneToMany, + multiplicity = Multiplicity.OneToMany, ro = True) - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- # Resource lifecycle - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- __create__ = None __delete__ = None - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- # Constructor and Accessors - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.current_numa_node = 0 - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- # Attributes - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- def _get_numa_repartitor(self): return BashTask(self.node, CMD_LSCPU, parse=parse_lscpu_rv) - #-------------------------------------------------------------------------- - # Public API - #-------------------------------------------------------------------------- + #-------------------------------------------------------------------------- + # Public API + #-------------------------------------------------------------------------- def get_numa_core(self, numa_node=None): if numa_node is None: |