Skip to content

Commit

Permalink
Fix to handle failing testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Jan 27, 2017
1 parent 15da122 commit 59b8603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions acitoolkit/aciphysobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -3017,6 +3017,7 @@ def get(cls, session, pod_parent=None, node=None, module=None, port=None):
interface_obj = ACI._interface_from_dn(dist_name)
for attribute in attributes:
interface_obj.attributes[attribute] = attributes[attribute]
interface_obj._session = session
interface_obj.porttype = porttype
interface_obj.adminstatus = adminstatus
interface_obj.speed = speed
Expand Down
1 change: 1 addition & 0 deletions acitoolkit/acitoolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4664,6 +4664,7 @@ def __init__(self, if_type, pod, node, fex, module, port):
self.if_name = self.interface_type + ' ' + self.pod + '/'
self.if_name += self.node + '/' + self.fex + '/'
self.if_name += self.module + '/' + self.port
self._session = None
self.attributes = {'if_name': self.if_name}

@classmethod
Expand Down

0 comments on commit 59b8603

Please sign in to comment.