]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
7 years agobgpd: remove encap safi show commands
Lou Berger [Tue, 23 May 2017 19:11:30 +0000 (15:11 -0400)]
bgpd: remove encap safi show commands

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: remove additional instance of BGP_ENCAP(v6)_NODE
Lou Berger [Tue, 23 May 2017 19:58:10 +0000 (15:58 -0400)]
bgpd: remove additional instance of BGP_ENCAP(v6)_NODE

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd rfapi: remove ability to configure use of encap-safi (continue to use encap...
Lou Berger [Tue, 23 May 2017 19:02:31 +0000 (15:02 -0400)]
bgpd rfapi: remove ability to configure use of encap-safi (continue to use encap attribute)

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: remove support for ipv4|6 encap safi config
Lou Berger [Tue, 23 May 2017 19:01:54 +0000 (15:01 -0400)]
bgpd: remove support for ipv4|6 encap safi config

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agovtysh: remove BGP_ENCAP(V6)_NODE
Lou Berger [Tue, 23 May 2017 19:01:09 +0000 (15:01 -0400)]
vtysh: remove BGP_ENCAP(V6)_NODE

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agolib: remove BGP_ENCAP(V6)_NODE
Lou Berger [Tue, 23 May 2017 19:00:53 +0000 (15:00 -0400)]
lib: remove BGP_ENCAP(V6)_NODE

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #582 from qlyoung/ospf6-df-areaid
David Lamparter [Mon, 22 May 2017 15:45:29 +0000 (17:45 +0200)]
Merge pull request #582 from qlyoung/ospf6-df-areaid

ospf6d: remember format for ospf6 area id

7 years agoMerge pull request #581 from donaldsharp/zebra
David Lamparter [Mon, 22 May 2017 15:44:33 +0000 (17:44 +0200)]
Merge pull request #581 from donaldsharp/zebra

Zebra

7 years agoMerge pull request #596 from donaldsharp/bgp_vrf_terminate
David Lamparter [Mon, 22 May 2017 15:40:26 +0000 (17:40 +0200)]
Merge pull request #596 from donaldsharp/bgp_vrf_terminate

bgpd: Fix crash when going down

7 years agovtysh: fix autocompletion API misuse
David Lamparter [Sat, 20 May 2017 14:50:52 +0000 (16:50 +0200)]
vtysh: fix autocompletion API misuse

I forgot to update this call when I changed
cmd_variable_handler_register to take an array...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #592 from opensourcerouting/bgpd-invalid-nexthops
Donald Sharp [Sat, 20 May 2017 16:56:17 +0000 (12:56 -0400)]
Merge pull request #592 from opensourcerouting/bgpd-invalid-nexthops

Bgpd invalid nexthops

7 years agoMerge pull request #594 from opensourcerouting/fix-mpls-build
Donald Sharp [Sat, 20 May 2017 13:04:22 +0000 (09:04 -0400)]
Merge pull request #594 from opensourcerouting/fix-mpls-build

zebra: build mpls sources the right way

7 years agobgpd: Fix crash when going down 596/head
Donald Sharp [Sat, 20 May 2017 12:22:23 +0000 (08:22 -0400)]
bgpd: Fix crash when going down

When bgp is sent a SIGINT signal with vrf's configured
bgp proceeds to crash on the way down.  This is because
the bm->bgp list was deleted( but the pointer was kept around)
and then later in the going down process vrf_terminate is called
which attempts to find any associated processes.  Since memory
has been freed and subsuquently used for something else
we get a corrupt bgp pointer and bgp crashes.

Here is the trace:

(gdb) bt
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    at sigevent.c:255
    at thread.c:1315
(gdb)

Multiple protocols besides bgp and zebra running are needed to make
this happen as well.  So a weird timing related issue?

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agozebra: build mpls sources the right way 594/head
Renato Westphal [Fri, 19 May 2017 22:10:42 +0000 (19:10 -0300)]
zebra: build mpls sources the right way

zebra_mpls_null.c should contain only dummy replacements for
platform-specific functions that may not be available on some systems
(e.g. add/delete LSPs in the kernel).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agobgpd: fix sending of invalid nexthops on the wire 592/head
Renato Westphal [Fri, 19 May 2017 13:51:00 +0000 (10:51 -0300)]
bgpd: fix sending of invalid nexthops on the wire

The bpacket_reformat_for_peer() function rewrites the nexthop of outgoing
route updates on a per-peer basis in order to handle route-maps ("set
ip next-hop") and locally-originated routes missing a nexthop.

In the latter case, RFC 4271 says the following: "When announcing a
locally-originated route to an internal peer, the BGP speaker SHOULD use
the interface address of the router through which the announced network
is reachable for the speaker as the NEXT_HOP".

We were doing this for regular IPv4/IPv6 routes, but not for
VPN/EVPN/ENCAP routes, which were being announced with invalid nexthops
(0.0.0.0 or ::).

This patch fixes this problem.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agobgpd: fix display of encap routes in the running configuration
Renato Westphal [Fri, 19 May 2017 19:51:46 +0000 (16:51 -0300)]
bgpd: fix display of encap routes in the running configuration

Static encap routes don't have an MPLS label. Also, use %u instead of
%d to print the label.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agobgpd: add network commands for encapv6
Renato Westphal [Fri, 19 May 2017 15:34:26 +0000 (12:34 -0300)]
bgpd: add network commands for encapv6

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoospf6d: remember format for ospf6 area id 582/head
Quentin Young [Thu, 18 May 2017 17:27:09 +0000 (17:27 +0000)]
ospf6d: remember format for ospf6 area id

If the user enters a decimal, display a decimal.
If the user enters a dotted quad, display a dotted quad.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agobgpd: remove unused str2tag() function
Renato Westphal [Fri, 19 May 2017 13:49:24 +0000 (10:49 -0300)]
bgpd: remove unused str2tag() function

This function is not used anymore since commit fb1d2a2d9.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agobgpd: add missing white space in debug message
Renato Westphal [Fri, 19 May 2017 13:48:16 +0000 (10:48 -0300)]
bgpd: add missing white space in debug message

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoMerge remote-tracking branch 'origin/stable/3.0'
Donald Sharp [Fri, 19 May 2017 13:41:15 +0000 (09:41 -0400)]
Merge remote-tracking branch 'origin/stable/3.0'

7 years agoMerge pull request #584 from LabNConsulting/working/3.0/patch/configVpnTags-v2
Renato Westphal [Fri, 19 May 2017 13:38:03 +0000 (10:38 -0300)]
Merge pull request #584 from LabNConsulting/working/3.0/patch/configVpnTags-v2

bgpd: Address some issues seen while encoding VPN static routes (Issue #572)  -- V2

7 years agoMerge pull request #588 from opensourcerouting/nhrpd-20170519
Donald Sharp [Fri, 19 May 2017 12:33:07 +0000 (08:33 -0400)]
Merge pull request #588 from opensourcerouting/nhrpd-20170519

nhrpd: configure mgre ipv6 nd for nhrp

7 years agoMerge remote-tracking branch 'origin/stable/3.0'
Donald Sharp [Fri, 19 May 2017 12:09:42 +0000 (08:09 -0400)]
Merge remote-tracking branch 'origin/stable/3.0'

7 years agobgpd: set NH len for ipv4 vpn|encap statics 584/head
Lou Berger [Fri, 19 May 2017 11:56:13 +0000 (07:56 -0400)]
bgpd: set NH len for ipv4 vpn|encap statics

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #586 from donaldsharp/msdp_crashalicious
David Lamparter [Fri, 19 May 2017 11:38:48 +0000 (13:38 +0200)]
Merge pull request #586 from donaldsharp/msdp_crashalicious

pimd: Fix crash from cli missinterpertation

7 years agonhrpd: configure mgre ipv6 nd for nhrp 588/head
Timo Teräs [Fri, 19 May 2017 11:08:35 +0000 (14:08 +0300)]
nhrpd: configure mgre ipv6 nd for nhrp

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agopimd: Fix crash from cli missinterpertation 586/head
Donald Sharp [Fri, 19 May 2017 03:06:12 +0000 (23:06 -0400)]
pimd: Fix crash from cli missinterpertation

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobgpd: fix ipv4|6 vpn|encap with route-map show config
Lou Berger [Thu, 18 May 2017 21:53:06 +0000 (17:53 -0400)]
bgpd: fix ipv4|6 vpn|encap with route-map show config

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgp: don't put empty encap or vnc attributes on the wire
Lou Berger [Thu, 18 May 2017 13:45:48 +0000 (09:45 -0400)]
bgp: don't put empty encap or vnc attributes on the wire

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: repalce direct calls to system memory functions
Lou Berger [Thu, 18 May 2017 13:06:47 +0000 (09:06 -0400)]
bgpd: repalce direct calls to system memory functions

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: cleanup vpn label config, set BoS, use 'label' in place of 'tag'
Lou Berger [Thu, 18 May 2017 12:56:26 +0000 (08:56 -0400)]
bgpd: cleanup vpn label config, set BoS, use 'label' in place of 'tag'

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoldpd: use frr_init()
David Lamparter [Wed, 17 May 2017 19:34:01 +0000 (21:34 +0200)]
ldpd: use frr_init()

Without this, modules aren't loaded.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: fix __attribute__ typo
David Lamparter [Wed, 17 May 2017 17:19:56 +0000 (19:19 +0200)]
lib: fix __attribute__ typo

__attribute breaks pycparser

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: qobj: MT-guard with rwlock
David Lamparter [Mon, 8 May 2017 04:07:52 +0000 (06:07 +0200)]
lib: qobj: MT-guard with rwlock

Make qobj_* calls MT-Safe/LF-Blocking.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: detangle protocol name/instance from logging
David Lamparter [Mon, 8 May 2017 01:06:07 +0000 (03:06 +0200)]
lib: detangle protocol name/instance from logging

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #571 from donaldsharp/nhrp
David Lamparter [Thu, 18 May 2017 17:24:29 +0000 (19:24 +0200)]
Merge pull request #571 from donaldsharp/nhrp

Nhrp

7 years agoMerge pull request #573 from donaldsharp/pim_crash_a_boo
David Lamparter [Thu, 18 May 2017 17:22:03 +0000 (19:22 +0200)]
Merge pull request #573 from donaldsharp/pim_crash_a_boo

pimd: Thread changes allow pim to crash a boo

7 years agodoc: Add some documentation for 'show zebra' 581/head
Donald Sharp [Thu, 18 May 2017 17:16:58 +0000 (13:16 -0400)]
doc: Add some documentation for 'show zebra'

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agozebra: Add code to track kernel interactions
Donald Sharp [Thu, 18 May 2017 17:13:32 +0000 (13:13 -0400)]
zebra: Add code to track kernel interactions

Allow zebra to track kernel interactions.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoospf6d: Make 'show zebra' 'show ipv6 ospf6 zebra'
Donald Sharp [Thu, 18 May 2017 15:03:21 +0000 (11:03 -0400)]
ospf6d: Make 'show zebra' 'show ipv6 ospf6 zebra'

The 'show zebra' command really shouldn't be owned
by ospf6.  This command is a specialized command
to show some basic information about ospf6 and zebra
so limit it to ospf6.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge remote-tracking branch 'origin/master' into pim_crash_a_boo 573/head
Donald Sharp [Thu, 18 May 2017 13:45:57 +0000 (09:45 -0400)]
Merge remote-tracking branch 'origin/master' into pim_crash_a_boo

7 years agopimd: Address PR Comments
Donald Sharp [Thu, 18 May 2017 13:44:09 +0000 (09:44 -0400)]
pimd: Address PR Comments

Remove a bit more dead code and unused variable.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agopimd: Fix indentation issue that is causing clang unhappiness
Donald Sharp [Thu, 18 May 2017 12:56:40 +0000 (08:56 -0400)]
pimd: Fix indentation issue that is causing clang unhappiness

The indentation of ifjoin_to_noinfo was not consistent with
the rest of the function and caused clang to loose it's mind

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agopimd: Fix indentation issue that is causing clang unhappiness
Donald Sharp [Thu, 18 May 2017 12:56:40 +0000 (08:56 -0400)]
pimd: Fix indentation issue that is causing clang unhappiness

The indentation of ifjoin_to_noinfo was not consistent with
the rest of the function and caused clang to loose it's mind

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agozebra: fix label manager merge snafu
David Lamparter [Thu, 18 May 2017 12:51:56 +0000 (14:51 +0200)]
zebra: fix label manager merge snafu

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agonhrpd: announce ipv6 routes to zebra 571/head
Timo Teräs [Thu, 18 May 2017 09:00:22 +0000 (12:00 +0300)]
nhrpd: announce ipv6 routes to zebra

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
7 years agoMerge branch 'stable/3.0'
David Lamparter [Thu, 18 May 2017 12:14:00 +0000 (14:14 +0200)]
Merge branch 'stable/3.0'

Conflicts:
ldpd/lde.c
zebra/label_manager.c

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoRevert "bgpd: resolve ipv6 ecmp issue with vrfs and ll nexthop"
David Lamparter [Thu, 18 May 2017 12:05:53 +0000 (14:05 +0200)]
Revert "bgpd: resolve ipv6 ecmp issue with vrfs and ll nexthop"

This reverts commit fa14eb2c0b408982a6634459b3afb21e9df6326a.

This was for stable/2.0 and wasn't intended to go on stable/3.0
-- my bad, missed this in the merge.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #512 from bingen/tmp_lm_relay_async
Donald Sharp [Thu, 18 May 2017 11:09:07 +0000 (07:09 -0400)]
Merge pull request #512 from bingen/tmp_lm_relay_async

lm: Make relay label manager async

7 years agoMerge branch 'frr/pull/569'
David Lamparter [Thu, 18 May 2017 10:35:53 +0000 (12:35 +0200)]
Merge branch 'frr/pull/569'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/569'
David Lamparter [Thu, 18 May 2017 10:34:34 +0000 (12:34 +0200)]
Merge branch 'frr/pull/569'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/567'
David Lamparter [Thu, 18 May 2017 10:33:50 +0000 (12:33 +0200)]
Merge branch 'frr/pull/567'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/550'
David Lamparter [Thu, 18 May 2017 10:32:28 +0000 (12:32 +0200)]
Merge branch 'frr/pull/550'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'stable/3.0'
David Lamparter [Thu, 18 May 2017 10:28:12 +0000 (12:28 +0200)]
Merge branch 'stable/3.0'

Conflicts:
ospf6d/ospf6_lsa.c
ospfd/ospf_vty.c
zebra/interface.c

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/575'
David Lamparter [Thu, 18 May 2017 10:23:23 +0000 (12:23 +0200)]
Merge branch 'frr/pull/575'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch stable/2.0 into stable/3.0
David Lamparter [Thu, 18 May 2017 10:15:04 +0000 (12:15 +0200)]
Merge branch stable/2.0 into stable/3.0

Conflicts:
bgpd/bgp_fsm.c
ospf6d/ospf6_lsa.c
ospfd/ospf_vty.c
zebra/redistribute.c

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoPre-revert nonmergeable changes
David Lamparter [Thu, 18 May 2017 09:41:01 +0000 (11:41 +0200)]
Pre-revert nonmergeable changes

Revert "ospf6d: fix decimal area ID cli"
commit a27cb3cfe901d4f1378116bc91e6656aaed7c74c

Revert "bgpd: add back unicast option to 'address-family vpnv(4&6)' Issue #459"
commit 399598bf6b749daa15d70ad64fc885d00cde1225

Revert "Fix the memory leak"
commit d8d58e98397d8442ec68f8d715b64d5e6000b903

Revert "zebra: 'no ip route 4.1.1.19 255.255.255.255 99' is ambiguous"
commit 83f35619359379687f21c839d61121e4ebe72541

Revert "ospf6d: Allow unconfig of unknown lsa's"
commit 5b0747d71df6006835ead8e6354f70b26f7bca80

Revert "Fix the "Dead assignment" of clang SA."
commit 3a6570a1f145c49155d72a815441025085dd45ad

Revert "snapcraft: Improve README.usage.md based on feedback received"
commit 2a3a819a9c2b2c9700e6228e7352e53b3562776c

Revert "zebra: stop deregistering static nexthops unless removing the static"
commit 1dac3a9619c8436f81c7b37f0252574b0b677dd0

All of these changes do not apply on stable/3.0 due to either CLI
changes or another fix already being present.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/574'
David Lamparter [Thu, 18 May 2017 09:39:58 +0000 (11:39 +0200)]
Merge branch 'frr/pull/574'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/558'
David Lamparter [Thu, 18 May 2017 09:38:25 +0000 (11:38 +0200)]
Merge branch 'frr/pull/558'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/557'
David Lamparter [Thu, 18 May 2017 09:37:37 +0000 (11:37 +0200)]
Merge branch 'frr/pull/557'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/548' ("Pim dev 3.0 defect fixes")
David Lamparter [Thu, 18 May 2017 09:34:50 +0000 (11:34 +0200)]
Merge branch 'frr/pull/548' ("Pim dev 3.0 defect fixes")

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/546' ("bgpd: resolve issue with sending vpn labels")
David Lamparter [Thu, 18 May 2017 09:31:05 +0000 (11:31 +0200)]
Merge branch 'frr/pull/546' ("bgpd: resolve issue with sending vpn labels")

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/536'
David Lamparter [Thu, 18 May 2017 09:30:04 +0000 (11:30 +0200)]
Merge branch 'frr/pull/536'

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agobgpd: remove bgp_nexthop_afi prototype
David Lamparter [Thu, 18 May 2017 09:29:28 +0000 (11:29 +0200)]
bgpd: remove bgp_nexthop_afi prototype

as pointed out by Renato Westphal in #536

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoospf6d: fix decimal area ID cli 575/head
Quentin Young [Wed, 17 May 2017 20:31:19 +0000 (20:31 +0000)]
ospf6d: fix decimal area ID cli

Not all numbers are dotted quads

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoospf6d: fix decimal area ID cli 574/head
Quentin Young [Wed, 17 May 2017 20:31:19 +0000 (20:31 +0000)]
ospf6d: fix decimal area ID cli

Not all numbers are dotted quads

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #556 from dslicenc/bgp-fixes
Renato Westphal [Thu, 18 May 2017 00:37:01 +0000 (21:37 -0300)]
Merge pull request #556 from dslicenc/bgp-fixes

Bgp fixes

7 years agopimd: Thread changes allow pim to crash a boo
Donald Sharp [Thu, 18 May 2017 00:33:43 +0000 (20:33 -0400)]
pimd: Thread changes allow pim to crash a boo

When we add a thread pointer to thread_add_XXX functions
when the specified function is called, thread.c is setting
the thread pointer to NULL.  This was causing pim to
liberally pull it's zassert grenade pin's.

Additionally clean up code to not set the NULL pointer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agonhrp: improve CIE prefix length handling
Timo Teräs [Wed, 17 May 2017 22:36:07 +0000 (18:36 -0400)]
nhrp: improve CIE prefix length handling

RFC2332 states that prefix length MUST be 0xff for unique bindings.
However, it seems at least some Cisco firmwares use host prefix
length instead (which on wire level makes sense). Relax the handling
of prefix length to treat all value longer than address length as
0xff. Additionally treat 0x00 the same way too, this is required
by the RFC. This also fixes the prefix length address family to be
checked against protocol address.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
7 years agonhrpd: Fix crash in 'no nhrp event socket..' command
Donald Sharp [Wed, 17 May 2017 22:31:02 +0000 (18:31 -0400)]
nhrpd: Fix crash in 'no nhrp event socket..' command

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agonhrpd: Fix some missing newlines
Donald Sharp [Wed, 17 May 2017 22:30:43 +0000 (18:30 -0400)]
nhrpd: Fix some missing newlines

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #562 from dslicenc/small-zebra-fixes
David Lamparter [Wed, 17 May 2017 21:35:29 +0000 (23:35 +0200)]
Merge pull request #562 from dslicenc/small-zebra-fixes

Small zebra fixes

7 years agoMerge pull request #537 from donaldsharp/vrf_stuff
David Lamparter [Wed, 17 May 2017 20:06:39 +0000 (22:06 +0200)]
Merge pull request #537 from donaldsharp/vrf_stuff

Vrf stuff

7 years agobgpd: fix config of v6 vpn networks tags 569/head
Lou Berger [Wed, 17 May 2017 18:54:10 +0000 (14:54 -0400)]
bgpd: fix config of v6 vpn networks tags

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoeigrpd: disambiguate bandwidth command 567/head
Quentin Young [Wed, 17 May 2017 18:37:24 +0000 (18:37 +0000)]
eigrpd: disambiguate bandwidth command

eigrpd defines a bandwidth command that takes kilobits instead of
megabits which is problematic when installed in the same node as the
megabits command since (1-100000) and (1-10000000) are ambiguous

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #565 from qlyoung/fix-ldpd-vtysh-3.0
Renato Westphal [Wed, 17 May 2017 18:19:04 +0000 (15:19 -0300)]
Merge pull request #565 from qlyoung/fix-ldpd-vtysh-3.0

vtysh: fix ldpd vtysh

7 years agovtysh: fix ldpd vtysh 565/head
Quentin Young [Wed, 17 May 2017 01:53:47 +0000 (01:53 +0000)]
vtysh: fix ldpd vtysh

ldpd needs a special case to execute the correct exit command for walkup
when using vtysh

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #561 from donaldsharp/static_config2
Renato Westphal [Wed, 17 May 2017 17:18:51 +0000 (14:18 -0300)]
Merge pull request #561 from donaldsharp/static_config2

Static config2

7 years agolib: correctly handle EOF when using poll()
Quentin Young [Tue, 16 May 2017 18:17:23 +0000 (18:17 +0000)]
lib: correctly handle EOF when using poll()

Descriptor owner should handle EOF, not thread.c

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge remote-tracking branch 'origin/stable/3.0'
Donald Sharp [Wed, 17 May 2017 12:51:25 +0000 (08:51 -0400)]
Merge remote-tracking branch 'origin/stable/3.0'

7 years agobgpd: Fix vrf crash
Donald Sharp [Thu, 1 Dec 2016 13:59:16 +0000 (08:59 -0500)]
bgpd: Fix vrf crash

Ensure that we have a valid vrf before we log
information about it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
7 years agoospf6d: Fix debug line always showing up in ospf6d
Donald Sharp [Thu, 17 Nov 2016 03:17:39 +0000 (22:17 -0500)]
ospf6d: Fix debug line always showing up in ospf6d

The command 'debug ospf6 lsa unknown' was
always showing up, upon starting of the ospf6 daemon.

Remove this from happening.  Also fix some help strings
while we are in there.

Ticket: CM-7913
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobgpd: More Extended nexthop fixing
Donald Sharp [Wed, 16 Nov 2016 17:00:40 +0000 (12:00 -0500)]
bgpd: More Extended nexthop fixing

Basically if we are reading in a cli with a extended-nexthop
and we have not received from zebra the interface we are working
on I believe we have a race condition where we are not
propagating the PEER_FLAG_CAPABILITY_ENHE in this case.

Modify the code to propagate even if we haven't found the
interface yet.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobgpd: Fix ADJCHANGE message to include more info
Donald Sharp [Tue, 15 Nov 2016 15:16:52 +0000 (10:16 -0500)]
bgpd: Fix ADJCHANGE message to include more info

When bgp logs ADJCHANGE messages include the
hostname and vrf that this change is being made
in.

Ticket: CM-10922
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobgpd: Fix occassional turn off of extended-nexthop for an if
Donald Sharp [Tue, 15 Nov 2016 14:39:35 +0000 (09:39 -0500)]
bgpd: Fix occassional turn off of extended-nexthop for an if

Sometimes, like once every 400 iterations, when you restart
Quagga, extended-nexthop has been turned off for interface
based config( for 5549 ).

Examining the code, there is only 1 real path to setting
the PEER_FLAG_CAPABILITITY_ENHE and that is through
peer_conf_interface_get.  Modify this code path
to always set the PEER_FLAG_CAPABILITY_ENHE if it is
not already set.

In addition, fix a possible pointer dereference.

Ticket: CM-12929
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoChange Frr.conf to frr.conf
Daniel Walton [Wed, 10 May 2017 00:55:10 +0000 (00:55 +0000)]
Change Frr.conf to frr.conf

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agoMerge remote-tracking branch 'origin/stable/2.0'
Donald Sharp [Wed, 17 May 2017 12:32:53 +0000 (08:32 -0400)]
Merge remote-tracking branch 'origin/stable/2.0'

7 years agozebra: stop deregistering static nexthops unless removing the static 562/head
Don Slice [Tue, 14 Feb 2017 17:15:40 +0000 (09:15 -0800)]
zebra: stop deregistering static nexthops unless removing the static

Problem reported was that with some overlapping static route configurations,
when the link went down the less specific static was not re-installed after
the link came back up.  Determined that with the overlapping statics, we
would recursively resolve the next-hop temporarily thru the more specific
static route, but since the next-hop wasn't actually reachable, we would go
through the code that clears the nht information for the static completely.
This caused the nht code to no longer process the static route.

After reviewing the process, there doesn't seem to be any reason that the
static should be deregistered in that section of code.  Removed the
deregister and the problem is resolved and not addional failures seen in
manual testing.  zebra_test.py completed successfully and ospf and bgp smokes
completed with no new failures.

Ticket: CM-14873
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-5696
7 years agozebrad: Correct problem removing dead routes from rib due to NHT issue
Don Slice [Tue, 6 Dec 2016 17:29:05 +0000 (09:29 -0800)]
zebrad: Correct problem removing dead routes from rib due to NHT issue

Fix for another issue with next-hop tracking for overlapping static routes
created a problem removing the dead routes.  This fix corrects that error.

Ticket: CM-13710
Signed-off-by: Don Slice
Reviewed By: Donald Sharp
Testing Done: ospf-smoke, bgp-smoke

7 years agozebra: Move interfaces to default before deleting
Don Slice [Wed, 23 Nov 2016 19:58:27 +0000 (11:58 -0800)]
zebra: Move interfaces to default before deleting

Encountered a crash in zebra due to getting a delete on an SVI with
VRR configured.  Since we don't actually do a delete but flag the interface
as inactive, slag VRR interfaces would remain on the vrf_iflist with a lock
count of zero, causing the crash.  Since all other interface types are moved
to the default table before deleting, doing the same thing for any interfaces
that were left in the vrf.

Testing includes manual testing, bgp-min, ospf-min, vrf-min, bgp-smoke, and ospf-smoke.
All passed (first time or on rerun) or match known failures.

Ticket: CM-13288
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
7 years agopimd: Fix spelling mistake in cli 561/head
Donald Sharp [Tue, 16 May 2017 23:15:05 +0000 (19:15 -0400)]
pimd: Fix spelling mistake in cli

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobgpd: Allow 'show bgp neighbor' to indicate authentication or not
Donald Sharp [Mon, 14 Nov 2016 20:28:17 +0000 (15:28 -0500)]
bgpd: Allow 'show bgp neighbor' to indicate authentication or not

When we configure authentication.  Allow the 'show bgp neighbor'
commands( and their ilk ) to indicate that the peer has
authentication enabled.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agozebra: Consolidate static_config_ipv[4|6] into one function.
Donald Sharp [Sun, 13 Nov 2016 02:52:32 +0000 (21:52 -0500)]
zebra: Consolidate static_config_ipv[4|6] into one function.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge branch 'stable/2.0' into bgp-fixes 556/head
Don Slice [Wed, 17 May 2017 11:38:59 +0000 (07:38 -0400)]
Merge branch 'stable/2.0' into bgp-fixes

7 years agoMerge pull request #538 from qlyoung/fix-stack-access-2
Lou Berger [Wed, 17 May 2017 11:34:30 +0000 (07:34 -0400)]
Merge pull request #538 from qlyoung/fix-stack-access-2

lib: return thread * from thread_add*

7 years agoMerge pull request #549 from qlyoung/fix-poll-eof
David Lamparter [Wed, 17 May 2017 09:25:30 +0000 (11:25 +0200)]
Merge pull request #549 from qlyoung/fix-poll-eof

lib: correctly handle EOF when using poll()

7 years agoMerge pull request #545 from donaldsharp/ospf_3.0_fixes
David Lamparter [Wed, 17 May 2017 09:15:45 +0000 (11:15 +0200)]
Merge pull request #545 from donaldsharp/ospf_3.0_fixes

Ospf 3.0 fixes

7 years agoMerge pull request #553 from donaldsharp/missed_2.0
David Lamparter [Wed, 17 May 2017 09:14:48 +0000 (11:14 +0200)]
Merge pull request #553 from donaldsharp/missed_2.0

Missed 2.0

7 years agopimd: Fix input value to bool 548/head
Chirag Shah [Wed, 17 May 2017 04:57:25 +0000 (21:57 -0700)]
pimd: Fix input value to bool

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>