Code Review
/
integration
/
test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fixing play.py and data change counter
[integration/test.git]
/
tools
/
fastbgp
/
play.py
diff --git
a/tools/fastbgp/play.py
b/tools/fastbgp/play.py
index dfc4f0ef98af5b17ecd6520a326f68885d9131a0..5dc84a1ba399116f5e0535ec5ba059a57508f7c7 100755
(executable)
--- a/
tools/fastbgp/play.py
+++ b/
tools/fastbgp/play.py
@@
-936,6
+936,12
@@
class MessageGenerator(object):
path_attributes_hex += (
next_hop_hex # IP address of the next hop (4 bytes)
)
path_attributes_hex += (
next_hop_hex # IP address of the next hop (4 bytes)
)
+ path_attributes_hex += (
+ "\x40" # Flags ("Well-Known")
+ "\x05" # Type (LOCAL_PREF)
+ "\x04" # Length (4)
+ "\x00\x00\x00\x64" # (100)
+ )
if originator_id is not None:
path_attributes_hex += (
"\x80" # Flags ("Optional, non-transitive")
if originator_id is not None:
path_attributes_hex += (
"\x80" # Flags ("Optional, non-transitive")