Skip to content

Commit

Permalink
Fix FexInterface DN
Browse files Browse the repository at this point in the history
  • Loading branch information
michsmit99 committed Feb 9, 2017
1 parent 5c8fda7 commit 0ed294d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion acitoolkit/acicounters.py
Expand Up @@ -404,7 +404,7 @@ def _process_data(data):
:return: Dictonary containing processed data
"""
result = {}
if data:
if data and 'l1PhysIf' in data:
if 'children' in data['l1PhysIf']:
children = data['l1PhysIf']['children']
for grandchildren in children:
Expand Down
11 changes: 7 additions & 4 deletions acitoolkit/acitoolkit.py
Expand Up @@ -4758,6 +4758,8 @@ def __init__(self, if_type, pod, node, fex, module, port):
self._session = None
self.if_name = if_name
self.attributes = {'if_name': self.if_name}
if self.attributes.get('dn') is None:
self.attributes['dn'] = self._get_path()
self.stats = InterfaceStats(self, self.attributes.get('dn'))

@classmethod
Expand All @@ -4783,10 +4785,11 @@ def _get_path(self):
"""Get the path of this interface used when communicating with
the APIC object model.
"""
return 'topology/pod-%s/paths-%s/pathep-[eth%s/%s]' % (self.pod,
self.node,
self.module,
self.port)
return 'topology/pod-%s/paths-%s/extpaths-%s/pathep-[eth%s/%s]' % (self.pod,
self.node,
self.fex,
self.module,
self.port)



Expand Down

0 comments on commit 0ed294d

Please sign in to comment.