]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoMerge pull request #3201 from donaldsharp/breadcrumbs_for_donald
David Lamparter [Fri, 19 Oct 2018 11:07:15 +0000 (13:07 +0200)]
Merge pull request #3201 from donaldsharp/breadcrumbs_for_donald

zebra: Add some missing breadcrumbs

5 years agoMerge pull request #3186 from donaldsharp/aggregate_ecomm
David Lamparter [Fri, 19 Oct 2018 10:34:08 +0000 (12:34 +0200)]
Merge pull request #3186 from donaldsharp/aggregate_ecomm

Aggregate ecommunity and lcommunity addition

5 years agoMerge pull request #3163 from donaldsharp/more_vty_errors
David Lamparter [Fri, 19 Oct 2018 10:11:21 +0000 (12:11 +0200)]
Merge pull request #3163 from donaldsharp/more_vty_errors

lib, vtysh: Allow notification across multiple lines of failure

5 years agoMerge pull request #3191 from donaldsharp/more_vty
Renato Westphal [Thu, 18 Oct 2018 14:54:58 +0000 (11:54 -0300)]
Merge pull request #3191 from donaldsharp/more_vty

bgpd: Add a better breadcrumb for interface based peers

5 years agoMerge pull request #3189 from opensourcerouting/libunwind
Donald Sharp [Thu, 18 Oct 2018 14:45:32 +0000 (10:45 -0400)]
Merge pull request #3189 from opensourcerouting/libunwind

lib: add libunwind support for backtraces

5 years agozebra: Add some missing breadcrumbs
Donald Sharp [Thu, 18 Oct 2018 13:13:18 +0000 (09:13 -0400)]
zebra: Add some missing breadcrumbs

During a debugging session last night I discovered that I was
still having some `fun` figuring out why zebra was not making
a route's nexthop active.  After some debugging I figured out
that I was missing some states that we could end up in that
didn't have debug information about what happened in nexthop_active.

Add the missing breadcrumbs for nexthop resolution.  In addition
add a bit of code to notice the ebgp state without recursion turned
on and to let the user know about it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3195 from donaldsharp/nht_crash
David Lamparter [Thu, 18 Oct 2018 03:10:37 +0000 (05:10 +0200)]
Merge pull request #3195 from donaldsharp/nht_crash

Nht crash

5 years agoMerge pull request #3190 from qlyoung/allow-static-onlink
Renato Westphal [Thu, 18 Oct 2018 02:26:04 +0000 (23:26 -0300)]
Merge pull request #3190 from qlyoung/allow-static-onlink

staticd: add ability to create onlink static route

5 years agoMerge pull request #3196 from dslicenc/l2vpn-evpn-upd-grps
Renato Westphal [Thu, 18 Oct 2018 01:49:44 +0000 (22:49 -0300)]
Merge pull request #3196 from dslicenc/l2vpn-evpn-upd-grps

bgpd: add command to display update groups for l2vpn evpn

5 years agolib: add libunwind support for backtraces
David Lamparter [Thu, 24 Aug 2017 14:09:48 +0000 (16:09 +0200)]
lib: add libunwind support for backtraces

libunwind provides an alternate to backtrace() for printing out the call
stack of a particular location.  It doesn't use the frame pointer, it
goes by the DWARF debug info.  In most cases the traces have exactly the
same information, but there are some situations where libunwind traces
are better.

(On some platforms, the libc backtrace() also uses the DWARF debug info
[e.g.: ARM backtraces are impossible without it] but this is not the
case everywhere, especially not on BSD libexecinfo.)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobgpd: add command to display update groups for l2vpn evpn
Don Slice [Wed, 17 Oct 2018 13:35:10 +0000 (13:35 +0000)]
bgpd: add command to display update groups for l2vpn evpn

For troubleshooting purposes, it's useful to display the update-groups
for l2vpn evpn

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
5 years agoMerge pull request #3192 from lkrishnamoor/evpn_route_server
Donald Sharp [Wed, 17 Oct 2018 18:38:31 +0000 (14:38 -0400)]
Merge pull request #3192 from lkrishnamoor/evpn_route_server

bgpd: Route Server support for evpn address-family

5 years agoMerge pull request #3194 from opensourcerouting/bugfix/isis-misc
Donald Sharp [Wed, 17 Oct 2018 18:38:16 +0000 (14:38 -0400)]
Merge pull request #3194 from opensourcerouting/bugfix/isis-misc

Bugfix: IS-IS fragmentation issues

5 years agobgpd: Cleanup bnch_nexthop_cache_reset to fit cleaner
Donald Sharp [Wed, 17 Oct 2018 15:31:34 +0000 (11:31 -0400)]
bgpd: Cleanup bnch_nexthop_cache_reset to fit cleaner

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Fix crash when using v4 route w/ v6 nexthop
Donald Sharp [Wed, 17 Oct 2018 15:27:30 +0000 (11:27 -0400)]
bgpd: Fix crash when using v4 route w/ v6 nexthop

Recent changes to the nht code in bgp caused us to actually
keep a true count of v6 nexthop paths when using v4 over v6.
This change introduced a race condition on shutdown on who
got to the bnc cache first( the v4 table or not ).  Effectively
we were allowing the continued existence of the path->nexthop
pointing to the freed bnc.  This was especially true when
we had route leaking.   So when we free the bnc make sure
we clean up the path->nexthop variables pointing at it too.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Route Server support for evpn address-family
Lakshman Krishnamoorthy [Wed, 17 Oct 2018 00:44:57 +0000 (17:44 -0700)]
bgpd: Route Server support for evpn address-family
Signed-off-by: Lakshman Krishnamoorthy lkrishnamoor@vmware.com
5 years agobgpd: Add a better breadcrumb for interface based peers
Donald Sharp [Tue, 16 Oct 2018 21:26:21 +0000 (17:26 -0400)]
bgpd: Add a better breadcrumb for interface based peers

If you are using bgp unnumbered( or interface based peers )
when we detect an error give the user a bit more of a clue
what they may have done wrong.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agostaticd: add ability to create onlink static route
Quentin Young [Tue, 16 Oct 2018 20:49:32 +0000 (20:49 +0000)]
staticd: add ability to create onlink static route

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoisisd: adjust lsp size to area->lsp_size before packing
Christian Franke [Tue, 16 Oct 2018 17:17:10 +0000 (19:17 +0200)]
isisd: adjust lsp size to area->lsp_size before packing

IS-IS would ignore any area lsp-mtu setting configured after initial
creation of the LSP since move to the new tlv serialized/deserializer.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Unlink LSP fragments from LSP0 on lsp_destroy
Christian Franke [Tue, 16 Oct 2018 15:36:45 +0000 (17:36 +0200)]
isisd: Unlink LSP fragments from LSP0 on lsp_destroy

isisd would crash when lsp fragments aged out, since they got freed
correctly, but were not removed from LSP0's linked list of fragments.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoMerge pull request #3188 from opensourcerouting/bgp-snmp-fix-rename
Quentin Young [Tue, 16 Oct 2018 17:18:34 +0000 (13:18 -0400)]
Merge pull request #3188 from opensourcerouting/bgp-snmp-fix-rename

bgpd: fix missed info->path rename in snmp

5 years agobgpd: fix missed info->path rename in snmp
David Lamparter [Tue, 16 Oct 2018 16:14:17 +0000 (18:14 +0200)]
bgpd: fix missed info->path rename in snmp

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge pull request #3157 from pguibert6WIND/doc_expanded
Donald Sharp [Tue, 16 Oct 2018 15:52:22 +0000 (11:52 -0400)]
Merge pull request #3157 from pguibert6WIND/doc_expanded

doc: inform user that expanded communities can not be used in set mode

5 years agobgpd: Add Large community support to aggregate routes
Donald Sharp [Tue, 16 Oct 2018 12:24:01 +0000 (08:24 -0400)]
bgpd: Add Large community support to aggregate routes

Add the ability to track and support Large communities for aggregate
routes.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Add extended community to aggregates
Donald Sharp [Tue, 16 Oct 2018 12:13:03 +0000 (08:13 -0400)]
bgpd: Add extended community to aggregates

Add the ability to aggregate routes to handle
extended communities.  Make the actions similiar
to what we do for normal communities.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3179 from donaldsharp/vni_cmp
Renato Westphal [Tue, 16 Oct 2018 01:51:03 +0000 (22:51 -0300)]
Merge pull request #3179 from donaldsharp/vni_cmp

bgpd: The l2vni list compare function does not sort

5 years agoMerge pull request #3181 from qlyoung/frr-sss-indent
Renato Westphal [Tue, 16 Oct 2018 01:46:38 +0000 (22:46 -0300)]
Merge pull request #3181 from qlyoung/frr-sss-indent

tools: reindent frr

5 years agobgpd: Ensure that evpn_vtep_ip_cmp actually returns useful data
Donald Sharp [Mon, 15 Oct 2018 15:48:03 +0000 (11:48 -0400)]
bgpd: Ensure that evpn_vtep_ip_cmp actually returns useful data

The evpn_vtep_ip_cmp function must return positive and negative
numbers for when we are doing sorted linked list inserts.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agotools: reindent frr
Quentin Young [Mon, 15 Oct 2018 15:43:25 +0000 (15:43 +0000)]
tools: reindent frr

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobgpd: The l2vni list compare function does not sort
Donald Sharp [Mon, 15 Oct 2018 15:41:39 +0000 (11:41 -0400)]
bgpd: The l2vni list compare function does not sort

The purpose of adding a l2vni as an sorted list is
shot in the foot when the l2vni compare function only
returns 0 or 1.  This will cause subtle crashes when
we add sorted and we end up with multiple list node pointing
to the same thing.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3178 from vincentbernat/fix/json-route-ipv6
Quentin Young [Mon, 15 Oct 2018 15:34:52 +0000 (11:34 -0400)]
Merge pull request #3178 from vincentbernat/fix/json-route-ipv6

bgpd: fix IPv6 next-hop field name for routes in JSON

5 years agobgpd: fix IPv6 next-hop field name for routes in JSON
Vincent Bernat [Mon, 15 Oct 2018 13:08:37 +0000 (15:08 +0200)]
bgpd: fix IPv6 next-hop field name for routes in JSON

This may break existing clients but the original name contains two
errors.

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
5 years agodoc: inform user that expanded communities can not be used in set mode
Philippe Guibert [Wed, 10 Oct 2018 09:19:05 +0000 (11:19 +0200)]
doc: inform user that expanded communities can not be used in set mode

Expanded communities can not be used in route-map set actions.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agoMerge pull request #3172 from opensourcerouting/bfd-mhop-lookup
Donald Sharp [Sun, 14 Oct 2018 22:04:22 +0000 (18:04 -0400)]
Merge pull request #3172 from opensourcerouting/bfd-mhop-lookup

bfdd: fix multi hop hash lookup

5 years agobfdd: fix multi hop hash lookup
Rafael Zalamena [Sun, 14 Oct 2018 13:39:55 +0000 (15:39 +0200)]
bfdd: fix multi hop hash lookup

Use the proper multi hop hash for matching multi hop peers.

Spotted by Dmitrii Turlupov.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agoMerge pull request #3024 from ton31337/fix/validate_route-map
Russ White [Sun, 14 Oct 2018 12:48:48 +0000 (08:48 -0400)]
Merge pull request #3024 from ton31337/fix/validate_route-map

bgpd: Check if route-map really exists before applying to the peer

5 years agoMerge pull request #3142 from donaldsharp/bgp_peerhash
Russ White [Fri, 12 Oct 2018 20:55:50 +0000 (16:55 -0400)]
Merge pull request #3142 from donaldsharp/bgp_peerhash

Bgp peerhash

5 years agoMerge pull request #3134 from donaldsharp/bum_flooding
Russ White [Fri, 12 Oct 2018 20:52:21 +0000 (16:52 -0400)]
Merge pull request #3134 from donaldsharp/bum_flooding

Bum flooding control for BGP and Zebra

5 years agoMerge pull request #3168 from adharkar/frr-bgp_json
Russ White [Fri, 12 Oct 2018 20:48:08 +0000 (16:48 -0400)]
Merge pull request #3168 from adharkar/frr-bgp_json

bgpd: BGP JSON new fields

5 years agoMerge pull request #3167 from chiragshah6/ospfv3_dev
Russ White [Fri, 12 Oct 2018 19:55:59 +0000 (15:55 -0400)]
Merge pull request #3167 from chiragshah6/ospfv3_dev

ospf6d: fix ospf6 crash in inp lsa processing

5 years agoMerge pull request #3137 from opensourcerouting/feature/isis-bfd
Donald Sharp [Fri, 12 Oct 2018 17:58:26 +0000 (13:58 -0400)]
Merge pull request #3137 from opensourcerouting/feature/isis-bfd

Feature: BFD for IS-IS

5 years agoospf6d: fix ospf6 crash in inp lsa processing
Chirag Shah [Thu, 11 Oct 2018 16:08:37 +0000 (09:08 -0700)]
ospf6d: fix ospf6 crash in inp lsa processing

Use ospf6_prefix_same for comparing two exact same prefix
to determine ECMP for a route.
ospf6_route_cmp expects two different prefix rather
being exactly same.

Ticket:CM-22630
Testing Done:
performed ECMP of intra network prefix route via
sending same route via different available
ospf6 paths.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
5 years agoisisd: Fix license header of bfd code
Christian Franke [Fri, 12 Oct 2018 16:56:07 +0000 (18:56 +0200)]
isisd: Fix license header of bfd code

5 years agoisisd: Address code-style warnings
Christian Franke [Fri, 12 Oct 2018 14:45:32 +0000 (16:45 +0200)]
isisd: Address code-style warnings

5 years agobgpd: Add '[no] flood <disable|head-end-replication>'
Donald Sharp [Thu, 4 Oct 2018 23:20:12 +0000 (19:20 -0400)]
bgpd: Add '[no] flood <disable|head-end-replication>'

Add the '[no] flood <disable|head-end-replication>' command
to the l2vpn evpn afi/safi sub commands for bgp.  This command
when entered as 'flood disable' will turn off type 3 route
generation for the transmittal of the type 3 route necessary
for BUM replication on the remote VTEP.  Additionally it will
turn off the BUM handling via the new zebra command,
ZEBRA_VXLAN_FLOOD_CONTROL.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib, zebra: Allow the specification of BUM flooding
Donald Sharp [Thu, 4 Oct 2018 22:42:57 +0000 (18:42 -0400)]
lib, zebra: Allow the specification of BUM flooding

Allow the modification of whether or not we will allow
BUM flooding on the vxlan bridge.  To do this allow
the upper level protocol to specify via the ZEBRA_VXLAN_FLOOD_CONTROL
zapi message.

If flooding is disabled then BUM traffic will not be forwarded
to other VTEP's.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3140 from vishaldhingra/b_2802
Donald Sharp [Fri, 12 Oct 2018 00:18:57 +0000 (20:18 -0400)]
Merge pull request #3140 from vishaldhingra/b_2802

zebra : VRF aware route map in zebra

5 years agobgpd: BGP JSON new fields
Ameya Dharkar [Thu, 11 Oct 2018 22:35:21 +0000 (15:35 -0700)]
bgpd: BGP JSON new fields

1. "show bgp ipv4 json"
  - Added "network" field which displays a prefix in 'prefix/prefixlen' format.

2. "show bgp ipv6 json"
  - Added "network" field which displays a prefix in 'prefix/prefixlen' format.
  - JSON does not have "prefix", "prefixLen" fields which are present in IPv4
    command. Added these fields as they are useful.

3. "show bgp ipv4/ipv6 neighbor <neighbor_addr> advertised-routes json"
  - Added "network" field.

4. "show bgp ipv4/ipv6 summary json"
  - Added "pfxSnt" for peers. This count is obtained from corresponding
    update_subgroup.

5. "show bgp neighbor json"
  - Added "sentPrefixCounter"

Signed-off-by: Ameya Dharkar <adharkar@vmware.org>
5 years agozebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:49:34 +0000 (10:49 -0700)]
zebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4)

The new cli for show output

Signed-off-by: vishaldhingra vdhingra@vmware.com
5 years agozebra: vrf aware routmap is missing in Zebra #2802(Part 3 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:48:23 +0000 (10:48 -0700)]
zebra: vrf aware routmap is missing in Zebra #2802(Part 3 of 4)

The cli changes to allow this to work.

Signed-off-by: vishaldhingra vdhingra@vmware.com
5 years agozebra: vrf aware routmap is missing in Zebra #2802(Part 2 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:46:55 +0000 (10:46 -0700)]
zebra: vrf aware routmap is missing in Zebra #2802(Part 2 of 4)

Function parameter replacement of using zvrf instead of vrf_id

Signed-off-by: vishaldhingra vdhingra@vmware.com
5 years ago zebra: vrf aware routmap is missing in Zebra #2802(Part 1 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:44:55 +0000 (10:44 -0700)]
 zebra: vrf aware routmap is missing in Zebra #2802(Part 1 of 4)

 Work to handle the route-maps, namely the header changes in zebra_vrf.h
 and the mapping of using that everywhere

Signed-off-by: vishaldhingra vdhingra@vmware.com
5 years agolib, vtysh: Allow notification across multiple lines of failure
Donald Sharp [Thu, 11 Oct 2018 13:43:32 +0000 (09:43 -0400)]
lib, vtysh: Allow notification across multiple lines of failure

When reading in config files and we have failures on multiple
lines actually note the actual failure lines and return them.
This fixes an issue where we stopped counting errors after
the first one and we got missleading line numbers that
did not correspond to the actual problem.

This is fixed:
sharpd@donna ~/frr> sudo /usr/lib/frr/pimd --log=stdout -A 127.0.0.1 -f /etc/frr/pimd.conf
2018/10/11 09:41:01 PIM: VRF Created: default(0)
2018/10/11 09:41:01 PIM: pim_vrf_enable: for default
2018/10/11 09:41:01 PIM: zclient_lookup_sched_now: zclient lookup immediate connection scheduled
2018/10/11 09:41:01 PIM: zclient_lookup_new: zclient lookup socket initialized
2018/10/11 09:41:01 PIM: pimd 6.1-dev starting: vty@2611
2018/10/11 09:41:01 PIM: [EC 100663304] ERROR: No such command on config line 2: inteface lo
2018/10/11 09:41:01 PIM: [EC 100663304] ERROR: No such command on config line 3: ip igmp
2018/10/11 09:41:01 PIM: [EC 100663304] ERROR: No such command on config line 4: ip igmp join 224.1.1.1 13.13.13.2
^C2018/10/11 09:45:09 PIM: Terminating on signal SIGINT
2018/10/11 09:45:09 PIM: VRF Deletion: default(0)

Fixes: #3161
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3032 from donaldsharp/bgp_info
Lou Berger [Thu, 11 Oct 2018 13:17:31 +0000 (09:17 -0400)]
Merge pull request #3032 from donaldsharp/bgp_info

`struct bgp_info` to `struct bgp_path_info`

5 years agobgpd: Check if route-map really exists before applying to the peer
Donatas Abraitis [Fri, 14 Sep 2018 08:56:46 +0000 (11:56 +0300)]
bgpd: Check if route-map really exists before applying to the peer

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
5 years agoMerge pull request #3153 from adharkar/frr-scount
Donald Sharp [Wed, 10 Oct 2018 19:42:20 +0000 (15:42 -0400)]
Merge pull request #3153 from adharkar/frr-scount

bgpd: Incorrect sent prefix count for a split subgroup

5 years agobgpd: Incorrect sent prefix count for a split subgroup
Ameya Dharkar [Tue, 9 Oct 2018 18:56:46 +0000 (11:56 -0700)]
bgpd: Incorrect sent prefix count for a split subgroup

When a subgroup splits to form a new subgroup because of policy changes
for a peer, new subgroup copies adj out(state about advertised routes)
from the parent subgroup. At the same time, it should also copy
scount(advertised prefix count) to the new subgroup for the count to be
in sync with the adj_out for the subgroup.

Signed-off-by: Ameya Dharkar <adharkar@vmware.org>
5 years agoMerge pull request #3155 from opensourcerouting/building_instructions
Quentin Young [Wed, 10 Oct 2018 18:18:45 +0000 (14:18 -0400)]
Merge pull request #3155 from opensourcerouting/building_instructions

doc: update building instructions

5 years agoMerge pull request #3159 from pguibert6WIND/doc_draft_bgp
Quentin Young [Wed, 10 Oct 2018 18:15:15 +0000 (14:15 -0400)]
Merge pull request #3159 from pguibert6WIND/doc_draft_bgp

doc: fix warning of doc compilation with bgp draft

5 years agoMerge pull request #3154 from donaldsharp/bgp_mem_lem
Renato Westphal [Wed, 10 Oct 2018 16:08:28 +0000 (13:08 -0300)]
Merge pull request #3154 from donaldsharp/bgp_mem_lem

Bgp mem issue with martian address interface strings

5 years agodoc: simplify build instructions
Renato Westphal [Wed, 10 Oct 2018 14:07:48 +0000 (11:07 -0300)]
doc: simplify build instructions

Remove all --enable-xxx configuration flags for features that are enabled
by default.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agodoc: update build instructions for Debian 9
Renato Westphal [Wed, 10 Oct 2018 14:00:50 +0000 (11:00 -0300)]
doc: update build instructions for Debian 9

The instruction to checkout to the stable/3.0 branch doesn't belong
here.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agodoc: remove LibXML from the list of dependencies
Renato Westphal [Wed, 10 Oct 2018 13:57:30 +0000 (10:57 -0300)]
doc: remove LibXML from the list of dependencies

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agoMerge pull request #3145 from pguibert6WIND/ipv6nexthop
Donald Sharp [Wed, 10 Oct 2018 14:08:01 +0000 (10:08 -0400)]
Merge pull request #3145 from pguibert6WIND/ipv6nexthop

bgpd: in case nexthop is ipv6, set nh attribute flag in mpls vpn case

5 years agobgpd: in case nexthop is ipv6, set nh attribute flag in mpls vpn case
Philippe Guibert [Mon, 8 Oct 2018 12:15:12 +0000 (14:15 +0200)]
bgpd: in case nexthop is ipv6, set nh attribute flag in mpls vpn case

In mpls vpn import/export, the nexthop attribute should also be
recognised for ipv6 too.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agodoc: fix warning of doc compilation with bgp draft
Philippe Guibert [Wed, 10 Oct 2018 09:49:33 +0000 (11:49 +0200)]
doc: fix warning of doc compilation with bgp draft

Some draft ietf are not handle by :rfc: keyword. A workaround is
proposed, like it has been done for flowspec.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agobgpd: Cleanup memory leak with the martian address intf string
Donald Sharp [Wed, 10 Oct 2018 00:19:01 +0000 (20:19 -0400)]
bgpd: Cleanup memory leak with the martian address intf string

When cleaning up a interface string, from the linked list we were
dropping the name pointer which held the allocated martian address
intf string.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Use a more appropriate memory type for a string
Donald Sharp [Wed, 10 Oct 2018 00:16:37 +0000 (20:16 -0400)]
bgpd: Use a more appropriate memory type for a string

Track the memory type associated with the bartian address
interface a bit better, instead of using MTYPE_TMP.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Cleanup warnings issued by CI system from these changes
Donald Sharp [Wed, 3 Oct 2018 12:22:38 +0000 (08:22 -0400)]
bgpd: Cleanup warnings issued by CI system from these changes

Modify code to cleanup warnings issued by the CI system from
this series of changes.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Rename various variable names to something more appropriate
Donald Sharp [Wed, 3 Oct 2018 00:43:07 +0000 (20:43 -0400)]
bgpd: Rename various variable names to something more appropriate

ri -> pi
bi -> bpi
info -> path
info -> rmap_path ( for routemap applications )

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Convert binfo to path
Donald Sharp [Tue, 2 Oct 2018 22:34:03 +0000 (18:34 -0400)]
bgpd: Convert binfo to path

Convert the binfo variable to path.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Convert all bgp_info_XXX functions to bgp_path_XXX functions
Donald Sharp [Tue, 2 Oct 2018 22:15:34 +0000 (18:15 -0400)]
bgpd: Convert all bgp_info_XXX functions to bgp_path_XXX functions

Rename all bgp_info_XXX functions to bgp_path_XXX functions

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Convert `struct bgp_info` to `struct bgp_path_info`
Donald Sharp [Tue, 2 Oct 2018 20:41:30 +0000 (16:41 -0400)]
bgpd: Convert `struct bgp_info` to `struct bgp_path_info`

Do a straight conversion of `struct bgp_info` to `struct bgp_path_info`.
This commit will setup the rename of variables as well.

This is being done because `struct bgp_info` is not descriptive
of what this data actually is.  It is path information for routes
that we keep to build the actual routes nexthops plus some extra
information.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX
Donald Sharp [Fri, 14 Sep 2018 00:34:42 +0000 (20:34 -0400)]
bgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX

Search and replace all BGP_INFO_XXX to BGP_PATH_XXX

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Rename some BGP_PATH_XXX to BGP_PATH_SHOW_XXX
Donald Sharp [Tue, 2 Oct 2018 19:50:10 +0000 (15:50 -0400)]
bgpd: Rename some BGP_PATH_XXX to BGP_PATH_SHOW_XXX

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3077 from rgirada/ospf_2980_fix
Olivier Dugeon [Tue, 9 Oct 2018 17:07:33 +0000 (19:07 +0200)]
Merge pull request #3077 from rgirada/ospf_2980_fix

ospfd: Resolved the inconsistency behavior when “default-info origina…

5 years agoisisd: don't add deprecated bfd command
Christian Franke [Tue, 9 Oct 2018 15:59:46 +0000 (17:59 +0200)]
isisd: don't add deprecated bfd command

5 years agoMerge pull request #3037 from patrasar/2851
Quentin Young [Tue, 9 Oct 2018 15:56:26 +0000 (11:56 -0400)]
Merge pull request #3037 from patrasar/2851

bgpd: remove ip prefix from as-path, <large,ext>community-list

5 years agoMerge pull request #3143 from rgirada/fix_3124
Olivier Dugeon [Tue, 9 Oct 2018 15:52:49 +0000 (17:52 +0200)]
Merge pull request #3143 from rgirada/fix_3124

ospfd: default route got flushed after lsa refresh timer.

5 years agoospfd: issue with the "default-information originate always" command #2980
rgirada [Mon, 1 Oct 2018 11:38:01 +0000 (04:38 -0700)]
ospfd: issue with the "default-information originate always" command #2980

Made changes such that message wont be sent to zebra to validate default
route existence  if user configured with “always”.

Signed-off-by: rgirada <rgirada@vmware.com>
5 years agoMerge pull request #3132 from toreanderson/fix_routemap_prefixlist_match_doc
Quentin Young [Mon, 8 Oct 2018 18:08:06 +0000 (14:08 -0400)]
Merge pull request #3132 from toreanderson/fix_routemap_prefixlist_match_doc

doc: correct route map match for prefix lists

5 years agoospfd: default route got flushed after lsa refresh timer.
rgirada [Mon, 8 Oct 2018 06:22:58 +0000 (23:22 -0700)]
ospfd: default route got flushed after lsa refresh timer.

Default route type is not considered while  processing  lsa
refresh timer  expiry   which intern makes it flushed from lsdb.

Signed-off-by: rgirada <rgirada@vmware.com>
5 years agoMerge pull request #3125 from dslicenc/linklocal-nht
Russ White [Mon, 8 Oct 2018 01:47:01 +0000 (21:47 -0400)]
Merge pull request #3125 from dslicenc/linklocal-nht

bgpd: allow nht registration on ipv6 link-local addresses

5 years agoMerge pull request #3133 from qlyoung/bgp-fix-broken-show-community-cmds
Russ White [Mon, 8 Oct 2018 01:45:33 +0000 (21:45 -0400)]
Merge pull request #3133 from qlyoung/bgp-fix-broken-show-community-cmds

fix broken bgp community show cmds

5 years agobgpd: Do a bit better job of tracking the bgp->peerhash
Donald Sharp [Mon, 8 Oct 2018 00:34:31 +0000 (20:34 -0400)]
bgpd: Do a bit better job of tracking the bgp->peerhash

When we add/remove peers we need to do a bit better job
of tracking them in the bgp->peerhash.

1) When we have the doppelganger take over, make sure the
winner is the one represented in the peerhash.

2) When creating the doppelganger, leave the current one
in place instead of blindly replacing it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Cleanup peer->su handling
Donald Sharp [Sun, 7 Oct 2018 23:54:07 +0000 (19:54 -0400)]
bgpd: Cleanup peer->su handling

Cleanup calls where we were passing in the su for
peer creation a tiny bit.

Creating a peer from the cli will always have a conf_if *or*
a su but not both. While a doppelganger will have both.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Add ability to dump the bgp peerhash
Donald Sharp [Mon, 8 Oct 2018 00:47:42 +0000 (20:47 -0400)]
bgpd: Add ability to dump the bgp peerhash

The bgp->peerhash is a secretive bit of data that we use
to quickly lookup data about peers.  Unfortunately
since we had not way to look at it, we had no way
of knowing if it had gotten in or out of sync.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #3135 from donaldsharp/zapi_handler_cabbage
Jafar Al-Gharaibeh [Sat, 6 Oct 2018 05:20:12 +0000 (00:20 -0500)]
Merge pull request #3135 from donaldsharp/zapi_handler_cabbage

zebra: Cleanup call parameters to some functions

5 years agoMerge pull request #3119 from pacovn/Coverity_1465497_dead_code
Jafar Al-Gharaibeh [Sat, 6 Oct 2018 05:18:52 +0000 (00:18 -0500)]
Merge pull request #3119 from pacovn/Coverity_1465497_dead_code

zebra: dead code (Coverity 1465497)

5 years agozebra: Cleanup unused file
Donald Sharp [Fri, 5 Oct 2018 01:31:18 +0000 (21:31 -0400)]
zebra: Cleanup unused file

The zebra_vxlan_null.c file is never used.  Let's remove
from our build system.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoisisd: Track BFD state and take down adjacency on failure
Christian Franke [Fri, 28 Sep 2018 18:33:55 +0000 (20:33 +0200)]
isisd: Track BFD state and take down adjacency on failure

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Add debugging for BFD
Christian Franke [Fri, 28 Sep 2018 17:35:10 +0000 (19:35 +0200)]
isisd: Add debugging for BFD

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Implement BFD replay function
Christian Franke [Fri, 28 Sep 2018 15:23:30 +0000 (17:23 +0200)]
isisd: Implement BFD replay function

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Register/deregister BFD peers for adjacencies
Christian Franke [Fri, 28 Sep 2018 15:05:15 +0000 (17:05 +0200)]
isisd: Register/deregister BFD peers for adjacencies

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Write BFD config
Christian Franke [Fri, 28 Sep 2018 13:41:33 +0000 (15:41 +0200)]
isisd: Write BFD config

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Add a hook when writing interface config
Christian Franke [Fri, 28 Sep 2018 13:39:01 +0000 (15:39 +0200)]
isisd: Add a hook when writing interface config

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Add BFD configuration commands
Christian Franke [Fri, 28 Sep 2018 13:20:28 +0000 (15:20 +0200)]
isisd: Add BFD configuration commands

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Replace isis_event_adjacency_state_change with a hook
Christian Franke [Thu, 27 Sep 2018 12:23:06 +0000 (14:23 +0200)]
isisd: Replace isis_event_adjacency_state_change with a hook

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Register as BFD client
Christian Franke [Thu, 20 Sep 2018 13:38:22 +0000 (15:38 +0200)]
isisd: Register as BFD client

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
5 years agoisisd: Add forward declaration of struct isis_route_info
Christian Franke [Thu, 20 Sep 2018 13:28:23 +0000 (15:28 +0200)]
isisd: Add forward declaration of struct isis_route_info

Signed-off-by: Christian Franke <chris@opensourcerouting.org>