Skip to content
Snippets Groups Projects
Commit 87c63a8a authored by Christoph Petrausch's avatar Christoph Petrausch
Browse files

Added missing mandatory LocalPref

parent 1337ccc9
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,10 @@ func (u *UpdateSender) AddPath(pfx net.Prefix, p *route.Path) error { ...@@ -41,6 +41,10 @@ func (u *UpdateSender) AddPath(pfx net.Prefix, p *route.Path) error {
Next: &packet.PathAttribute{ Next: &packet.PathAttribute{
TypeCode: packet.NextHopAttr, TypeCode: packet.NextHopAttr,
Value: p.BGPPath.NextHop, Value: p.BGPPath.NextHop,
Next: &packet.PathAttribute{
TypeCode: packet.LocalPrefAttr,
Value: p.BGPPath.LocalPref,
},
}, },
}, },
}, },
......
...@@ -41,6 +41,10 @@ func (u *UpdateSenderAddPath) AddPath(pfx net.Prefix, p *route.Path) error { ...@@ -41,6 +41,10 @@ func (u *UpdateSenderAddPath) AddPath(pfx net.Prefix, p *route.Path) error {
Next: &packet.PathAttribute{ Next: &packet.PathAttribute{
TypeCode: packet.NextHopAttr, TypeCode: packet.NextHopAttr,
Value: p.BGPPath.NextHop, Value: p.BGPPath.NextHop,
Next: &packet.PathAttribute{
TypeCode: packet.LocalPrefAttr,
Value: p.BGPPath.LocalPref,
},
}, },
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment