Skip to content
Snippets Groups Projects
Unverified Commit 6978b867 authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub
Browse files

Merge pull request #33 from hikhvar/fix/add-mandatory-localPref

Fix: Added missing mandatory LocalPref
parents 3faca514 87c63a8a
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,10 @@ func (u *UpdateSender) AddPath(pfx net.Prefix, p *route.Path) error { ...@@ -43,6 +43,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,
},
}, },
}, },
}, },
......
...@@ -42,6 +42,10 @@ func (u *UpdateSenderAddPath) AddPath(pfx net.Prefix, p *route.Path) error { ...@@ -42,6 +42,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