summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls_vty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: move CLI node names to cmd_node->nameDavid Lamparter2020-04-161-0/+1
| | | | | | | And again for the name. Why on earth would we centralize this, just so people can forget to update it? Signed-off-by: David Lamparter <equinox@diac24.net>
* *: remove second parameter on install_node()David Lamparter2020-04-161-1/+3
| | | | | | | | | | There is really no reason to not put this in the cmd_node. And while we're add it, rename from pointless ".func" to ".config_write". [v2: fix forgotten ldpd config_write] Signed-off-by: David Lamparter <equinox@diac24.net>
* *: remove cmd_node->vtyshDavid Lamparter2020-04-161-1/+0
| | | | | | | The only nodes that have this as 0 don't have a "->func" anyway, so the entire thing is really just pointless. Signed-off-by: David Lamparter <equinox@diac24.net>
* *: clean up cmd_node initializersDavid Lamparter2020-04-161-1/+5
| | | | | | ... and use named assignments everywhere (so I can change the struct.) Signed-off-by: David Lamparter <equinox@diac24.net>
* bgpd, ospfd, pimd, zebra: Convert more use_json locations to boolDon Slice2018-09-041-2/+2
| | | | Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
* zebra: Remove zebra_static.c and .hDonald Sharp2018-07-291-1/+0
| | | | | | These are no longer needed so remove. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: use C99 standard fixed-width integer typesQuentin Young2018-03-271-6/+6
| | | | | | | | | | | | | | | | | | | | | | The following types are nonstandard: - u_char - u_short - u_int - u_long - u_int8_t - u_int16_t - u_int32_t Replace them with the C99 standard types: - uint8_t - unsigned short - unsigned int - unsigned long - uint8_t - uint16_t - uint32_t Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: Make code use a consisten definition of labelsDonald Sharp2018-02-091-7/+7
| | | | | | | | | | Turns out we had 3 different ways to define labels all of them overlapping with the same meanings. Consolidate to 1. This one choosen is consistent naming wise with what the *bsd and linux kernels use. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* zebra: remove redundant DEFUNs for labeled static routesRenato Westphal2017-07-281-598/+1
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* *: reindentreindent-master-afterwhitespace / reindent2017-07-171-400/+405
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Merge remote-tracking branch 'frr/master' into newline-reduxDavid Lamparter2017-07-141-20/+20
|\ | | | | | | | | | | Lots of conflicts from CMD_WARNING_CONFIG_FAILED... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * vtysh: return non-zero for configuration failuresDaniel Walton2017-07-131-20/+20
| | | | | | | | | | | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> This allows frr-reload.py (or anything else that scripts via vtysh) to know if the vtysh command worked or hit an error.
* | *: ditch vty_outln(), part 1 of 2David Lamparter2017-07-131-22/+22
|/ | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: use vty_outlnQuentin Young2017-06-291-30/+26
| | | | | | Saves 400 lines Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* zebra: define mpls label helpstrQuentin Young2017-05-311-64/+32
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: make consistent & update GPLv2 file headersDavid Lamparter2017-05-151-4/+3
| | | | | | | | | | | The FSF's address changed, and we had a mixture of comment styles for the GPL file header. (The style with * at the beginning won out with 580 to 141 in existing files.) Note: I've intentionally left intact other "variations" of the copyright header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* zebra: Fix whitespace issue with if statementDonald Sharp2017-04-151-2/+2
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* zebra: Allow explicit-null as a label optionDonald Sharp2017-04-151-2/+10
| | | | | | | When entering 'mpls label bind ...' command allow the explicit-null as an option. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* bgpd, zebra: Implement BGP Prefix-SID IETF draftVivek Venkatraman2017-04-061-0/+83
| | | | | | | | | | | | Implement BGP Prefix-SID IETF draft to be able to signal a labeled-unicast prefix with a label index (segment ID). This makes it easier to deploy global MPLS labels with BGP, even without other aspects of Segment Routing implemented. This patch implements configuration of the global label block (SRGB) and configuration of a label-index for a network in BGP. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
* zebra: labeled unicast handlingDon Slice2017-04-061-3/+3
| | | | | | | | | Support install of labeled-unicast routes by a client. This would be BGP, in order to install routes corresponding to AFI/SAFI 1/4 (IPv4) or 2/4 (IPv6). Convert labeled-unicast routes into label forwarding entries (i.e., transit LSPs) when there is a static label binding. Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
* zebra: static label bindingDon Slice2017-04-061-0/+133
| | | | | | | | | | Implement static label binding of a label to a prefix (FEC). Note: Currently, only binding to a prefix is supported, the nexthop and/or other parameters are not considered. This was cherry-picked by hand from an earlier mpls branch. Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
* *: fix ambiguous commandsDavid Lamparter2017-02-101-2/+2
| | | | | | Some "show [ip] bgp ipv4 encap ..." commands remaining ambiguous. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* zebra: support static srcdest routesChristian Franke2017-01-301-16/+16
| | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
* zebra: fix segfault on "show mpls table"Renato Westphal2016-12-081-4/+4
| | | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* all: Replace "JavaScript Object Notation\n" with JSON_STRQuentin Young2016-11-301-2/+2
| | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* Merge branch 'cmaster-next' into vtysh-grammarQuentin Young2016-10-251-3/+7
|\ | | | | | | | | | | | | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com> Conflicts: ospfd/ospf_ri.c zebra/zebra_vty.c
| * zebra: Disable mpls slightly differentDonald Sharp2016-10-251-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | When mpls is not turned on in the kernel, we are not installing the mpls commands into the cli. This results in vtysh attempting to run the command and receiving a 'WTF is this command' back from zebra. Modify the mpls code to install commands and to check to see if the command should be accepted based upon mpls working or not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
| * *: Fix duplicate commands from view/enable node consolidationPaul Jakma2016-10-201-3/+0
| |
* | Merge branch 'cmaster-next' into vtysh-grammarQuentin Young2016-10-181-93/+90
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com> Conflicts: bgpd/bgp_route.c bgpd/bgp_routemap.c bgpd/bgp_vty.c isisd/isis_redist.c isisd/isis_routemap.c isisd/isis_vty.c isisd/isisd.c lib/command.c lib/distribute.c lib/if.c lib/keychain.c lib/routemap.c lib/routemap.h ospf6d/ospf6_asbr.c ospf6d/ospf6_interface.c ospf6d/ospf6_neighbor.c ospf6d/ospf6_top.c ospf6d/ospf6_zebra.c ospf6d/ospf6d.c ospfd/ospf_routemap.c ospfd/ospf_vty.c ripd/rip_routemap.c ripngd/ripng_routemap.c vtysh/extract.pl.in vtysh/vtysh.c zebra/interface.c zebra/irdp_interface.c zebra/rt_netlink.c zebra/rtadv.c zebra/test_main.c zebra/zebra_routemap.c zebra/zebra_vty.c
* *: Consistently support 32-bit route tagsChristian Franke2016-10-081-16/+16
| | | | | | | | | | | | | | | | | | | This patch improves zebra,ripd,ripngd,ospfd and bgpd so that they can make use of 32-bit route tags in the case of zebra,ospf,bgp or 16-bit route-tags in the case of ripd,ripngd. It is based on the following patch: commit d25764028829a3a30cdbabe85f32408a63cccadf Author: Paul Jakma <paul.jakma@hpe.com> Date: Fri Jul 1 14:23:45 2016 +0100 *: Widen width of Zserv routing tag field. But also contains the changes which make this actually useful for all the daemons. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
* zebra: check at startup if the kernel supports MPLSRenato Westphal2016-09-231-4/+18
| | | | | | | | Replace all HAVE_MPLS #ifdef's by a run-time check if MPLS is supported by the kernel or not. This way we don't need to create multiple packages for each OS distribution. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* zebra: add explicit-null option for static MPLS LSPsRenato Westphal2016-09-231-2/+8
| | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* zebra: install MPLS CLI commands only if MPLS is enabled.Renato Westphal2016-09-231-0/+861
To keep things simple, zebra's code should be the same whether MPLS is enabled or not. Then, when MPLS is not enabled, we just disable all MPLS CLI commands. This way we don't need to add a lot of #ifdef cruft in zebra's core, improving code readability. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>