Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
beraldoleal committed Oct 18, 2017
1 parent e0eb2e1 commit 147897e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions kytos/core/switch.py
Expand Up @@ -61,6 +61,7 @@ def id(self): # pylint: disable=invalid-name

@property
def uni(self):
"""Return if an interface is a user-to-network Interface."""
return not self.nni

def get_endpoint(self, endpoint):
Expand All @@ -78,13 +79,6 @@ def get_endpoint(self, endpoint):
return item
return None

#def is_link_between_switches(self):
# """Return True if instance is link between switches.False otherwise."""
# for endpoint, _ in self.endpoints:
# if isinstance(endpoint, Interface):
# return True
# return False

def add_endpoint(self, endpoint):
"""Create a new endpoint to Interface instance.
Expand Down Expand Up @@ -482,8 +476,8 @@ def as_dict(self):
'hardware': self.description.get('hardware', ''),
'software': self.description.get('software'),
'data_path': self.description.get('data_path', ''),
'interfaces': { i.id: i.as_dict()
for i in self.interfaces.values() }
'interfaces': {i.id: i.as_dict()
for i in self.interfaces.values()}
}

def as_json(self):
Expand Down

0 comments on commit 147897e

Please sign in to comment.