Commit Graph

11179 Commits

Author SHA1 Message Date
Donald Sharp
26bb1fd528 pimd: Allow interface to move in and out of vrfs
When we get an interface move event track the correct
pim instance.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-11 18:38:01 -04:00
Donald Sharp
399495806c pimd: Cleanup all pim_ifp pointers on termination
Properly cleanup pim_ifp pointers on termination

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-11 18:36:24 -04:00
Donald Sharp
7692c5ae82 pimd: Cleanup ifchannel deletion
When we are being told to go away, cleanup ifchannel deletion
a bit better.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-11 18:36:24 -04:00
Donald Sharp
845d9af76a pimd: Cleanup msdp shutdown
Shutdown pim msdp code a bit better.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-11 18:36:24 -04:00
Donald Sharp
172e45dc30 pimd: Cleanup the deletion event a tiny bit
The pim_upstream_free command was leaving slag by
not deleting data associated with the upstream
data structure.  Modify the code to explicitly free
all data associated with an upstream on a pim instance
deletion event.  Additionally the end result is that
the pim_upstream_free command is not needed anymore

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-11 18:36:24 -04:00
Donald Sharp
5456d3b844
Merge pull request #2172 from msablic/pim_igmp_stats
pimd: show ip igmp statistics command
2018-05-11 13:48:31 -04:00
Donald Sharp
2c263b3bca
Merge pull request #2207 from ppmathis/fix/bgpd-snmp-peer-lookup
bgpd: fix and improve snmp peer lookups
2018-05-11 09:32:08 -04:00
Lou Berger
d2b349f9c8
Merge pull request #2202 from dslicenc/bgp-neigh-auto-complete
bgpd: fix auto-completion for neighbors and peer-groups
2018-05-11 08:49:17 -04:00
Donald Sharp
971c03d1ce
Merge pull request #2208 from ppmathis/fix/debianpkg-env-pager
debianpkg: improve VTYSH_PAGER environment check
2018-05-11 08:08:47 -04:00
Donald Sharp
deb253051a
Merge pull request #2212 from ppmathis/feature/implement-no-password-cmd
lib: Ported 'no (enable) password' from stable/3.0
2018-05-11 08:07:18 -04:00
Pascal Mathis
2b8e62f2db
bgpd: fix and improve snmp peer lookups
The previous implementation of bgp_peer_lookup_next did not consider the
internal ordering of peers when using peer groups, which led to all
standalone peers being skipped that had a lower IP address than the
highest IP address of a peer belonging to a group.

As the ordering of peers can not be arbitrary due to SNMP requiring
increasing OIDs when walking an OID tree, this commit fixes the bug by
properly looping through all peers and detecting the next highest IP
address.

Additionally, this commit improved both bgp_peer_lookup_next and
peer_lookup_addr_ipv4 by using the socketunion stored within the peer
struct (peer->su) instead of calling inet_pton for each peer during
comparison.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
2018-05-11 13:54:57 +02:00
Pascal Mathis
322e2d5c69
lib: Ported 'no (enable) password' from stable/3.0
The pull request #1545 from @donaldsharp introduced the command 'no
password' to remove an existing terminal connection password.
Additionally, warnings have been added to both 'no password' and 'no
enable password' to make the user aware of any security implications.

It seems that this specific pull request was never merged against master
and got lost. This commit is a cherry-pick of d4961273cb with fixed
conflicts and updated documentation.

Thanks to @donaldsharp and @pogojotz for the original PR.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
2018-05-11 02:54:30 +02:00
Pascal Mathis
332266dbd1
debianpkg: improve VTYSH_PAGER environment check
The current post-installation scripts for all Debian packages execute
grep 'VTYSH_PAGER=/bin/cat' to check if the VTYSH_PAGER variable is
present within /etc/environment.

While presence of that environment variable should be checked, the
current implementation does not handle this line being a comment (and
therefor not active) or the user picking a different VTYSH_PAGER than
/bin/cat.

This commit ensures that the environment variable can be freely changed
by the user, while still guaranteeing that it is present in the file
without being a comment.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
2018-05-11 00:03:23 +02:00
Don Slice
47a306a040 bgpd: fix auto-completion for neighbors and peer-groups
Before this fix, both real neighbors and peer-groups were lumped
together in auto-completion and it didn't work at all for
peer-groups.  This fix changes that behavior to do the right
thing.

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
2018-05-10 17:59:27 +00:00
Jafar Al-Gharaibeh
3dc755e492
Merge pull request #2195 from qlyoung/docuser
doc: update doc titles
2018-05-10 10:24:06 -05:00
Lou Berger
f3c8da18cb
Merge pull request #2075 from pguibert6WIND/doc_vrf
doc: add information about zebra VRF configuration
2018-05-10 06:56:56 -04:00
Quentin Young
f0d96d1d32 doc: update doc titles
Should be a bit easier to Google this way.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-05-09 10:44:08 -04:00
Quentin Young
216972dd3f
Merge pull request #2183 from Thomas-Gelf/fix/doc-snmp-file-formatting
doc, snmp: fix file formatting
2018-05-09 10:41:59 -04:00
Philippe Guibert
204ed384be doc: add information about zebra VRF configuration
As there are subtle differences between VRF-lite and VRF-netns,
some information is given to the operator on what can be/ can not be
done.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2018-05-09 09:52:36 +02:00
Jafar Al-Gharaibeh
6b3725b354
Merge pull request #2182 from qlyoung/docuser
doc: remove duplicate option doc
2018-05-08 23:40:21 -05:00
Russ White
b54c710717
Merge pull request #2179 from qlyoung/fix-maximum-prefix-override
bgpd: fix maximum-prefix + peer-group
2018-05-08 20:07:32 -04:00
Russ White
bf16dbf1de
Merge pull request #2173 from chiragshah6/ospfv3_dev
ospf6d: fix area border router duplicate
2018-05-08 20:03:48 -04:00
Thomas Gelf
b8df060063 doc, snmp: fix file formatting
Signed-off-by: Thomas Gelf <thomas@gelf.net>
2018-05-09 02:00:06 +02:00
Russ White
35481c03c3
Merge pull request #2160 from donaldsharp/prefix_sid
bgpd: Handle multiple PREFIX_SID's at a time.
2018-05-08 19:52:56 -04:00
Russ White
ae57fcbfef
Merge pull request #2137 from mkanjari/evpn-addr-change
*: change struct evpn_addr to include a union of all evpn route types
2018-05-08 19:50:33 -04:00
Chirag Shah
a2d0055aac ospf6d: Fix ABR brouter calculation corruption
During Intra brouter calculation, brouters will be
marked for remove. if one of the brouter is removed,
as part of its remove callback, ospf6_abr_examin_summary
is performed where marked for brouter would be removed.
Since refcount of next brouter node still higher, it will
retain one node with dangled next brouter pointer.
When intra brouter calculation iteration goes to next node,
where accessing free node causes a crash.

Ticket:CM-20807
Testing Done:
Configure multilple ABR routers between area 0 and area x, y.
Remove ospf6 configuration on area x, y abrs and check area 0
Intra brouter calculations.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2018-05-08 15:36:44 -07:00
Chirag Shah
99ab28cb02 ospf6d: fix area border router duplicate
Avoid duplicate ABR brouter entry and
its nexthops.
The route lookup results in first element of the
route/redix node. In case of Intra and inter area
brouter, the first element always intra brouter.
the first element comparison results in always addition
of new element for inter area brouter in brouter table.
Now, iterate all elements of the route node and compare
for brouter origin, if it is same simply update its
nexthops to FIB.

brouter and brouter route nexthops should be merge to avoid
duplicate nexthops for the inter area routes.

Ticket:CM-20807

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2018-05-08 11:53:21 -07:00
Donald Sharp
75a73eeb26
Merge pull request #2178 from pguibert6WIND/issue_2177
pbrd: encode null fwmark to be consistent with zebra decode rule
2018-05-08 14:41:28 -04:00
Donald Sharp
ff7a93c67b
Merge pull request #2185 from opensourcerouting/isis-redist-metric-fix
isisd: use 0 as default-metric for redistribution
2018-05-08 14:10:02 -04:00
Christian Franke
8cfc8c5cfd isisd: use 0 as default-metric for redistribution
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2018-05-08 17:32:15 +02:00
Quentin Young
46a6698304 doc: remove duplicate option doc
Earlier commit added docs on `--enable-multipath` but it was already
documented.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-05-07 18:12:17 -04:00
Quentin Young
8af54f0bfb
Merge pull request #2181 from zefanxu-bsn/patch-1
Default hello interval is wrong
2018-05-07 17:19:14 -04:00
Zefan Xu
2de01166c5
Default hello interval is wrong 2018-05-07 14:16:42 -07:00
Quentin Young
04e1c5bb4a bgpd: fix maximum-prefix + peer-group
Attribute set on peer was being overridden when set on the peer-group.

This commit also adds a parallel flags array that indicates whether a
particular flag is sourced from the peer-group or is peer-specific. It
assumes the default state of all flags is unset. This looks to be true
except in the case of PEER_FLAG_SEND_COMMUNITY,
PEER_FLAG_SEND_EXT_COMMUNITY, and PEER_FLAG_SEND_LARGE_COMMUNITY; these
flags are set by default except when the user specifies to use
config-type = cisco. However the flag field can merely be flipped to
mean the negation of those options in a future commit.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-05-07 14:44:10 -04:00
Philippe Guibert
614827f88b pbrd: encode null fwmark to be consistent with zebra decode rule
A null 4-byte long fwmark is encoded in pbr rule.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2018-05-07 18:59:41 +02:00
Renato Westphal
e8f95403e4
Merge pull request #2156 from donaldsharp/zebra_doc
doc: Explain ecmp building and startup for zebra
2018-05-07 12:18:14 -03:00
Renato Westphal
adb6f72851
Merge pull request #2166 from qlyoung/docuser
doc: add figures & fix some typos in arch. docs
2018-05-07 12:15:18 -03:00
Renato Westphal
1d21078486
Merge pull request #2175 from chiragshah6/mdev
ospf6d: add newline to show debugging cmd
2018-05-07 12:08:16 -03:00
Chirag Shah
257660b457 ospf6d: add newline to show debugging cmd
Ticket:CM-20738
Testing Done:
Before:
OSPF6 debugging status:debug ospf6 lsa inter-router examine
debug ospf6 lsa as-external examine
debug ospf6 route memory
debug ospf6 border-routers

After:
OSPF6 debugging status:
debug ospf6 lsa inter-router examine
debug ospf6 lsa as-external examine
debug ospf6 route memory
debug ospf6 border-routers

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2018-05-05 15:38:11 -07:00
Mladen Sablic
21313cbfda pimd: show ip igmp statistics command
Command showing IGMP Rx statistics, useful for analyzing IGMP
activity on interfaces.

Signed-off-by: Mladen Sablic <mladen.sablic@gmail.com>
2018-05-04 17:05:19 +02:00
Donald Sharp
0d8df93443 doc: Explain ecmp building and startup for zebra
Explain the --enable-ecmp=X configure option as well as
modify the zebra user doc to explain the -e X option.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-05-03 23:13:15 -04:00
Donald Sharp
1c96f2fb96
Merge pull request #2169 from piotrjurkiewicz/eigrp_feasibility
eigrpd: Consider only feasible successors as successors
2018-05-03 23:02:36 -04:00
Donald Sharp
87e6a84061
Merge pull request #2167 from piotrjurkiewicz/master
eigrpd: Correctly calculate EIGRP packet MTU
2018-05-03 21:58:10 -04:00
Piotr Jurkiewicz
53765081f9 eigrpd: Consider only feasible successors as successors
Meeting the feasibility condition is required also for routes
meeting the variance condition.

Signed-off-by: Piotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>
2018-05-04 03:01:29 +02:00
Piotr Jurkiewicz
9378632f04 eigrpd: Use EIGRP_PACKET_MTU(mtu) macro
Signed-off-by: Piotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>
2018-05-04 02:58:31 +02:00
Piotr Jurkiewicz
ca83a1ab22 eigrpd: Correctly calculate EIGRP packet MTU
Someone forgot that EIGRP packets are encapsulated in IP.

Signed-off-by: Piotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>
2018-05-04 02:58:18 +02:00
Quentin Young
c9efc8d3fe doc: add figures & fix some typos in arch. docs
Found some old design documentation I wrote up and stole the figures.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-05-03 12:31:06 -04:00
Jafar Al-Gharaibeh
babf583e63
Merge pull request #2158 from donaldsharp/timeouts
redhat, tools: Increase startup time out a bit
2018-05-03 09:45:04 -05:00
Jafar Al-Gharaibeh
45f65a6f6c
Merge pull request #2164 from donaldsharp/pbr_nht_eats_gcc
pbrd: Fix nearly impossible truncation
2018-05-03 09:44:15 -05:00
Jafar Al-Gharaibeh
9794f1ad46
Merge pull request #2146 from qlyoung/docuser
doc: add documentation on threading & process arch
2018-05-03 09:42:46 -05:00