]>
git.puffer.fish Git - matthieu/frr.git/log
Russ White [Tue, 24 Jul 2018 23:26:13 +0000 (19:26 -0400)]
Merge pull request #2714 from qlyoung/fix-unused-variable-zserv
zebra: remove unused var in zserv.c
Quentin Young [Tue, 24 Jul 2018 21:01:29 +0000 (21:01 +0000)]
zebra: remove unused var in zserv.c
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Renato Westphal [Tue, 24 Jul 2018 20:04:47 +0000 (17:04 -0300)]
Merge pull request #2699 from sworleys/Netlink-MTU-Check
zebra: Add check for mtu on netlink RTM_NEWLINK
Russ White [Tue, 24 Jul 2018 15:55:08 +0000 (11:55 -0400)]
Merge pull request #2665 from chiragshah6/evpn_dev
bgpd: support evpn nd ext community
Donald Sharp [Tue, 24 Jul 2018 15:49:49 +0000 (11:49 -0400)]
Merge pull request #2707 from opensourcerouting/fix-srcdest-netlink-read
zebra: do not ignore ipv6 srcdest routes
Quentin Young [Tue, 24 Jul 2018 15:34:22 +0000 (11:34 -0400)]
Merge pull request #2640 from pguibert6WIND/doc_ldp
doc: add Ldp user documentation
Donald Sharp [Tue, 24 Jul 2018 12:37:52 +0000 (08:37 -0400)]
Merge pull request #2703 from opensourcerouting/ldpd-missing-command
ldpd: add missing command under the ipv6 address-family node
Christian Franke [Mon, 23 Jul 2018 01:40:42 +0000 (03:40 +0200)]
zebra: do not ignore ipv6 srcdest routes
Commit
a2ca67d1d2 consolidated IPv4 and IPv6 handling. It also applied
our ignorance for IPv4 srcdest routes onto IPv6.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Renato Westphal [Mon, 23 Jul 2018 22:10:57 +0000 (19:10 -0300)]
ldpd: add missing command under the ipv6 address-family node
Bug found by Patrick Velder.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Russ White [Mon, 23 Jul 2018 21:45:44 +0000 (17:45 -0400)]
Merge pull request #2698 from sworleys/Netlink-Filter-AFI
zebra: Add address family filters
Russ White [Mon, 23 Jul 2018 21:42:04 +0000 (17:42 -0400)]
Merge pull request #2697 from mjstapp/routemap_const
libs, daemons: use const in route-map apply
Russ White [Mon, 23 Jul 2018 21:08:43 +0000 (17:08 -0400)]
Merge pull request #2701 from FRRouting/revert-2670-feature/use_med_if_applied_for_default_route
Revert "Use metric for default-originate with route-map if applied"
Russ White [Mon, 23 Jul 2018 21:08:24 +0000 (17:08 -0400)]
Revert "Use metric for default-originate with route-map if applied"
Russ White [Mon, 23 Jul 2018 21:04:48 +0000 (17:04 -0400)]
Merge pull request #2670 from ton31337/feature/use_med_if_applied_for_default_route
Use metric for default-originate with route-map if applied
Russ White [Mon, 23 Jul 2018 20:53:34 +0000 (16:53 -0400)]
Merge pull request #2646 from AnuradhaKaruppiah/evpn-fixes
zebra: install EVPN gateway MAC as static/sticky
Russ White [Mon, 23 Jul 2018 20:50:59 +0000 (16:50 -0400)]
Merge pull request #2641 from donaldsharp/pim_igmp_dr
pimd: Do not create upstream state when not DR for igmp request
Stephen Worley [Mon, 23 Jul 2018 18:34:43 +0000 (14:34 -0400)]
Remove not needed filters and fix typos
Some more address family filters we can safely ignore
as well as typos in logger. Added AF_MPLS as filterable.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Renato Westphal [Mon, 23 Jul 2018 17:56:29 +0000 (14:56 -0300)]
Merge pull request #2668 from dslicenc/cm21722-v6-vrf-display
zebra: remove default vrf output for kernel vrf ipv6 blackhole default
Renato Westphal [Mon, 23 Jul 2018 17:46:10 +0000 (14:46 -0300)]
Merge pull request #2689 from dslicenc/vrf-exit-reload
tools: handle exit-vrf as end of context block
Stephen Worley [Fri, 20 Jul 2018 20:10:43 +0000 (16:10 -0400)]
zebra: Add check for mtu on netlink RTM_NEWLINK
Zebra needed a check for mtu from the message it
received from the kernel before adding the new link.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Stephen Worley [Thu, 19 Jul 2018 21:29:16 +0000 (17:29 -0400)]
zebra: Add address family filters
The zebra netlink socket was attempting to read netlink
messages with invalid address families in a couple areas.
Added filters and warn messages.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Mark Stapp [Mon, 23 Jul 2018 15:22:14 +0000 (11:22 -0400)]
zebra: clean up const use in bsd build
Missed a bsd/routing socket change when enforcing use of const
in some kernel-facing api calls.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Mark Stapp [Thu, 12 Jul 2018 20:05:19 +0000 (16:05 -0400)]
libs, daemons: use const in route-map apply
Use 'const prefix *' in route-map apply apis; led to some
corresponding changes in several daemons.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Donald Sharp [Mon, 23 Jul 2018 12:46:26 +0000 (08:46 -0400)]
Merge pull request #2652 from LabNConsulting/working/master/confdate_cleanup
Simplify deprecation check
Martin Winter [Fri, 20 Jul 2018 20:29:56 +0000 (22:29 +0200)]
Merge pull request #2672 from pcarana/pcarana-add-rpki-rh
RedHat spec: Add the rpki module when needed
Quentin Young [Fri, 20 Jul 2018 16:09:57 +0000 (12:09 -0400)]
Merge pull request #2692 from manuhalo/module_param_docs
doc: add cmd line param section to modules.rst
Donald Sharp [Fri, 20 Jul 2018 05:55:53 +0000 (01:55 -0400)]
Merge pull request #2690 from opensourcerouting/fix-srcdest-route-display
zebra: fix do_show_route_helper to include srcdest routes
Donald Sharp [Fri, 20 Jul 2018 05:54:10 +0000 (01:54 -0400)]
Merge pull request #2688 from pguibert6WIND/vrf_delete_on_netns_fail
zebra: cancel vrf creation if netns activation failed
Donald Sharp [Fri, 20 Jul 2018 00:05:19 +0000 (20:05 -0400)]
Merge pull request #2691 from adharkar/frr-bgp_cli
bgpd: Changes to BGP show json commands
Quentin Young [Thu, 19 Jul 2018 21:10:45 +0000 (17:10 -0400)]
Merge pull request #2687 from opensourcerouting/fix-cpp-notice-on-old-compilers
lib/compiler.h: Always define CPP_NOTICE
Ameya Dharkar [Thu, 19 Jul 2018 20:46:46 +0000 (13:46 -0700)]
bgpd: Changes to BGP show json commands
Added localRouterID to "show bgp neighbor json"
Added json O/P to "show bgp [AFI] community <community>"
Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
Christian Franke [Thu, 19 Jul 2018 19:16:06 +0000 (15:16 -0400)]
zebra: fix do_show_route_helper to include srcdest routes
Don Slice [Thu, 19 Jul 2018 18:26:38 +0000 (18:26 +0000)]
tools: handle exit-vrf as end of context block
Ticket: CM-21048
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Emanuele Di Pascale [Thu, 19 Jul 2018 16:28:25 +0000 (18:28 +0200)]
doc: add cmd line param section to modules.rst
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Jafar Al-Gharaibeh [Thu, 19 Jul 2018 15:54:33 +0000 (10:54 -0500)]
Merge pull request #2679 from qlyoung/fix-zapi-fuzzing
Fix zapi fuzzing
Philippe Guibert [Thu, 19 Jul 2018 15:51:41 +0000 (17:51 +0200)]
zebra: cancel vrf creation if netns activation failed
To keep configuration consistent, vrf that have not been able to be
associated with netns are removed.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Jafar Al-Gharaibeh [Thu, 19 Jul 2018 15:47:10 +0000 (10:47 -0500)]
Merge pull request #2635 from donaldsharp/more_pim_neighbor
More pim neighbor
Donald Sharp [Thu, 19 Jul 2018 15:41:23 +0000 (11:41 -0400)]
Merge pull request #2686 from opensourcerouting/master-fix-isis-issue-2584
isisd: don't crash when isis_sock_init fails
Christian Franke [Tue, 17 Jul 2018 19:14:54 +0000 (15:14 -0400)]
isisd: don't crash when isis_sock_init fails
When isis_sock_init fails in isis_circuit_up, isis_circuit_down would
be called to cancel timers which were scheduled. However
isis_circuit_down would immediately return, since the state had not been
changed to 'UP' yet.
Fix this by having isis_circuit_down always cancel all the timers.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 19 Jul 2018 14:09:17 +0000 (10:09 -0400)]
lib/compiler.h: Always define CPP_NOTICE
On old compilers CPP_NOTICE should be a macro evaluating to an empty
statement, instead of being undefined.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Donald Sharp [Thu, 19 Jul 2018 12:50:01 +0000 (08:50 -0400)]
Merge pull request #2608 from pacovn/PVS-Studio_dead_code_1
eigrpd lib pimd zebra: dead code (PVS-Studio)
Donatas Abraitis [Wed, 18 Jul 2018 04:35:23 +0000 (07:35 +0300)]
Use metric for default-originate with route-map if applied
Signed-off-by: Donatas Abraitis donatas.abraitis@gmail.com
Donald Sharp [Wed, 18 Jul 2018 19:36:53 +0000 (15:36 -0400)]
Merge pull request #2678 from pguibert6WIND/sanity_netns
zebra: sometimes, it is not possible to assign a NSID to a vrf
Quentin Young [Wed, 18 Jul 2018 16:39:20 +0000 (16:39 +0000)]
zebra: fix some cli option descriptions
Couple typos / clarity fixes.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Quentin Young [Wed, 18 Jul 2018 16:32:07 +0000 (16:32 +0000)]
zebra: fix zapi fuzzing infra
Some of this stuff got broken with the introduction of pthreads.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Philippe Guibert [Wed, 18 Jul 2018 15:58:45 +0000 (17:58 +0200)]
zebra: sometimes, it is not possible to assign a NSID to a vrf
This test case happens in scenarios with mininet, where external netns
may be impossible for the local instance to be modified. The error is
ignored and the netns parsed is ignored too.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Don Slice [Wed, 18 Jul 2018 13:05:50 +0000 (13:05 +0000)]
zebra: fix nexthop type check for kernel default route display
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Chirag Shah [Sat, 7 Jul 2018 04:46:46 +0000 (21:46 -0700)]
bgpd: support evpn nd ext community
EVPN ND ext community support NA flag R-bit, to have proxy ND.
Set R-bit in EVPN NA if a given router is default gateway or there is a
local
router attached, which can be determine based on local neighbor entry.
Implement BGP ext community attribute to generate and parse R-bit and
pass along zebra to program neigh entry in kernel.
Upon receiving MAC/IP update with community type 0x06 and sub_type 0x08,
pass the R-bit to zebra to program neigh entry.
Set NTF_ROUTER in neigh entry and inform kernel to do proxy NA for EVPN.
Ref:
https://tools.ietf.org/html/draft-ietf-bess-evpn-na-flags-01
Ticket:CM-21712, CM-21711
Reviewed By:
Testing Done:
Configure Local vni enabled L3 Gateway, which would act as router,
checked
show evpn arp-cache vni x ip <ip of svi> on originated and remote VTEPs.
"Router" flag is set.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Quentin Young [Tue, 17 Jul 2018 18:51:48 +0000 (14:51 -0400)]
Merge pull request #2669 from netravnen/hotfix/documentation/activate-bgp-rpki
doc: Update rpki.rst for how-to enable rpki module
pcarana [Tue, 17 Jul 2018 17:49:14 +0000 (12:49 -0500)]
RedHat spec: Add the rpki module when needed
Additional help complementing #2669, this adds the rpki module to the bgpd daemon at RPM creation.
Christoffer [Tue, 17 Jul 2018 16:43:49 +0000 (18:43 +0200)]
doc: Update rpki.rst for how-to enable rpki module
It has not been properly documented yet how to enable the RPKI module with BGP when having installed FRR with RPKI support. This PR seeks to add a section to the user documentation about this. So users will not have to resolve to searching the internet and looking through the FROG mailing list threads for answers.
Quentin Young [Tue, 17 Jul 2018 15:19:13 +0000 (11:19 -0400)]
Merge pull request #2625 from pguibert6WIND/ipv4_ipv6_bgp_show
doc: add more information about show ip bgp and show bgp
Lou Berger [Tue, 17 Jul 2018 15:02:42 +0000 (11:02 -0400)]
Merge pull request #2647 from pguibert6WIND/fix_routemap_vpnv4
bgpd: ability to set vpnv4 nexthop with route-map
Don Slice [Tue, 17 Jul 2018 14:20:52 +0000 (14:20 +0000)]
zebra: remove default vrf output for kernel vrf ipv6 blackhole default
It was reported that "show ipv6 route vrf <vrfname>", "show ipv6 route
vrf <vrfname> ::/0 " or "show ipv6 route vrf <vrfname> json" all
displayed that the nexthop was in the default vrf. This was because
the kernel netlink messages would supply the RTA_OIF of the loopback
interface for the kernel-created default route for the vrf, where ipv4
did not supply any RTA_OIF. This fix suppresses the display if the
nexthop and route entry are in different vrfs and the nexthop is
NEXTHOP_TYPE_BLACKHOLE.
Ticket: CM-21722
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Renato Westphal [Sat, 14 Jul 2018 14:48:40 +0000 (11:48 -0300)]
Merge pull request #2589 from donaldsharp/admiral_ACK_bar
Netlink sockets are synchronous
Renato Westphal [Sat, 14 Jul 2018 14:47:54 +0000 (11:47 -0300)]
Merge pull request #2658 from mjstapp/srcdest_test_const
tests: align with srcdest lib changes, remove bgp binary
Mark Stapp [Fri, 13 Jul 2018 11:56:38 +0000 (07:56 -0400)]
tests: add test_bgp_table to gitignore
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Donald Sharp [Fri, 29 Jun 2018 13:49:08 +0000 (09:49 -0400)]
zebra: Remove need for ACK for netlink messages
Kernel requests via netlink are synchronous.
Therefore we do not need to specify a need for a ACK and
we can make the netlink_cmd NONBLOCKING
1) If the netlink message is going to cause an error
we will still get one. Since results from the kernel
are synchronous we will get the error message on the
netlink_cmd socket and handle it
2) If the netlink message is going to send more than
one packet we will still get them all. Since the results
from the kernel are synchronous we will receive all data.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Fri, 29 Jun 2018 11:33:39 +0000 (07:33 -0400)]
zebra: Listen to error codes from netlink_socket
When creating a netlink_socket, listen to error
codes and abandon ship if it crashes and burns.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Fri, 13 Jul 2018 02:22:34 +0000 (22:22 -0400)]
Merge pull request #2595 from pguibert6WIND/fix_netlink_rx_route_vrfnetns
zebra: upon RTM_NEWROUTE/DELROUTE, find appropriate interface
Renato Westphal [Thu, 12 Jul 2018 21:39:09 +0000 (18:39 -0300)]
Merge pull request #2660 from sworleys/master
zebra: Fix function call in fuzzing code
Stephen Worley [Thu, 12 Jul 2018 16:39:13 +0000 (12:39 -0400)]
zebra: Fix function call in fuzzing code
The fuzzing code was calling zebra_client_create which was refactored to zserv_client_create.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Mark Stapp [Thu, 12 Jul 2018 13:51:52 +0000 (09:51 -0400)]
tests: align with srcdest lib changes, remove bgp binary
Align the srcdest table test with recent api changes that use
'const' more strictly. Remove test_bgp_table binary - looks
as if it was committed by mistake.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Quentin Young [Wed, 11 Jul 2018 17:34:52 +0000 (13:34 -0400)]
Merge pull request #2469 from ajones-rvbd/ajones-issue-2442
unit tests: support code coverage instrumentation and reports
Donald Sharp [Wed, 11 Jul 2018 14:45:52 +0000 (10:45 -0400)]
Merge pull request #2655 from mjstapp/lib_const_prefix
zebra, libs: use const prefix ptrs in apis
Mark Stapp [Tue, 10 Jul 2018 20:02:03 +0000 (16:02 -0400)]
zebra, libs: use const prefix ptrs in apis
Add 'const' to prefix args to several zebra route update,
redistribution, and route owner notification apis.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Martin Winter [Wed, 11 Jul 2018 00:39:15 +0000 (17:39 -0700)]
Merge pull request #2651 from qlyoung/doc-cleanup-release-process
doc: cleanup maintainer release document
Russ White [Tue, 10 Jul 2018 22:50:47 +0000 (18:50 -0400)]
Merge pull request #2627 from rtrlib/revalidation
bgpd: rpki revalidation
Donald Sharp [Tue, 10 Jul 2018 22:20:00 +0000 (18:20 -0400)]
Merge pull request #2650 from mjstapp/nh_iter
libs: add ALL_NEXTHOPS_PTR iterator macro
Russ White [Tue, 10 Jul 2018 20:46:00 +0000 (16:46 -0400)]
Merge pull request #2591 from LabNConsulting/working/master/bgp-delayed-default-instance
bgpd: fix NULL dereference in vrf-vpn leak config if before default instance
Lou Berger [Tue, 10 Jul 2018 20:02:59 +0000 (16:02 -0400)]
ospf6d: remove VERSION_TYPE_DEV from CONFDATE checks
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Tue, 10 Jul 2018 20:02:59 +0000 (16:02 -0400)]
bgpd: remove VERSION_TYPE_DEV from CONFDATE checks
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Tue, 10 Jul 2018 20:02:58 +0000 (16:02 -0400)]
lib: remove VERSION_TYPE_DEV from CONFDATE checks
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Tue, 10 Jul 2018 20:01:35 +0000 (16:01 -0400)]
doc: update doc to no longer requires use of VERSION_TYPE_DEV
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Tue, 10 Jul 2018 20:01:04 +0000 (16:01 -0400)]
*: VERSION_TYPE no longer needed -- remove it
Signed-off-by: Lou Berger <lberger@labn.net>
Lou Berger [Tue, 10 Jul 2018 19:43:09 +0000 (15:43 -0400)]
*: ignore deprecated code statments in release versions
by setting CONFDATE to 0
Signed-off-by: Lou Berger <lberger@labn.net>
Quentin Young [Tue, 10 Jul 2018 19:39:49 +0000 (15:39 -0400)]
Merge pull request #2553 from opensourcerouting/release_proc
doc: Add document for Release Build by maintainer
Quentin Young [Tue, 10 Jul 2018 19:38:11 +0000 (19:38 +0000)]
doc: cleanup maintainer release document
* Sphinx numbered lists use 1. not 1)
* Indents are three spaces
* Blocks under lists should be indented along with the rest of the list
content
* Sphinx converts :: to : when used as a code block marker
* Apply some preformatted markup to things that should be preformatted
* Remove trailing whitespace
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Mark Stapp [Tue, 12 Jun 2018 20:33:30 +0000 (16:33 -0400)]
libs: add ALL_NEXTHOPS_PTR iterator macro
Because sometimes we have a pointer to a nexthop_group.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Philippe Guibert [Tue, 10 Jul 2018 12:34:44 +0000 (14:34 +0200)]
lib: remove if_lookup_by_index portion of code with unknown vrf
This function should be called with a known vrf_id. All other cases, the
other API should be called.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Thu, 5 Jul 2018 08:04:48 +0000 (10:04 +0200)]
zebra: mpls entry interface lookup adaptation for vrf backend
The search algorithm for interface based on ifindex only is adapted to
vrf netns based too. Only the default netns will be used to search the
interface index.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Thu, 5 Jul 2018 08:02:57 +0000 (10:02 +0200)]
zebra: pbr rule lookup index adaptation for vrf netns
the interface lookup based on ifindex in the case the target vrf is
unknown is using the generic vrf api. Like that, in the case of vrf
based netns, the search across different netns other than the default
one are not searched.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Mon, 2 Jul 2018 08:33:00 +0000 (10:33 +0200)]
zebra: upon RTM_NEWROUTE/DELROUTE, find appropriate interface
The interface lookup algorithm is different according to if we are on
netns vrf or not. If we are on the former case, then we only have to
parse the interfaces of the netns, while if we are on the other case, we
have to parse all the interfaces of all the vrfs ( since index is not
overlapping in the latter case).
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Renato Westphal [Tue, 10 Jul 2018 13:47:43 +0000 (10:47 -0300)]
Merge pull request #2643 from qlyoung/doc-workflow-reviews
doc: add dev docs on code review practices
Philippe Guibert [Tue, 10 Jul 2018 13:22:13 +0000 (15:22 +0200)]
bgpd: ability to set vpnv4 nexthop with route-map
Ability to set nexthop IP pointer with route-map.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Mon, 9 Jul 2018 09:51:52 +0000 (11:51 +0200)]
doc: add Ldp user documentation
This commit gathers some basic information on how to configure and setup
Ldp, as well as depict some main principles for that protocol.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Philippe Guibert [Wed, 4 Jul 2018 15:49:09 +0000 (17:49 +0200)]
doc: add more information about show ip bgp and show bgp
Add some information to inform the user that one can either display ipv4
or ipv6 routing table, with the above commands.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Martin Winter [Thu, 21 Jun 2018 21:01:43 +0000 (14:01 -0700)]
doc: Add document for Release Build by maintainer
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Anuradha Karuppiah [Tue, 10 Jul 2018 00:44:44 +0000 (17:44 -0700)]
zebra: install EVPN gateway MAC as static/sticky
SVI interface ip/hw address is advertised by the GW VTEP (say TORC11) with
the default-GW community. And the rxing VTEP (say TORC21) installs the GW
MAC as a dynamic FDB entry. The problem with this is a rogue packet from a
server with the GW MAC as source can cause a station move resulting in
TORC21 hijacking the GW MAC address and blackholing all inter rack traffic.
Fix is to make the GW MAC "sticky" pinning it to the GW VTEP (TORC11). This
commit does it by installing the FDB entry as static if the MACIP route is
received with the default-GW community (mimics handling of
mac-mobility-with-sticky community)
Sample output with from TORC12 with TORC11 setup as gateway -
root@TORC21:~# net show evpn mac vni 1004 mac 00:00:5e:00:01:01
MAC: 00:00:5e:00:01:01
Remote VTEP: 36.0.0.11 Remote-gateway Mac
Neighbors:
45.0.4.1
fe80::200:5eff:fe00:101
2001:fee1:0:4::1
root@TORC21:~# bridge fdb show |grep 00:00:5e:00:01:01|grep 1004
00:00:5e:00:01:01 dev vx-1004 vlan 1004 master bridge static
00:00:5e:00:01:01 dev vx-1004 dst 36.0.0.11 self static
root@TORC21:~#
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Ticket: CM-21508
Donald Sharp [Mon, 9 Jul 2018 13:22:56 +0000 (09:22 -0400)]
pimd: Do not create upstream state when not DR for igmp request
When we receive a IGMP report on an interface, do not create upstream
state for that request, unless we are the DR for the incoming interface.
This will prevent a interface on a LAN segment from causing traffic
to flow to itself.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Quentin Young [Mon, 9 Jul 2018 19:43:32 +0000 (15:43 -0400)]
Merge pull request #2636 from ppmathis/cleanup/bgpd
bgpd: Cleanup of bgp daemon code
Renato Westphal [Mon, 9 Jul 2018 19:02:47 +0000 (16:02 -0300)]
Merge pull request #2637 from donaldsharp/pim_malloc_me
pimd: Remove unnecessary alloc failures
Quentin Young [Mon, 9 Jul 2018 17:47:25 +0000 (17:47 +0000)]
doc: add dev docs on code review practices
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Renato Westphal [Mon, 9 Jul 2018 18:29:33 +0000 (15:29 -0300)]
Merge pull request #2642 from donaldsharp/deprecated
ospfd: Remove deprecated code
Quentin Young [Mon, 9 Jul 2018 17:55:33 +0000 (13:55 -0400)]
Merge pull request #2632 from ppmathis/bugfix/bgp-autoshut
bgpd: Fix bgp auto-shutdown behavior
Donald Sharp [Mon, 9 Jul 2018 16:22:21 +0000 (12:22 -0400)]
ospfd: Remove deprecated code
This code has been deprecated for over a year, let's remove it now.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Sun, 8 Jul 2018 16:09:21 +0000 (12:09 -0400)]
pimd: Remove unnecessary alloc failures
Remove from pim unnecessary alloc failure testing
as that alloc failure will cause an assert.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Pascal Mathis [Sat, 7 Jul 2018 20:34:25 +0000 (22:34 +0200)]
bgpd: Cleanup of bgp daemon code
This commit removes various parts of the bgpd implementation code which
are unused/useless, e.g. unused functions, unused variable
initializations, unused structs, ...
Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
Donald Sharp [Sat, 7 Jul 2018 20:00:48 +0000 (16:00 -0400)]
pimd: Fix up > 80 columns
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Sat, 7 Jul 2018 14:04:30 +0000 (10:04 -0400)]
pimd: Make code consistent in regards to lookup
In places where we do a pim_ecmp_nexthop_search, also
use pim_ecmp_nexthop_lookup instead of the single path
case of pim_nexthop_lookup.
This is in preparation of more serious surgery to fix
the weird api of pim_find_or_track_nexthop.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>