Skip to content

Commit

Permalink
solve label issue in prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
garci66 committed May 11, 2015
1 parent e49aa92 commit 0766647
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -5,6 +5,8 @@
/sdist/
/cover/

*.sln

.DS_Store
.coveralls.yml*
.coverage
Expand Down
4 changes: 1 addition & 3 deletions lib/exabgp/bgp/message/update/nlri/evpn/prefix.py
Expand Up @@ -63,9 +63,7 @@ def __init__(self, rd, esi, etag, label, ip, iplen, gwip, packed=None):
self.iplen = iplen
self.gwip = gwip
self.label = label
if self.label is None:
raise RuntimeError('NO_LABEL is not defined - it MUST have a pack() function')
self.label = "NO_LABEL"
self.label = label if label else Labels.NOLABEL
self.pack()

def __str__ (self):
Expand Down

0 comments on commit 0766647

Please sign in to comment.