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

Commit

Permalink
Improvement in code
Browse files Browse the repository at this point in the history
  • Loading branch information
cmagnobarbosa authored and beraldoleal committed Aug 1, 2019
1 parent b12268a commit f1fe5ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kytos/core/interface.py
Expand Up @@ -87,7 +87,7 @@ def __init__(self, name, port_number, switch, address=None, state=None,
self.endpoints = []
self.stats = None
self.link = None
self.receive_lldp = True
self.lldp = True
self._custom_speed = speed
self.set_available_tags(range(1, 4096))

Expand Down Expand Up @@ -377,7 +377,7 @@ def as_dict(self):
'uni': True,
'speed': 12500000000,
'metadata': {},
'receive_lldp': True,
'lldp': True,
'active': True,
'enabled': False,
'link': ""
Expand All @@ -397,7 +397,7 @@ def as_dict(self):
'uni': self.uni,
'speed': self.speed,
'metadata': self.metadata,
'receive_lldp': self.receive_lldp,
'lldp': self.lldp,
'active': self.is_active(),
'enabled': self.is_enabled(),
'link': self.link.id if self.link else ""}
Expand Down

0 comments on commit f1fe5ef

Please sign in to comment.