Commit Graph

9789 Commits

Author SHA1 Message Date
Daniel Walton
95077abf60 bgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi
If we have configured neighbor 1.1.1.1 for an afi/safi but they have not
activated that afi/safi with us then display "NoNeg" in the state column
of the summary output.  This is to make troubleshooting afi/safi
easier.

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
2018-01-10 12:15:44 -05:00
Lou Berger
d215f9a9fa
Merge pull request #1615 from qlyoung/fix-bgpd-atomic-usage
bgpd: use atomic_* ops on _Atomic variables
2018-01-09 17:03:24 -05:00
Quentin Young
0112e9e0b9
bgpd: use atomic_* ops on _Atomic variables
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-09 15:40:48 -05:00
Jafar Al-Gharaibeh
4060fcc47b
Merge pull request #1599 from chiragshah6/mdev
ospfd: Fix no passive interface command parsing
2018-01-08 11:36:45 -06:00
Jafar Al-Gharaibeh
76724ed3bc
Merge pull request #1588 from donaldsharp/msdp_return
pimd: Add finer grain return codes for configuration
2018-01-08 11:34:36 -06:00
Jafar Al-Gharaibeh
e741a61225
Merge pull request #1590 from chiragshah6/pim_dev
lib: Fix no interface cmd vrf parsing
2018-01-08 11:25:06 -06:00
Chirag Shah
9a0dfa3aa9 ospfd: Fix no passive interface command parsing
Ticket: CM-19365

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2018-01-08 08:08:36 -08:00
Donald Sharp
3abeaef71e
Merge pull request #1606 from bingen/lm_privs
ldpd: Add privs to label manager
2018-01-08 07:44:02 -05:00
Lou Berger
18823231d8
Merge pull request #1600 from donaldsharp/more_thread_yield
More thread yield
2018-01-06 18:28:46 -05:00
Donald Sharp
88b24dee19 bgpd: Ensure that io thread is running after start
The BGP IO thread must be running before other threads
can start using it.  So at startup check to see
that it running once, instead of before every
function call into.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-01-06 14:09:29 -05:00
Donald Sharp
b2140cb7c8 lib: Add pthread_yield
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-01-06 14:08:30 -05:00
Donald Sharp
bdb6f268f3
Merge pull request #1595 from dwiesner/pmsi-tunnel
bgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes
2018-01-05 14:08:29 -05:00
ßingen
7bfe377d63 ldpd: Add privs to label manager
Signed-off-by: ßingen <bingen@voltanet.io>
2018-01-05 14:08:05 +01:00
Philippe Guibert
9f465cc7a7
Merge pull request #1594 from donaldsharp/32_bit_fuckery
bgpd: fix failing to compile on 32 bit systems
2018-01-04 14:34:51 +01:00
Dario Wiesner
a21bd7a3b9 bgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes
Signed-off-by: Dario Wiesner <dario.wiesner@gmail.com>
2018-01-04 13:51:15 +01:00
Donald Sharp
8356e9b7b0 bgpd: fix failing to compile on 32 bit systems
-Werror=sign-compare is failing with signed/unsigned usage
in the conditional expression.

Fixes: #1593
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-01-04 05:45:28 -05:00
Donald Sharp
3cace9de56
Merge pull request #1592 from lihongguang/master
ospfd: fix [no] area authentication command
2018-01-03 19:45:46 -05:00
lihongguang
ca19319b2e ospfd: fix [no] area authentication command
Signed-off-by: lihongguang lhg803@163.com
2018-01-04 07:01:58 +08:00
Chirag Shah
1505b537a8 lib: Fix no interface cmd vrf parsing
For no interface <ifname> vrf VRFNAME,
vrf-name is not parsed properly.

Ticket:CM-19274

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2018-01-03 11:41:45 -08:00
Donald Sharp
9bc82f11fb
Merge pull request #1589 from lihongguang/master
ospfd: return non-zero for configuration failures
2018-01-03 11:12:34 -05:00
lihongguang
e3e0481542 ospfd: return non-zero for configuration failures
Signed-off-by: lihongguang <lhg803@163.com>
2018-01-03 22:47:28 +08:00
Donald Sharp
01841ed3a7 pimd: Add finer grain return codes for configuration
When PIM handles some MSDP commands, a repeated command
was causing a CMD_WARNING_CONFIG_FAILED.  This should
be a CMD_WARNING.  Fix the code to allow vtysh to handle
this appropriately.

Ticket: CM-19053
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-01-03 09:06:44 -05:00
Russ White
baa68bca40
Merge pull request #1584 from donaldsharp/1575_fix
zebra: Fix dest dereference
2018-01-02 11:32:09 -05:00
Russ White
82b9bf3145
Merge pull request #1569 from qlyoung/ringbuf
lib: add ring buffer
2018-01-02 09:21:37 -05:00
Donald Sharp
607425e554 zebra: Fix dest dereference
The rn can not have an rn->info pointer and as
such the dest may be NULL.  Don't assign
the old_fib pointer if so.  This is ok
because we know RNODE_FOREACH... will not
iterate if dest is NULL.

Fixes: #1575
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-01-02 09:12:07 -05:00
Russ White
d87c5805df
Merge pull request #1572 from dslicenc/bgpd-network-defpy-cm16860
bgpd: convert network statements from DEFUN to DEFPY
2018-01-02 09:02:44 -05:00
Russ White
e980cd4729
Merge pull request #1580 from chiragshah6/mdev
ospfd: Set filter to unbound debug logs
2018-01-02 08:55:28 -05:00
Russ White
eae387223a
Merge pull request #1582 from chiragshah6/mdev1
ospf6d: Fix ospf6 redist with route-map
2018-01-02 08:26:33 -05:00
Russ White
c9306977e3
Merge pull request #1583 from donaldsharp/1558-more
debianpkg: fix indentation and variable name
2018-01-02 08:22:06 -05:00
Raymond P. Burkholder
18e1d1129f debianpkg: fix indentation and variable name
Signed-off-by: Raymond P. Burkholder <github@oneunified.net>
2018-01-02 08:15:00 -05:00
Chirag Shah
c600ce450f ospf6d: Fix ospf6 redist with route-map
When ospf6 configure with redistribute connected/protocol
with route-map. Upon restart of frr.service, ospf6 receives
redistribute update then route-map update.
During redistribute route update, since route-map info is not
filled, route is suppressed from injected as external route.

Fix: reset redistribute when route-map update received
matches with redistribution (type) and route-map name.

Ticket:CM-13800
Testing Done:
Configure ospf6 redistribute with route-map to inject
Type-2 external routes into database. Trigger frr restart
redistribute with route-map happens.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2017-12-30 10:56:53 -08:00
Chirag Shah
05ba78e4d9 ospfd: Set filter to unbound debug logs
Ticket:CM-19213

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2017-12-27 10:13:38 -08:00
Quentin Young
a5080622b2
lib: add ringbuf_peek()
Peek functionality for ring buffers and associated tests.

Also:
* Slight optimization to avoid 0-byte memcpy() by changing > to >=
* Add rv checks for some ringbuf_[put|get] calls that were missing them
  in the test

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-12-26 18:50:56 -05:00
Don Slice
e2a86ad9b4 bgpd: convert network statements from DEFUN to DEFPY
Problems reported with inconsistent use of parameters for bgp network
statements.  Converted 12 DEFUNs to 2 DEFPY statements, making the
parameter use consistent with the exception of keeping the "backdoor"
keywork ipv4 only.  Also verified that if a route-map or label-index
is specified in the "no" case it matches what had been previously
defined. Manual testing looks good and bgp-smoke will be performed
before pushing.

Ticket: CM-16860
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-7056
2017-12-21 19:07:56 +00:00
Quentin Young
5318d89638
lib: add ring buffer
Simple ring buffer implementation useful for fixed size FIFO queues.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-12-19 17:12:43 -05:00
Donald Sharp
ff99c5b2bb
Merge pull request #1551 from LabNConsulting/working/master/minor-perf
bgpd: minor performance enhancement
2017-12-19 13:21:09 -05:00
Donald Sharp
2cef5184eb
Merge pull request #1563 from opensourcerouting/isis-bpf-hlen
Unbreak ISIS Hellos (FreeBSD)
2017-12-19 12:57:42 -05:00
Rafael Zalamena
e492e668b6
Merge pull request #1553 from donaldsharp/bgp_json_routes
bgpd: Speedup vtysh handling of 'show bgp afi safi json' display
2017-12-19 14:49:59 -02:00
Renato Westphal
1de057636f
Merge pull request #1567 from donaldsharp/json_fixes
Json fixes
2017-12-19 14:14:26 -02:00
Renato Westphal
fb6f7c2c25
Merge pull request #1515 from donaldsharp/selected_to_front1
Store selected_fib as a pointer off of rib_dest_t
2017-12-19 14:09:03 -02:00
Jafar Al-Gharaibeh
75d1899398
Merge pull request #1533 from donaldsharp/REALMS
Add Linux Realms and some Pim Documentation
2017-12-19 09:32:11 -06:00
Jafar Al-Gharaibeh
97c772b30b
Merge pull request #1543 from donaldsharp/pim_sg_rpt
pimd: Really, Actually send S,G rpt prune upstream
2017-12-19 09:29:44 -06:00
Donald Sharp
449feb8ef9 bgpd: Fix double free
The json code was freeing json_paths and then
turning around and free'ing it again.  Newer
versions of json-c have started to assert
this bad behavior.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-12-19 08:20:30 -05:00
Raymond P. Burkholder
fb8f41e455 bgpd: fixed '-Werror=maybe-uninitialized' warnings
- used @sharpd's slack patch as a starting point
- fixes compile time issue, but code path not tested

Signed-off-by: Raymond P. Burkholder <github@oneunified.net>
2017-12-19 08:15:44 -05:00
Rafael Zalamena
12386e86db Revert "isisd: bpf: ETHER_HDR_LEN -> ETH_ALEN"
This reverts commit d9e5b00955.

ETH_ALEN is not equivalent to ETHER_HDR_LEN. ETHER_HDR_LEN is the
definition for the length of the full ethernet header, meanwhile
ETH_ALEN is just the length of the ethernet address.

Here is the OpenBSD/FreeBSD definition for ETHER_HDR_LEN:
 #define ETHER_ADDR_LEN  6       /* Ethernet address length */
 #define ETHER_TYPE_LEN  2       /* Ethernet type field length */
 #define ETHER_HDR_LEN   ((ETHER_ADDR_LEN * 2) + ETHER_TYPE_LEN)

(OpenBSD's definition is at net/if_ether.h, FreeBSD's is at
 net/ethernet.h)

Linux definitions can be found at: net/ethernet.h
 #define ETHER_ADDR_LEN  ETH_ALEN  /* size of ethernet addr */
 #define ETHER_TYPE_LEN  2         /* bytes in type field */
 #define ETHER_HDR_LEN   ETH_HLEN  /* total octets in header */

net/if_ether.h:
 #define ETH_HLEN       14 /* Total octets in header.       */
 #define ETH_ALEN       6  /* Octets in one ethernet addr   */

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2017-12-18 13:19:08 -02:00
Rafael Zalamena
acf43bea0d
Merge pull request #1547 from donaldsharp/sa_from_clang
Sa from clang
2017-12-15 15:42:38 -02:00
Donald Sharp
8253e0a12f
Merge pull request #1549 from lucize/cross
configure: exclude some checks not needed on clippy host build
2017-12-15 11:51:45 -05:00
Rafael Zalamena
62b05982c6 Merge pull request #1535 from qlyoung/fix-coalesce-time-display
bgpd: fix config display of coalesce-time
2017-12-15 11:46:28 -02:00
Quentin Young
37a333fef1
bgpd: fix configuration of 0 for coalesce-time
Was using 0 as a sentinel value, so user couldn't configure 0 as the
value of the coalesce timer.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-12-14 16:43:31 -05:00
Donald Sharp
fe15e7a61d
Merge pull request #1554 from opensourcerouting/cover-fix1
bgpd: fix some coverity scan issues
2017-12-14 12:24:52 -05:00