]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
3 years agotopotests: python3, replace iteritems with items
Philippe Guibert [Wed, 25 Nov 2020 16:23:19 +0000 (16:23 +0000)]
topotests: python3, replace iteritems with items

replace iteritems() calls with items()

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agotopotests: python3, rename iterkey() with key() for dictionary usage
Philippe Guibert [Wed, 25 Nov 2020 12:49:45 +0000 (12:49 +0000)]
topotests: python3, rename iterkey() with key() for dictionary usage

dictionary method iterkey() is not used in python3 and is replaced with
key() method.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agotopotests: python3, fix error ValueError: can't have unbuffered text I/O
Philippe Guibert [Wed, 25 Nov 2020 09:32:51 +0000 (09:32 +0000)]
topotests: python3, fix error ValueError: can't have unbuffered text I/O

This error occurs when passing some 0 values to open() extra argument.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agotopotests: python3, replace execfile with exec
Philippe Guibert [Wed, 25 Nov 2020 09:37:15 +0000 (09:37 +0000)]
topotests: python3, replace execfile with exec

python3 does not support execfile implementation.
replace it with open and exec api that are available in both python 2
and 3 implementations.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agoMerge pull request #7569 from patrasar/pim_coverity_fix
Donald Sharp [Fri, 20 Nov 2020 12:40:06 +0000 (07:40 -0500)]
Merge pull request #7569 from patrasar/pim_coverity_fix

pimd: Fix SA issues found in Coverity Scan

3 years agopimd: Fix SA issues found in Coverity Scan
Sarita Patra [Fri, 20 Nov 2020 08:01:19 +0000 (00:01 -0800)]
pimd: Fix SA issues found in Coverity Scan

Signed-off-by: Sarita Patra <saritap@vmware.com>
3 years agoMerge pull request #7562 from donaldsharp/python_fixes
Donatas Abraitis [Fri, 20 Nov 2020 07:37:58 +0000 (09:37 +0200)]
Merge pull request #7562 from donaldsharp/python_fixes

tests: Fix common_config.py issues

3 years agoMerge pull request #7559 from ckishimo/translator
Donald Sharp [Fri, 20 Nov 2020 00:33:59 +0000 (19:33 -0500)]
Merge pull request #7559 from ckishimo/translator

ospfd: fix NSSA translator

3 years agoMerge pull request #7546 from mjstapp/limit_fds
Donald Sharp [Fri, 20 Nov 2020 00:28:57 +0000 (19:28 -0500)]
Merge pull request #7546 from mjstapp/limit_fds

lib: add startup-time option to limit fds used

3 years agoMerge pull request #7568 from idryzhov/fix-naming
Donald Sharp [Fri, 20 Nov 2020 00:25:56 +0000 (19:25 -0500)]
Merge pull request #7568 from idryzhov/fix-naming

lib: fix local variable shadowing global one

3 years agoMerge pull request #7544 from andylemin/master
Donald Sharp [Fri, 20 Nov 2020 00:24:42 +0000 (19:24 -0500)]
Merge pull request #7544 from andylemin/master

bgpd: added bmp read check to detect broken sessions

3 years agoMerge pull request #7564 from pguibert6WIND/fix_typo_topotest
Donald Sharp [Thu, 19 Nov 2020 23:36:48 +0000 (18:36 -0500)]
Merge pull request #7564 from pguibert6WIND/fix_typo_topotest

doc: topotest json typo error

3 years agoRevert "debian: Merge various debian changelogs in debian/changelog"
Quentin Young [Thu, 19 Nov 2020 22:12:42 +0000 (17:12 -0500)]
Revert "debian: Merge various debian changelogs in debian/changelog"

This reverts commit da3a39ff6a131039ef67e01637333353f3095adb.

3 years agoRevert "debian: Adjust tarsource.sh to use native debian/changelog"
Quentin Young [Thu, 19 Nov 2020 22:12:41 +0000 (17:12 -0500)]
Revert "debian: Adjust tarsource.sh to use native debian/changelog"

This reverts commit 4ffb9a4c9ddd0ef3f770c0bc2674c4818331780d.

3 years agoRevert "debian: Update tools/build-debian-package.sh to use git-buildpackage"
Quentin Young [Thu, 19 Nov 2020 22:12:40 +0000 (17:12 -0500)]
Revert "debian: Update tools/build-debian-package.sh to use git-buildpackage"

This reverts commit 63c0c8ed89e1564294ff174b819e520d5977f499.

3 years agoRevert "debian: Remove the changelog-auto automation in favor of dch"
Quentin Young [Thu, 19 Nov 2020 22:12:40 +0000 (17:12 -0500)]
Revert "debian: Remove the changelog-auto automation in favor of dch"

This reverts commit cace1d9bf178d447599fe7caa5ccad9a89babe03.

3 years agoRevert "debian: Remove now obsolete tarsource.sh script"
Quentin Young [Thu, 19 Nov 2020 22:12:38 +0000 (17:12 -0500)]
Revert "debian: Remove now obsolete tarsource.sh script"

This reverts commit bc304e08ea48523b4c70d1d330eaefba3b6b7a6c.

3 years agoRevert "debian: Update the tools/build-debian-package.sh to be example build script"
Quentin Young [Thu, 19 Nov 2020 22:12:27 +0000 (17:12 -0500)]
Revert "debian: Update the tools/build-debian-package.sh to be example build script"

This reverts commit c950a7f214cd713652da1b6b78eca9278c33b448.

3 years agolib: fix local variable shadowing global one
Igor Ryzhov [Thu, 19 Nov 2020 21:41:50 +0000 (00:41 +0300)]
lib: fix local variable shadowing global one

start_config and end_config are already used as function names in DEFUN,
so the current naming is a little bit confusing. Let's use different
names for arguments.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agodebian: Update the tools/build-debian-package.sh to be example build script
Ondřej Surý [Sun, 27 Sep 2020 11:17:57 +0000 (13:17 +0200)]
debian: Update the tools/build-debian-package.sh to be example build script

Signed-off-by: Ondřej Surý <ondrej@sury.org>
3 years agodebian: Remove now obsolete tarsource.sh script
Ondřej Surý [Sun, 27 Sep 2020 10:18:21 +0000 (12:18 +0200)]
debian: Remove now obsolete tarsource.sh script

3 years agodebian: Remove the changelog-auto automation in favor of dch
Ondřej Surý [Sun, 27 Sep 2020 09:46:31 +0000 (11:46 +0200)]
debian: Remove the changelog-auto automation in favor of dch

Signed-off-by: Ondřej Surý <ondrej@sury.org>
3 years agodebian: Update tools/build-debian-package.sh to use git-buildpackage
Ondřej Surý [Sun, 27 Sep 2020 09:08:13 +0000 (11:08 +0200)]
debian: Update tools/build-debian-package.sh to use git-buildpackage

Signed-off-by: Ondřej Surý <ondrej@sury.org>
3 years agodebian: Adjust tarsource.sh to use native debian/changelog
Ondřej Surý [Sat, 26 Sep 2020 16:53:34 +0000 (18:53 +0200)]
debian: Adjust tarsource.sh to use native debian/changelog

Signed-off-by: Ondřej Surý <ondrej@sury.org>
3 years agodebian: Merge various debian changelogs in debian/changelog
Ondřej Surý [Sat, 26 Sep 2020 16:33:06 +0000 (18:33 +0200)]
debian: Merge various debian changelogs in debian/changelog

Signed-off-by: Ondřej Surý <ondrej@sury.org>
3 years agoMerge pull request #7566 from ton31337/fix/topotests_bgp_ebgp_requires_policy
Mark Stapp [Thu, 19 Nov 2020 18:32:56 +0000 (13:32 -0500)]
Merge pull request #7566 from ton31337/fix/topotests_bgp_ebgp_requires_policy

tests: Add more descriptive error messages and increase timeouts

3 years agoMerge pull request #7424 from donaldsharp/config_commands
Mark Stapp [Thu, 19 Nov 2020 17:40:50 +0000 (12:40 -0500)]
Merge pull request #7424 from donaldsharp/config_commands

lib, sharpd, vtysh: When reading a file in for config send start/end …

3 years agoMerge pull request #6145 from patrasar/pim_nb_code_upstream
Donald Sharp [Thu, 19 Nov 2020 16:03:00 +0000 (11:03 -0500)]
Merge pull request #6145 from patrasar/pim_nb_code_upstream

pimd: northbound backend code

3 years agoMerge pull request #7563 from donaldsharp/why_not_cut_n_paste
Mark Stapp [Thu, 19 Nov 2020 15:58:21 +0000 (10:58 -0500)]
Merge pull request #7563 from donaldsharp/why_not_cut_n_paste

ospf6d: More lists being leaked

3 years agoMerge pull request #7561 from donaldsharp/resources_are_the_life
Mark Stapp [Thu, 19 Nov 2020 14:56:51 +0000 (09:56 -0500)]
Merge pull request #7561 from donaldsharp/resources_are_the_life

lib: Stop socket from leaking.

3 years agolib: Add information log of how long configuration took to read in
Donald Sharp [Fri, 30 Oct 2020 19:33:33 +0000 (15:33 -0400)]
lib: Add information log of how long configuration took to read in

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agolib, sharpd, vtysh: When reading a file in for config send start/end indicators
Donald Sharp [Fri, 30 Oct 2020 18:10:55 +0000 (14:10 -0400)]
lib, sharpd, vtysh: When reading a file in for config send start/end indicators

When reading a file in for configuration, send start and end indicators
to interested parties.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agotests: Add more descriptive error messages and increase timeouts
Donatas Abraitis [Thu, 19 Nov 2020 14:32:46 +0000 (16:32 +0200)]
tests: Add more descriptive error messages and increase timeouts

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agodoc: topotest json typo error
Philippe Guibert [Wed, 18 Nov 2020 10:38:19 +0000 (10:38 +0000)]
doc: topotest json typo error

fix the typo error.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agoospf6d: More lists being leaked
Donald Sharp [Thu, 19 Nov 2020 13:04:51 +0000 (08:04 -0500)]
ospf6d: More lists being leaked

Apparently the person who wrote this code was big into
cut-n-paste.  Commit 710a61d57c8f1b0ea66a37f09bad2161d7e2ddb7
found the first instance, but upon code inspection this morning
it became evident that 2 other functions had the exact same
problem.

Fix.  Note I have not cleaned up the cut-n-paste code for
two reasons: a) I'm chasing something else b) this code
has been fairly un-maintained for a very long time.  No
need to start up now.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agotests: Fix common_config.py issues
Donald Sharp [Thu, 19 Nov 2020 12:40:03 +0000 (07:40 -0500)]
tests: Fix common_config.py issues

1) in generate_ips if start_ipaddr does not have a `/` in it
there exists a code path where both mask and step are
null values.  Write a bit of code to ensure this pre-req
is found early and often

2) in verify_rib there exists a code path where static_route
is null when we get to the non static route section.  Change
the code to operate on the advertise_network_dict that
we are iterating over.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agolib: Stop socket from leaking.
Donald Sharp [Thu, 19 Nov 2020 12:02:15 +0000 (07:02 -0500)]
lib: Stop socket from leaking.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7554 from donaldsharp/sockunion2hostprefix_watch_returns
Donatas Abraitis [Thu, 19 Nov 2020 09:26:02 +0000 (11:26 +0200)]
Merge pull request #7554 from donaldsharp/sockunion2hostprefix_watch_returns

bgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix

3 years agoMerge pull request #7528 from donaldsharp/changelog_update
Donatas Abraitis [Thu, 19 Nov 2020 08:43:26 +0000 (10:43 +0200)]
Merge pull request #7528 from donaldsharp/changelog_update

Changelog update

3 years agoospfd: fix NSSA translator
ckishimo [Thu, 19 Nov 2020 07:23:14 +0000 (23:23 -0800)]
ospfd: fix NSSA translator

Having 2 ABR in NSSA area where R3 is the elected translator

R3# show ip ospf
  We are an ABR and the NSSA Elected Translator.
R2# show ip ospf
  We are an ABR, but not the NSSA Elected Translator.

When R3 loses the Border condition by shutting down the interface
to the backbone, we end up with no translator in the NSSA area. It
is expected R2 to take over the translator role

R3# sh ip ospf
  It is not ABR, therefore not Translator.
R2# show ip ospf
   We are an ABR, but not the NSSA Elected Translator.

This PR forces the ABR to reevaluate the translator condition, so
R2 becomes the elected Translator

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agopimd: fix indentation issues
Sarita Patra [Fri, 6 Nov 2020 11:51:20 +0000 (03:51 -0800)]
pimd: fix indentation issues

Signed-off-by: Sarita Patra <saritap@vmware.com>
3 years agoMerge pull request #7210 from idryzhov/route-types-disable-daemon
Donald Sharp [Thu, 19 Nov 2020 00:38:14 +0000 (19:38 -0500)]
Merge pull request #7210 from idryzhov/route-types-disable-daemon

lib: respect --disable-daemon flags in route_types.h

3 years agoMerge pull request #7454 from ranjanyash54/dev_8
Donald Sharp [Wed, 18 Nov 2020 23:37:30 +0000 (18:37 -0500)]
Merge pull request #7454 from ranjanyash54/dev_8

ospf6d: Json support added for command "show ipv6 ospf6 interface traffic [json]"

3 years agoMerge pull request #7455 from ranjanyash54/dev_3
Donald Sharp [Wed, 18 Nov 2020 23:33:09 +0000 (18:33 -0500)]
Merge pull request #7455 from ranjanyash54/dev_3

ospf6d: Json support added for command "show ipv6 ospf6 redistribute [json]"

3 years agoMerge pull request #7467 from ton31337/fix/bgpd_null_dereference
Donald Sharp [Wed, 18 Nov 2020 23:13:04 +0000 (18:13 -0500)]
Merge pull request #7467 from ton31337/fix/bgpd_null_dereference

bgpd: Check if peer is not NULL before calling peer_as_change()

3 years agoMerge pull request #7558 from opensourcerouting/bfd-v6-same
Donald Sharp [Wed, 18 Nov 2020 22:53:42 +0000 (17:53 -0500)]
Merge pull request #7558 from opensourcerouting/bfd-v6-same

bfdd: fix multiple links same address

3 years agoMerge pull request #7296 from YashRanjanVMWare/dev_1
Donald Sharp [Wed, 18 Nov 2020 22:50:42 +0000 (17:50 -0500)]
Merge pull request #7296 from YashRanjanVMWare/dev_1

ospf6d: Json support added for command "show ipv6 ospf6 [json]"

3 years agoMerge pull request #7556 from donaldsharp/memory_shenanigans
Mark Stapp [Wed, 18 Nov 2020 22:31:03 +0000 (17:31 -0500)]
Merge pull request #7556 from donaldsharp/memory_shenanigans

Memory shenanigans

3 years agolib: add startup option to limit fds
Mark Stapp [Tue, 17 Nov 2020 18:30:05 +0000 (13:30 -0500)]
lib: add startup option to limit fds

Add a startup-time option to limit the number of fds used
by the thread/event infrastructure. If nothing is configured,
the system ulimit is used.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #7552 from volta-networks/fix_reload_l2pvn
Donald Sharp [Wed, 18 Nov 2020 20:27:51 +0000 (15:27 -0500)]
Merge pull request #7552 from volta-networks/fix_reload_l2pvn

tools: fix frr-reload l2vpn delete

3 years agoMerge pull request #7555 from idryzhov/cppcheck-fixes
Mark Stapp [Wed, 18 Nov 2020 19:29:25 +0000 (14:29 -0500)]
Merge pull request #7555 from idryzhov/cppcheck-fixes

fix a couple of issues found by cppcheck

3 years agobfdd: fix multiple links same address
Rafael Zalamena [Wed, 18 Nov 2020 18:47:00 +0000 (15:47 -0300)]
bfdd: fix multiple links same address

Allows users with multiple links using same IPv6 address (same VRF) to
work.

Reported-by: Matti Suuronen
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agobgpd: Prevent ecommunity_ecom2str memory leak
Donald Sharp [Wed, 18 Nov 2020 17:50:48 +0000 (12:50 -0500)]
bgpd: Prevent ecommunity_ecom2str memory leak

We were allocating but never freeing memory associated with the
ecommunity_ecom2str allocation.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agobgpd: Do not leak vname if we find the match
Donald Sharp [Wed, 18 Nov 2020 17:10:22 +0000 (12:10 -0500)]
bgpd: Do not leak vname if we find the match

If we are attempting to store the bgp name for route
leaking and we find a match do not leak the memory.

Please note this is probably not really going to happen
ever.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7553 from donaldsharp/mem_leak_ferr
Mark Stapp [Wed, 18 Nov 2020 16:56:34 +0000 (11:56 -0500)]
Merge pull request #7553 from donaldsharp/mem_leak_ferr

lib: Cleanup mem-leaks in error case

3 years agoospf6d: Free up list memory
Donald Sharp [Wed, 18 Nov 2020 16:42:50 +0000 (11:42 -0500)]
ospf6d: Free up list memory

OSPFv3 snmp code creates a list but never deletes the actual
list.  Do so.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agopimd: A buffer may be used uninited
Donald Sharp [Wed, 18 Nov 2020 16:42:06 +0000 (11:42 -0500)]
pimd: A buffer may be used uninited

If we screw up and don't have the right flags we'll print
out garbage.  At the very least just print out nothing.

Signed-off-by: Donald Sharp <sharp@nvidia.com>
3 years agolib: fix macro style
Igor Ryzhov [Wed, 18 Nov 2020 16:13:47 +0000 (19:13 +0300)]
lib: fix macro style

We prefer semicolon in the actual code instead of macro elsewhere in the
code.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoisisd: fix uninitialized variable
Igor Ryzhov [Wed, 18 Nov 2020 16:07:49 +0000 (19:07 +0300)]
isisd: fix uninitialized variable

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoospf6d: fix compilation of debug code
Igor Ryzhov [Wed, 18 Nov 2020 16:06:10 +0000 (19:06 +0300)]
ospf6d: fix compilation of debug code

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agozebra: fix writing to pointer instead of value
Igor Ryzhov [Wed, 18 Nov 2020 16:05:30 +0000 (19:05 +0300)]
zebra: fix writing to pointer instead of value

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agobgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix
Donald Sharp [Wed, 18 Nov 2020 16:04:27 +0000 (11:04 -0500)]
bgpd, lib, nhrpd, zebra: verify return of sockunion2hostprefix

The return from sockunion2hostprefix tells us if the conversion
succeeded or not.  There are places in the code where we
always assume that it just `works`, since it can fail
notice and try to do the right thing.

Please note that failure of this function for most cases
of sockunion2hostprefix is highly highly unlikely as that
the sockunion was already created and tested elsewhere
it's just that this function can fail.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agolib: Cleanup mem-leaks in error case
Donald Sharp [Wed, 18 Nov 2020 13:54:51 +0000 (08:54 -0500)]
lib: Cleanup mem-leaks in error case

When we fail to properly lookup an error code, properly cleanup
on return.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7478 from donaldsharp/buffer
Mark Stapp [Wed, 18 Nov 2020 13:30:47 +0000 (08:30 -0500)]
Merge pull request #7478 from donaldsharp/buffer

Buffer

3 years agotools: fix frr-reload l2vpn delete
Emanuele Di Pascale [Wed, 11 Nov 2020 16:29:15 +0000 (17:29 +0100)]
tools: fix frr-reload l2vpn delete

when deleting a whole l2vpn context in ldpd which also had pseudowires
in it, we were first deleting the l2vpn with a 'no l2vpn XXX' command,
and then adding it again by running 'l2vpn XXX\n no member pseudowire YYY'
which obviously was not needed. As a result the l2vpn would be reinstated.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agoMerge pull request #7549 from vincentbernat/fix/oot-build
Rafael Zalamena [Wed, 18 Nov 2020 10:27:47 +0000 (07:27 -0300)]
Merge pull request #7549 from vincentbernat/fix/oot-build

vtysh: fix out-of-tree build not finding vtysh/daemons.pl

3 years agoMerge pull request #7548 from vincentbernat/feature/json-passive
Donatas Abraitis [Wed, 18 Nov 2020 06:39:28 +0000 (08:39 +0200)]
Merge pull request #7548 from vincentbernat/feature/json-passive

bgpd: identify passive connections in JSON summary

3 years agoMerge pull request #7543 from GalaxyGorilla/fix_refcmp_newline
Donald Sharp [Tue, 17 Nov 2020 20:30:07 +0000 (15:30 -0500)]
Merge pull request #7543 from GalaxyGorilla/fix_refcmp_newline

tests: ignore Windows vs Unix style newlines

3 years agoMerge pull request #7534 from chiragshah6/yang_nb1
Renato Westphal [Tue, 17 Nov 2020 20:13:20 +0000 (17:13 -0300)]
Merge pull request #7534 from chiragshah6/yang_nb1

bgpd: convert to yang modeled nbr cmds

3 years agovtysh: fix out-of-tree build not finding vtysh/daemons.pl
Vincent Bernat [Tue, 17 Nov 2020 19:49:20 +0000 (20:49 +0100)]
vtysh: fix out-of-tree build not finding vtysh/daemons.pl

This is needed to build with:

    mkdir build && cd build && ../configure && make

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
3 years agobgpd: identify passive connections in JSON summary
Vincent Bernat [Tue, 17 Nov 2020 19:29:31 +0000 (20:29 +0100)]
bgpd: identify passive connections in JSON summary

When using non JSON output, passive connections are marked with:

    BGP state = Active (passive)

However, such an information is not available in JSON output. This
commit adds that. It also adds "Active (NSF passive)" flag, like the
regular output.

Signed-off-by: Vincent Bernat <vincent@bernat.ch>
3 years agoMerge pull request #6851 from kuldeepkash/bgp_graceful_restart
Donald Sharp [Tue, 17 Nov 2020 16:57:29 +0000 (11:57 -0500)]
Merge pull request #6851 from kuldeepkash/bgp_graceful_restart

tests: Fix for bgp_gr_functionality_topo1/topo2 failures

3 years agoMerge pull request #7303 from mobash-rasool/pim-fixes
Quentin Young [Tue, 17 Nov 2020 16:41:33 +0000 (11:41 -0500)]
Merge pull request #7303 from mobash-rasool/pim-fixes

pimd: checksum must be validated before accepting igmpv2 leave packet

3 years agoMerge pull request #7511 from donaldsharp/vtysh_warn
Patrick Ruddy [Tue, 17 Nov 2020 16:35:48 +0000 (16:35 +0000)]
Merge pull request #7511 from donaldsharp/vtysh_warn

Vtysh excessive/too little doc string re-instatement

3 years agobgpd: convert to yang modeled nbr cmds
Chirag Shah [Tue, 17 Nov 2020 02:42:20 +0000 (18:42 -0800)]
bgpd: convert to yang modeled nbr cmds

Convert to (DEFUN_YANG) yang modeled neighbor configuration
commands to count them in batched execution as part of backoff timer
introduced as part of PR # 6727

These configuration commands already converted transactional cli
but missed to mark them as (DEFUN_YANG).

Signed-off-by: Chirag Shah <chirag@nvidia.com>
3 years agoMerge pull request #7541 from ton31337/fix/hardcoded_function_names
Donald Sharp [Tue, 17 Nov 2020 14:28:09 +0000 (09:28 -0500)]
Merge pull request #7541 from ton31337/fix/hardcoded_function_names

bgpd: Use __func__ instead of hardcoded strings for some functions

3 years agopimd: checksum must be validated before accepting igmp packets
Mobashshera Rasool [Wed, 14 Oct 2020 13:51:32 +0000 (13:51 +0000)]
pimd: checksum must be validated before accepting igmp packets

Issue: When an IGMPv2 leave packet is received, it did not validate
the checksum and hence the packet is accepted and group specific
query is sent out in response to this.

Due to this IGMP conformance test case 6.1 failed.

https://github.com/FRRouting/frr/issues/6868

Fix: Validate the checksum for all IGMP packets

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
3 years agobgpd: added bmp read check to detect broken sessions
Andy Lemin [Tue, 17 Nov 2020 13:24:59 +0000 (00:24 +1100)]
bgpd: added bmp read check to detect broken sessions

Signed-off-by: Andy Lemin <andy@lemin.io>
3 years agotests: ignore Windows vs Unix style newlines
GalaxyGorilla [Tue, 17 Nov 2020 13:11:34 +0000 (13:11 +0000)]
tests: ignore Windows vs Unix style newlines

Within unit tests the output of vtysh commands is compared to hand
made reference files. For some reason the output of those vtysh
commands contains Windows Style newlines which results in error
outputs which make it hard to identify this problem.

Since there seems to be no benefit in checking those newlines
anyway this commit just normalizes them.

Signed-off-by: GalaxyGorilla <sascha@netdef.org>
3 years agoMerge pull request #7540 from ton31337/fix/typo
Donald Sharp [Tue, 17 Nov 2020 13:13:17 +0000 (08:13 -0500)]
Merge pull request #7540 from ton31337/fix/typo

*: Replace typo (supress => suppress)

3 years agoMerge pull request #7450 from ranjanyash54/dev_5
Russ White [Tue, 17 Nov 2020 12:55:10 +0000 (07:55 -0500)]
Merge pull request #7450 from ranjanyash54/dev_5

ospf6d: Json support added for command "show ipv6 ospf6 zebra [json]"

3 years agoMerge pull request #7453 from ranjanyash54/dev_7
Russ White [Tue, 17 Nov 2020 12:53:41 +0000 (07:53 -0500)]
Merge pull request #7453 from ranjanyash54/dev_7

ospf6d: Json support added for command "show ipv6 ospf6 interface [json]"

3 years agodoc: Update release procedure
Donald Sharp [Sun, 15 Nov 2020 15:08:38 +0000 (10:08 -0500)]
doc: Update release procedure

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agobuild: Update changelog from 7.5 release data
Donald Sharp [Sun, 15 Nov 2020 15:02:14 +0000 (10:02 -0500)]
build: Update changelog from 7.5 release data

Update the changelog from 7.5 into masters changelog

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7476 from opensourcerouting/bfd-fixes
Russ White [Tue, 17 Nov 2020 12:34:29 +0000 (07:34 -0500)]
Merge pull request #7476 from opensourcerouting/bfd-fixes

bfdd,lib: integration fixes

3 years agoMerge pull request #7518 from donaldsharp/asic_offload_more
Russ White [Tue, 17 Nov 2020 12:27:41 +0000 (07:27 -0500)]
Merge pull request #7518 from donaldsharp/asic_offload_more

Asic offload more

3 years agolib: Change zlog_debug to zlog_err for doc string issues
Donald Sharp [Thu, 12 Nov 2020 21:14:29 +0000 (16:14 -0500)]
lib: Change zlog_debug to zlog_err for doc string issues

Modify the code to change from zlog_debug to zlog_err.
vtysh was not outputting the vtysh doc string issues
after a change a couple of months back.  By changing
to error level we start seeing them on vtysh start up
again.  This will allow us to catch these issues
in the CI runs again.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoospfd: Fix excessive doc string for `no summary-address ..` command
Donald Sharp [Thu, 12 Nov 2020 21:13:48 +0000 (16:13 -0500)]
ospfd: Fix excessive doc string for `no summary-address ..` command

The `no summary-address ..` command had excessive doc string.
Fix.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7520 from volta-networks/fix_ospf_mpls_te
Russ White [Tue, 17 Nov 2020 12:18:48 +0000 (07:18 -0500)]
Merge pull request #7520 from volta-networks/fix_ospf_mpls_te

ospfd: reset mpls-te prior to ospf router removal

3 years agoMerge pull request #7523 from donaldsharp/route_map_object_t
Russ White [Tue, 17 Nov 2020 12:16:12 +0000 (07:16 -0500)]
Merge pull request #7523 from donaldsharp/route_map_object_t

*: Remove route_map_object_t from the system

3 years agoMerge pull request #7536 from ton31337/fix/documentation
Russ White [Tue, 17 Nov 2020 12:12:33 +0000 (07:12 -0500)]
Merge pull request #7536 from ton31337/fix/documentation

doc: Replace _ to `` when bolding keyword for recently added BGP commands

3 years agoMerge pull request #7530 from ton31337/fix/safeguard_path->attr
Mark Stapp [Tue, 17 Nov 2020 12:09:54 +0000 (07:09 -0500)]
Merge pull request #7530 from ton31337/fix/safeguard_path->attr

bgpd: Make sure path->attr is not NULL before dereferencing

3 years agobgpd: Use __func__ instead of hardcoded strings for some functions
Donatas Abraitis [Tue, 17 Nov 2020 11:32:15 +0000 (13:32 +0200)]
bgpd: Use __func__ instead of hardcoded strings for some functions

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years ago*: Replace typo (supress => suppress)
Donatas Abraitis [Tue, 17 Nov 2020 10:06:23 +0000 (12:06 +0200)]
*: Replace typo (supress => suppress)

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agodoc: Replace _ to `` when bolding keyword for recently added BGP commands
Donatas Abraitis [Tue, 17 Nov 2020 06:49:01 +0000 (08:49 +0200)]
doc: Replace _ to `` when bolding keyword for recently added BGP commands

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agoMerge pull request #7521 from donaldsharp/set_src_future_us
Donatas Abraitis [Tue, 17 Nov 2020 06:33:59 +0000 (08:33 +0200)]
Merge pull request #7521 from donaldsharp/set_src_future_us

zebra: Allow `set src X` to work on startup

3 years agobgpd: Make sure path->attr is not NULL before dereferencing
Donatas Abraitis [Mon, 16 Nov 2020 16:05:53 +0000 (18:05 +0200)]
bgpd: Make sure path->attr is not NULL before dereferencing

Null-checking "path->attr" suggests that it may be null, but it has
already been dereferenced on all paths leading to the check.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agoospf6d: Json support added for command "show ipv6 ospf6 interface [json]"
github login name [Fri, 9 Oct 2020 06:27:37 +0000 (23:27 -0700)]
ospf6d: Json support added for command "show ipv6 ospf6 interface [json]"

Modify code to add JSON format output in show command
"show ipv6 ospf6 interface" with proper formating

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
3 years agoospf6d: Json support added for command "show ipv6 ospf6 zebra [json]"
github login name [Wed, 30 Sep 2020 12:05:36 +0000 (05:05 -0700)]
ospf6d: Json support added for command "show ipv6 ospf6 zebra [json]"

Modify code to add JSON format output in show command
"show ipv6 ospf6 zebra" with proper formating

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
3 years agoospf6d: Json support added for command "show ipv6 ospf6 [json]"
github login name [Tue, 13 Oct 2020 12:44:52 +0000 (05:44 -0700)]
ospf6d: Json support added for command "show ipv6 ospf6 [json]"

Modify code to add JSON format output in show command
"show ipv6 ospf6" with proper formating.

Signed-off-by: Yash Ranjan <ranjany@vmware.com>