summaryrefslogtreecommitdiffstats
path: root/vtysh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* vtysh: don't collect config from watchfrrDavid Lamparter2017-08-151-0/+7
| | | | | | | This results in some hardcoded watchfrr logging config ending up in the integrated config otherwise. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Merge branch 'frr/pull/822' ("EVPN fixes")David Lamparter2017-08-092-7/+12
|\ | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * bgpd, tools, vtysh: Handle config migration from 'address-family evpn' to ↵Daniel Walton2017-08-081-4/+4
| | | | | | | | | | | | | | | | 'address-family l2vpn evpn' Ticket: CM-16747 Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * bgpd, lib, vtysh: Added support for mac filtering in route-mapsMitesh Kanjariya2017-08-081-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | 1. Added support to create mac filters 2. Enabled route-map commands for EVPN address family 3. Provision to add mac filters under match clause in route-maps Ticket: CM-16349 Review: CCR-6190 Unit-test: Manual (logs attached to ticket) Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
* | zebra: add support for static pseudowiresRenato Westphal2017-08-093-0/+23
|/ | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* vtysh: add missing \n on warning messageDavid Lamparter2017-08-061-1/+1
| | | | | | Oops, missed this in review. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* ospfd: Fix MI-OSPF CLIsChirag Shah2017-08-051-0/+1
| | | | | | | Handle all instance base clis calling ospf_lookup_instance() to return CMD_NOT_MY_INSTANCE in case of ospf is not found. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
* ospfd: Fix MI-OSPF configuraton clisChirag Shah2017-08-041-0/+11
| | | | | | | | | | | | | | | | Multi-Instance OSPF configuration CLI would fail because first client return error upon seeing qobj_index being 0. With new marco generate new error code to return from each instance (vtysh client) and if the command is intended for given instance, its qobj_index would be nonzero and process the command and push correct ospf context. Other instance would return the error. On vtysh end, check all instance return an error log a message to a file. Testing Done: Verfied various MI-OSPF configuration CLI with multi instances. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
* Merge branch 'master' into PIM_VRFDonald Sharp2017-08-022-52/+88
|\
| * Merge pull request #881 from donaldsharp/ping_tracerouteDavid Lamparter2017-07-311-8/+14
| |\ | | | | | | vtysh: Fix shell executed commands
| | * vtysh: Fix shell executed commandsDonald Sharp2017-07-311-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | Pretty much all shell executed commands from vtysh were not behaving correctly due to errors introduced in switching to the new cli. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| * | Merge pull request #865 from qlyoung/findDavid Lamparter2017-07-311-42/+37
| |\ \ | | |/ | |/| Find
| | * lib, vtysh: add `find COMMAND`Quentin Young2017-07-271-42/+37
| | | | | | | | | | | | | | | | | | Substring search through all defined commands in all nodes. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * | vtysh: fix markfile output for ldpdRenato Westphal2017-07-271-0/+23
| | | | | | | | | | | | | | | | | | | | | Put the "end" marker in the right places. This should fix the frr-reload.py script because it depends on the output of vtysh -m. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
| * | ldpd: add the exit-address-family commandRenato Westphal2017-07-271-1/+13
| |/ | | | | | | Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
| * Merge pull request #837 from qlyoung/fix-eigrp-routemap-cliDavid Lamparter2017-07-251-1/+1
| |\ | | | | | | eigrpd, vtysh: add dummy route-map cli
| | * eigrpd, vtysh: add dummy route-map cliQuentin Young2017-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eigrpd will successfully accept `(conf)# route-map foo ...` because it is not sent to eigrpd from vtysh, but of course, this is the classic node sync syndrome. Since eigrpd apparently doesn't support proper routemaps yet just add the cli so we can suppress the vtysh errors. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* | | vtysh: Allow vtysh to pass through vrf commands to pimDonald Sharp2017-07-242-2/+2
|/ / | | | | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* / Revert "*: reindent pt. 2"David Lamparter2017-07-221-36/+20
|/ | | | | | | | | This reverts commit c14777c6bfd0a446c85243d3a9835054a259c276. clang 5 is not widely available enough for people to indent with. This is particularly problematic when rebasing/adjusting branches. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: reindent pt. 2whitespace / reindent2017-07-171-20/+36
| | | | | | | | w/ clang 5 * reflow comments * struct members go 1 per line * binpack algo was adjusted
* *: reindentreindent-master-afterwhitespace / reindent2017-07-176-3839/+3306
| | | | | | indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Merge remote-tracking branch 'origin/master' into evpn_plus_struct_attrDonald Sharp2017-07-141-7/+7
|\
| * lib, vtysh: remove now-useless newline argDavid Lamparter2017-07-141-1/+1
| | | | | | | | | | | | It's always \n now, hooray. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * Merge remote-tracking branch 'frr/master' into newline-reduxDavid Lamparter2017-07-141-9/+8
| |\ | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * \ Merge remote-tracking branch 'frr/master' into newline-reduxDavid Lamparter2017-07-141-32/+14
| |\ \ | | | | | | | | | | | | | | | | | | | | Lots of conflicts from CMD_WARNING_CONFIG_FAILED... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * | | *: remove VTYNL, part 3 of 6David Lamparter2017-07-141-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * | | *: remove VTYNL, part 1 of 6David Lamparter2017-07-141-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * | | *: ditch vty_outln(), part 1 of 2David Lamparter2017-07-131-5/+5
| | | | | | | | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | | | Merge remote-tracking branch 'origin/master' into evpn_plus_struct_attrDonald Sharp2017-07-141-41/+22
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge pull request #808 from qlyoung/vtysh-termcolsRuss White2017-07-141-9/+8
| |\ \ \ | | |_|/ | |/| | lib, vtysh: pretty-print variable autocompletions
| | * | lib, vtysh: pretty-print variable autocompletionsQuentin Young2017-07-131-9/+8
| | |/ | | | | | | | | | | | | | | | | | | | | | Pretty-prints variable autocompletions by breaking them up into multiple lines, indenting them consistently and respecting the column width of the terminal. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * | Merge pull request #815 from dwalton76/CMD_WARNING_take2Russ White2017-07-141-5/+10
| |\ \ | | | | | | | | vtysh: return non-zero for configuration failures
| | * | vtysh: return non-zero for configuration failuresDaniel Walton2017-07-131-5/+10
| | |/ | | | | | | | | | | | | | | | | | | 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.
| * / vtysh: fixup password commandsQuentin Young2017-07-131-27/+4
| |/ | | | | | | | | | | | | `password` and `enable password` commands got a bit broken in an earlier commit, fix 'em up. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* / bgpd: Additional configuration for EVPNvivek2017-07-121-4/+70
|/ | | | | | | | | Implement configuration options for EVPN. The configuration options include VNI configuration with RD and Import and Export Route Targets. Also, display the EVPN configuration. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
* Merge branch 'master' of https://github.com/dwalton76/frr into ↵Daniel Walton2017-07-101-5/+3
|\ | | | | | | | | | | | | | | bgpd-ipv4-plus-label-misc3 Conflicts: bgpd/bgp_route.c bgpd/bgp_zebra.c
| * *: fix excess docstringQuentin Young2017-07-051-5/+3
| | | | | | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* | Merge branch 'master' of https://github.com/dwalton76/frr into ↵Daniel Walton2017-07-051-0/+29
|\| | | | | | | bgpd-ipv4-plus-label-misc3
| * lib, vtysh: rebase hashstatsQuentin Young2017-07-021-9/+7
| | | | | | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * lib, vtysh: hashtable statisticsQuentin Young2017-07-021-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the ability to name hash tables, and a new cli command that will show various summary statistics for named hash tables. Statistics computed are - load factor - full load factor (see comments) - stddev of full load factor Standard deviation is computed by storing the sum of squares of bucket lengths. This is somewhat susceptible to overflow. On platforms where a double is 32 bits, placing 65535 or more elements into a hash table opens up the potential for overflow, depending on how they are arranged in buckets (which depends on the hash function). For example, placing 65535 elements into one hash bucket would cause ssq overflow, but distributing 40000000 elements evenly among 400000 buckets (100 elements per bucket) would not. These cases are extremely degenerate, so the vague possibility of overflow in an informational command is deemed an acceptable tradeoff for constant time calculation of variance without locks or compromising efficiency of actual table operations. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* | Merge branch 'master' of https://github.com/dwalton76/frr into ↵Daniel Walton2017-06-302-14/+13
|\| | | | | | | | | | | | | bgpd-ipv4-plus-label-misc3 Conflicts: bgpd/bgp_route.c
| * *: vty_outln (vty, "") --> vty_out (vty, VTYNL)Quentin Young2017-06-291-2/+2
| | | | | | | | Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * *: s/VTY_NEWLINE/VTYNL/gQuentin Young2017-06-291-1/+1
| | | | | | | | | | | | Should be able to fit more vty_out onto one line now Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * *: use vty_outlnQuentin Young2017-06-291-8/+7
| | | | | | | | | | | | Saves 400 lines Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| * Merge pull request #757 from donaldsharp/extract_sortJafar Al-Gharaibeh2017-06-271-2/+2
| |\ | | | | | | vtysh: Sort ordering of vtysh_cmd.c
| | * vtysh: Sort ordering of vtysh_cmd.cDonald Sharp2017-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we created the vtysh_cmd.c file the vtysh_cmd.c output is slightly different for every run, even when none of the inputs have changed. Add the ability to sort the output so that the output is the same for every build. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| * | vtysh: fix various show commandsQuentin Young2017-06-211-4/+4
| |/ | | | | | | | | | | need 'do' to force ENABLE_NODE Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* / bgpd: Make SAFI-1 and SAFI-4 use the same tableDaniel Walton2017-06-301-3/+4
|/ | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
* vtysh: fix stack buffer overflowQuentin Young2017-06-191-6/+8
| | | | | | VARIABLE accepts arbitrary input Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* ldpd: convert cli and get rid of the xml interfaceRenato Westphal2017-06-161-19/+6
| | | | | | | | | | | | | The xml2cli.pl script was useful years ago when the vty code was very rudimentary. This is not the case anymore, so convert all ldpd CLI commands to use DEFUNs directly and get rid of the XML interface. The benefits are: * Consistency with the other daemons; * One less build dependency (the LibXML perl module); * Easier to add new commands. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>