Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joanne Hugé
re6stnet
Commits
9751e221
Commit
9751e221
authored
Jan 05, 2018
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log unexpected duplicate neighbour, instead of crashing with KeyError
parent
8a1c74d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
re6st/ctl.py
re6st/ctl.py
+14
-1
No files found.
re6st/ctl.py
View file @
9751e221
...
@@ -276,7 +276,20 @@ class Babel(object):
...
@@ -276,7 +276,20 @@ class Babel(object):
prefix
=
ip
[
a
:
route
.
plen
]
prefix
=
ip
[
a
:
route
.
plen
]
if
prefix
and
not
route
.
refmetric
:
if
prefix
and
not
route
.
refmetric
:
neighbours
[
prefix
]
=
neigh_routes
neighbours
[
prefix
]
=
neigh_routes
unidentified
.
remove
(
address
)
# XXX: Temporary logging to understand when a KeyError
# happens. Then, we'll problably replace 'remove' by
# 'discard'.
try
:
unidentified
.
remove
(
address
)
except
KeyError
as
e
:
logging
.
warning
(
"address: %s; prefix: %s"
,
address
,
prefix
)
logging
.
warning
(
"neighbours: %r"
,
neighbours
)
logging
.
warning
(
"routes: %r"
,
routes
)
try
:
tm
.
sendto
(
tm
.
cache
.
registry_prefix
,
'
\
7
%s'
%
e
)
except
AttributeError
:
pass
else
:
else
:
prefix
=
None
prefix
=
None
neigh_routes
[
1
][
prefix
]
=
route
neigh_routes
[
1
][
prefix
]
=
route
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment