diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-23 20:40:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-10 22:15:04 -0800 |
commit | 36f8911cee2557a0065ee291d03a6c6d88b537c0 (patch) | |
tree | b8eabbef187660c8a4b03cdbed0685c8581fec87 /table/message.go | |
parent | c3dbc58040a289aed7673149145e7d3a4944e183 (diff) |
table: support sending/receiving EOR msg
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/message.go')
-rw-r--r-- | table/message.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/table/message.go b/table/message.go index 02cdaf3b..23f278bb 100644 --- a/table/message.go +++ b/table/message.go @@ -282,6 +282,9 @@ func CreateUpdateMsgFromPaths(pathList []*Path) []*bgp.BGPMessage { for _, path := range pathList { if path == nil { continue + } else if path.IsEOR() { + msgs = append(msgs, bgp.NewEndOfRib(path.GetRouteFamily())) + continue } y := func(p *Path) bool { if p.GetRouteFamily() != bgp.RF_IPv4_UC { |