summaryrefslogtreecommitdiffstats
path: root/vtysh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Unable to remove route-map from quaggaDaniel Walton2016-09-091-2/+2
| | | | | | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-12816 pim was missing route-map hooks
* vrf: add a runtime check before playing with netnsNicolas Dichtel2016-09-091-1/+1
| | | | | | | | | | | This patch adds a runtime check to determine if netns are available. Some systems like OpenWRT have the system call setns() but don't have the kernel option CONFIG_NET_NS enabled. Reported-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Tested-by: Christian Franke <chris@opensourcerouting.org> (cherry picked from commit 04a3aabf58d95d01c4c8168eeff43cf9d9892eee)
* lib, vtysh: support multiple VRFs by using linux netnsFeng Lu2016-09-095-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | We realize VRFs with linux netns by default. The main job is to associate a VRF with a netns. Currently this is done by the configuration: [no] vrf N netns <netns-name> This command is also available in vtysh and goes to only zebra, because presently only zebra supports multiple VRF. A file descriptor is added to "struct vrf". This is for the associated netns file. Once the command "vrf N netns NAME" is executed, the specified file is opened and the file descriptor is stored in the VRF N. In this way the association is formed. In vrf_socket(), we first switch to the specified VRF by using the stored file descriptor, and then can allocate a socket which is working in the associated netns. Signed-off-by: Feng Lu <lu.feng@6wind.com> Reviewed-by: Alain Ritoux <alain.ritoux@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> (cherry picked from commit 55cfa2f190620f7c711944637659bc208970324d)
* Update Traffic Engineering Support for OSPFDOlivier Dugeon2016-09-032-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: I am squashing several commits together because they do not independently compile and we need this ability to do any type of sane testing on the patches. Since this series builds together I am doing this. -DBS This new structure is the basis to get new link parameters for Traffic Engineering from Zebra/interface layer to OSPFD and ISISD for the support of Traffic Engineering * lib/if.[c,h]: link parameters struture and get/set functions * lib/command.[c,h]: creation of a new link-node * lib/zclient.[c,h]: modification to the ZBUS message to convey the link parameters structure * lib/zebra.h: New ZBUS message Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> Add support for IEEE 754 format * lib/stream.[c,h]: Add stream_get{f,d} and stream_put{f,d}) demux and muxers to safely convert between big-endian IEEE-754 single and double binary format, as used in IETF RFCs, and C99. Implementation depends on host using __STDC_IEC_559__, which should be everything we care about. Should correctly error out otherwise. * lib/network.[c,h]: Add ntohf and htonf converter * lib/memtypes.c: Add new memeory type for Traffic Engineering support Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> Add link parameters support to Zebra * zebra/interface.c: - Add new link-params CLI commands - Add new functions to set/get link parameters for interface * zebra/redistribute.[c,h]: Add new function to propagate link parameters to routing daemon (essentially OSPFD and ISISD) for Traffic Engineering. * zebra/redistribute_null.c: Add new function zebra_interface_parameters_update() * zebra/zserv.[c,h]: Add new functions to send link parameters Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> Add support of new link-params CLI to vtysh In vtysh_config.c/vtysh_config_parse_line(), it is not possible to continue to use the ordered version for adding line i.e. config_add_line_uniq() to print Interface CLI commands as it completely break the new LINK_PARAMS_NODE. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> Update Traffic Engineering support for OSPFD These patches update original code to RFC3630 (OSPF-TE) and add support of RFC5392 (Inter-AS v2) & RFC7471 (TE metric extensions) and partial support of RFC6827 (ASON - GMPLS). * ospfd/ospf_dump.[c,h]: Add new dump functions for Traffic Engineering * ospfd/ospf_opaque.[c,h]: Add new TLV code points for RFC5392 * ospfd/ospf_packet.c: Update checking of OSPF_OPTION * ospfd/ospf_vty.[c,h]: Update ospf_str2area_id * ospfd/ospf_zebra.c: Add new function ospf_interface_link_params() to get Link Parameters information from the interface to populate Traffic Engineering metrics * ospfd/ospfd.[c,h]: Update OSPF_OPTION flags (T -> MT and new DN) * ospfd/ospf_te.[c,h]: Major modifications to update the code to new link parameters structure and new RFCs Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com> tmp
* vtysh: Fix, guard against NULL pointer dereferenceJafar Al-Gharaibeh2016-09-031-1/+5
| | | | | | | | | getpwuid() may fail returning a null value leaving subsequent code vulnerable to a null pointer dereference. Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com> Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com> Tested-by: NetDEF CI System <cisystem@netdef.org>
* Merge remote-tracking branch 'origin/cmaster' into cmaster-nextDonald Sharp2016-08-191-1/+39
|\
| * vtysh --markfile needs to ignore the "end" linesDaniel Walton2016-08-181-1/+39
| | | | | | | | | | | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-12515
* | Merge remote-tracking branch 'origin/cmaster' into cmaster-nextDonald Sharp2016-08-181-1/+4
|\|
| * bgpd: Fix for CM-11777 Need Quagga.conf created at quagga installSid Khot2016-08-171-1/+4
| | | | | | | | | | | | Ticket: CM-11777 Reviewed By: CCR-5110 Testing Done: Manual
* | lib, bgpd, tests: Refactor FILTER_X in zebra.hDonald Sharp2016-08-161-0/+1
|/ | | | | | | | lib/zebra.h has FILTER_X #define's. These do not belong there. Put them in lib/filter.h where they belong. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> (cherry picked from commit 0490729cc033a3483fc6b0ed45085ee249cac779)
* vtysh: Do not run extract.pl over protocols that are not configuredDonald Sharp2016-07-281-4/+31
| | | | | | | | | Dynamically figure out the list of .c files that we need to scan based upon whether or not the daemon is --enabled via configure. Ticket: CM-12081 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Quentin Young <qlyoung@cumulusnetworks.com>
* *: get rid of "MTYPE 0"David Lamparter2016-07-282-3/+3
| | | | | | | | | | | A few places are using 0 in place of the MTYPE_* argument. The following rewrite of the alloc tracking won't deal with that, so let's use MTYPE_TMP instead. Acked-by: Vincent JARDIN <vincent.jardin@6wind.com> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> [DL: v2: fix XFREE(0, foo) calls too] Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* bgpd: Fix for CM-11908 BGP: 'Address-family encap' cli issuesSid Khot2016-07-271-0/+2
| | | | | | | | | | | | | Made fix to handle the "Ambigious command" for address-family vpvn6 and vpnv6 unicast. Rest of the bug analysis is below: 1. Issues with address-family encap/address-family encapv6/address-family vpnv6/address-family vpnv6 unicast need to be added to the ignore list in the test file tests.l3.quagga_cfg_cli_crawler_test. Sid to fix the "Ambiguous command" for vpnv6 as part of fix for this bug. 2. Neighbor <ipaddr/interface> disable-connected-check/ttl. Options should not be listed for interface. Anitha to file bugs for these. And also remove these commands from the test file tests.l3.quagga_cfg_cli_crawler_test. Ticket: CM-11908 Reviewed By: CCR-4999 Testing Done: Manual, Ran the tests.l3.quagga_cfg_cli_crawler_test <DETAILED DESCRIPTION (REPLACE)>
* Make vtysh-integrated-config truly the default and fix quagga reload for this.Dinesh G Dutt2016-07-201-1/+1
| | | | | | | | | | | | | | | | | | Ticket: CM-11910 Reviewed By: sharpd, routing-dev slack Testing Done: Test with nothing in vtysh.conf, add no, remove it etc. Even though we force integrated config to be the default, we do this by adding a line to our default vtysh.conf which has integrated config enabled. When we stopped printing integrated-config as part of wr mem or show running-config, we broke quagga reload because it was explicitly looking for integrated config. Furthermore, merely fixing quagga reload wouldn't work because subsequent saves would result in config being saved to individual files since vtysh.conf no longer forced the file to be integrated. This patch fixes both issues. Makes integrated config the default in the code, rather than via a shipped default file, and fixes quagga reload to look for the "no integrated-vtysh-config" to deny attempting a reload.
* Don't print empty sections as they clutter the output of show-runningDinesh G Dutt2016-07-192-3/+11
| | | | | | | | | | | | | | | | | | | | Ticket: CM-11808 Reviewed By: CCR-4971 Testing Done: Usual stuff including doing show running with multiple daemons Interface and VRF are both sections of the config that could possibly be empty. This unnecessarily clutters the output of show running. This patch fixes that by not displaying empty sections of interface, and vrf. Routemaps have a genuine empty stanza and so we cannot add routemap to this list. Unfortunately this means a "show running-config ospfd" may have empty route-maps if the route-maps all correspond to BGP, for example. This is not a concern for the entire "show running-config". The trick in fixing this is on the vtysh side rather than on the client side. The reason for this is that its quite tricky given the number of options to ensure that a daemon never printed a section header unless there was something to print. On the vtysh side, however, its easy to check if a section is empty and not print it.
* Don't display integrated-vtysh-config as its the default in CL.Dinesh G Dutt2016-07-191-2/+2
| | | | | | | | | | | | Ticket: CM-11832 Reviewed By: Testing Done: Testing that its not displayed if enabled & only if disabled In the spirit of not displaying the defaults, we shouldn't display "service integrated-vtysh-config" as its the default. It also tends to clutter the output with stuff the user doesn't know or care about. This patch removes displaying that and only prints it when the option is disabled.
* vtysh: auto-generated vtysh_cmd.c file should depend on its creatorPaul Jakma2016-06-221-3/+2
|
* bgpd, lib, vtysh: hook up bgp ENCAP CLI nodeLou Berger2016-06-122-0/+67
| | | | | | | | | | | Signed-off-by: Lou Berger <lberger@labn.net> Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit a3fda886cdd48b6d8c421ebb1401142fa9ee93b0) Conflicts: bgpd/bgp_vty.c bgpd/bgpd.c vtysh/vtysh_config.c
* bgpd: Fixes and updates for VPNv6vivek2016-06-111-1/+1
| | | | | | | | | VPNv6 changes picked from upstream needed fixes and updates due to some fundamental changes implemented by Cumulus (BGP update-groups, RFC 5549 and nexthop setting etc.) which aren't present upstream. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Updates: 945c8fe, 8ecd326, bb86c60, 93b73df, f4c8985
* bgpd: improve cleanup in bgp_delete()Lou Berger2016-06-091-1/+1
| | | | | | | | | | | | | Signed-off-by: Lou Berger <lberger@labn.net> (cherry picked from commit 82dd707988b7481e203cab058c92f0b3041dd558) Conflicts: bgpd/bgp_nexthop.h bgpd/bgp_route.c bgpd/bgp_routemap.c bgpd/bgp_zebra.h bgpd/bgpd.c bgpd/bgpd.h
* build: determine CFLAGS more intelligentlyDavid Lamparter2016-06-081-0/+3
| | | | | | | | Instead of hardcoding some compiler detection, this just checks which CFLAGS actually work with the compiler specified by the user. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 3a7e83c2387885075c9ecf1912dd6c9399c6947a)
* vtysh: drop unused variables & RETSIGTYPEDavid Lamparter2016-06-081-8/+2
| | | | | | | | | | Drop unused return values in vtysh. Also gets rid of the rather funny prototyping of signal setup in vtysh - which as a side effect makes it not need AC_TYPE_SIGNAL in configure.ac anymore. It wasn't used sensibly to begin with... Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 6769f43de9d595b935f2ebf1cae1428e1d1a3a5f)
* vtysh: fix function prototypesDavid Lamparter2016-06-086-67/+21
| | | | | | | | This makes a whole bunch of vtysh functions static, fixes prototypes for a few more, and masks user_free() and user_write_config() (both unused.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit a9eb9063071437f5cde3b78adf273b428c49d378)
* lib, vtysh: reduce unneccessary C extension usageDavid Lamparter2016-06-081-1/+4
| | | | | | | | We're only supporting GCC, Clang and ICC; but there's no reason to use nonstandard C constructs if they don't actually provide any benefit. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 71f55f38cb3dd804176e7f382f52b75ddcd437de)
* bgpd, lib, vtysh: hook up bgp VPNv6 CLI nodevivek2016-06-071-1/+41
| | | | | | | | | | | Signed-off-by: Lou Berger <lberger@labn.net> Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 13c378d96a57017f5995b2e0df46cfc31123f0e8) Conflicts: bgpd/bgp_vty.c bgpd/bgpd.c vtysh/vtysh_config.c
* Add code to extract.pl.in to prevent further cli function overwritesDonald Sharp2016-05-301-1/+30
| | | | | | | | | | | | | | | | | Currently extract.pl.in is used to build the vtysh cli. When two different cli's collide with the same command name, the original cli is never called, because it is dropped. This code notes the silent drop and tracks the number of drops. If they change then the code will fail the build. The current number of drops was figured out by running extract.pl and counting up the drops then adding code to compare the numbers returned. If you have added to the problem, the solution is to fix your cli command to not stomp on someone else's command. If you have removed a stomp, safely modify extract.pl.in as part of your commit. Signed-off-by: Donald Sharp <sharpd at cumulusnetworks.com> Acked-by: Vincent Jardin <vincent.jardin@6wind.com>
* build: get rid of INCLUDES, use AM_CPPFLAGSDavid Lamparter2016-06-031-1/+1
| | | | | | | | | | | | | INCLUDES in configure.ac was not used at all, and INCLUDES in Makefile.am is supposed to be AM_CPPFLAGS these days. Reduces warnings spewed during bootstrap/autoreconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Acked-by: Greg Troxel <gdt@ir.bbn.com> Acked-by: Feng Lu <lu.feng@6wind.com> Acked-by: Paul Jakma <paul@jakma.org> (cherry picked from commit 237aac56960575f6ad2451ba2796d94bd5ae4b33)
* vtysh: Add code to allow pimd show running specificDonald Sharp2016-06-011-4/+6
| | | | | | | | | Add code to allow the show run command to accept and display the pimd specific configuration. Ticket: CM-11218 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
* vtysh: vtysh_pam() needs an ifdef USE_PAM checkDaniel Walton2016-05-271-0/+2
| | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
* vtysh: Fix compile failure from cherry-pickDonald Sharp2016-05-271-1/+1
| | | | | | | Fix a compile failure from a cherry-pick of a commit from upstream Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* vtysh: allow --with-libpam to build with --enable-werrorDonald Sharp2016-05-261-1/+1
| | | | | | | | The function vtysh_pam fails the build with --enable-werror enabled because it is a static function not declared as such Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> (cherry picked from commit 8965be4baaa1a4c619cbb4a8a10d15a72d80b60d)
* build: Remove the old PIC/PIE patch, let libtool sort it outPaul Jakma2016-05-261-2/+1
| | | | | | | * Remove the old change from '08 to add in PIE arguments at automake level. Versions of libtool since then know how to deal with -fpie and do the right thing according to whether its building shared or executable objects. So just pass '-fpie' as CFLAG and let libtool do its thing.
* pimd: merge pimd as of 2015-01-19David Lamparter2016-05-263-3/+7
| | | | | | | | | | | | | | | | | | | | | Welcome pimd to the Quagga daemon zoo! This is a merge of commit 77ae369 ("pimd: Log ifindex found for an interface when zebra lib reports a new connected address."), with the intermediate "reconnect" changes removed (c9adf00...d274381). d274381 is replaced with b162ab7, which includes some changes. In addition, 4 reconnect-related changes and 1 cosmetic one have been bumped out. The rebase command used to produce the branch that is merged here is: git rebase --onto b162ab7 c9adf00 77ae369 Note that 3 patches had their author rewritten from "Anonymous SR#108542 <>" (which is not a valid git author ID) to: "Savannah SR#108542 <nbahr@atcorp.com>" (which is the e-mail address listed in the associated Savannah ticket) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* vtysh: fix vtysh warnings from another compilerDonald Sharp2016-05-201-31/+3
| | | | | | | | Remove some dead code and fix char `\0` being used as NULL. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
* vtysh: Allow file read in to continue in more casesDonald Sharp2016-04-151-1/+9
| | | | | | | | | | | | | | When a duplicate command is read in from a file, there are cases where daemons return CMD_WARNING this causes the command to not be send to subsuquent daemons( if any ). Allow the read in of commands to continue in this situation. Ticket: CM-10393 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
* vtysh -f needs to flock the fileDaniel Walton2016-04-151-0/+2
| | | | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-10428
* stop/start of zebra creates empty Quagga.conf file when "no serviceDaniel Walton2016-04-131-1/+1
| | | | | | | | | | | integrated-vtysh-config" Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-10403 We do not need to pass O_CREAT to open() when creating the flock file
* vtysh: Add file locking to Quagga.confDonald Sharp2016-04-071-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Systemd runs in parallel all quagga daemons after zebra is started up. Now each command has a ExecStartPost which executes vtysh -b -n. Each of these vtysh -b -n would blask configuration to each daemon. This leads to the situation where vtysh process #2 is blasting in config that is at a different spot in the Quagga.conf file that vtysh process #1 is at. If #1 has put itself into a different submode that #2 is at, we will get failures and the code will not be read in properly. This problem is especially evident for when you have more than one protocol running at one time. Solution: flock Quagga.conf. If you don't get the flock, sleep for a while, try to get flock again go to slepp... Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: DAve Olson <olson@cumulusnetworks.com>
* lib, vtysh: Return actual problem further upDonald Sharp2016-04-073-30/+43
| | | | | | | | | | | | When we encounter a problem loading a config file quantify to the end user what has gone wrong, with a combination of err output as well as return codes. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Dave Olson <olson@cumulusnetworks.com>
* vtysh: Make vtysh run as quagga userDonald Sharp2016-04-011-0/+24
| | | | | | | | | | | | vtysh should be run as the quagga user, else when you execute a 'wr mem' the Quagga.conf and vtysh.conf files are owned by whomever started the process. This can cause file ownership issues. Ticket: CM-10217 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Dave Olson <olson@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
* vtysh: Set an erroneous exit code if dry run fails because of syntax errorDonald Sharp2016-03-094-10/+28
| | | | | | | | | | | | | | | vtysh has a -C option to do a dry run of the quagga commands. However, the program always returns 0 even when there's an error detected in the command. Furthermore, it only parses vtysh.conf, not Quagga.conf. This patch makes vtysh -C parse Quagga.conf also and return a non-zero exit code so that network automation tools can catch this to flag errors in syntax. This non-zero exit code along with printing the exact error with the line number and offending line itself should help in fixing the error. But this lack of proper error code requires the automation tools to go through an additional hoop to validate the syntax. Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
* vtysh: make HIDDEN commands workDaniel Walton2016-03-021-48/+68
| | | | | | | Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-9646
* lib, vtysh: Fix 'banner motd file' commandDonald Sharp2016-03-011-2/+5
| | | | | | | | | the File to specify was inadvertently a optional parameter. Dissallow this. Ticket: CM-9431 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
* vtysh: Add ability to only look at one processes work queueDonald Sharp2016-02-251-1/+30
| | | | | | | | When examining performance information it is nice to not have to look at daemons who you are not interested in. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
* lib, vtysh: Rehook the motd command back into vtyshDonald Sharp2016-02-181-0/+9
| | | | | | | | | Code was already in place to read and display a motd, but no cli was present to make it happen. Add the cli back to vtysh.conf. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
* quagga: remove babelDaniel Walton2016-02-115-37/+7
| | | | | | | | Ticket: CM-9274 Reviewed By: sharpd@cumulusnetworks.com Testing Done: <DETAILED DESCRIPTION (REPLACE)>
* vtysh: Modify -b option to work with -n optionDonald Sharp2016-02-101-1/+4
| | | | | | | | | | If there is no Quagga.conf file and the -b option has been specified, the vtysh -b file is erroring out and failing. Modify the code to use -n in conjunction of -b and to not error out in this situation. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* lib, vtysh, zebra: Better VRF debug handlingDonald Sharp2016-02-033-1/+7
| | | | | | | | | | | | Fixup the debug handling of vrf's to be a bit more explicit how we create a vrf internally. Add code to turn on/off debugging of vrf's. Ticket: CM-9063 Testing: Manual Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* vtysh: Fix vrf submode to call correct daemonsDonald Sharp2016-02-021-1/+1
| | | | | | | | | | | The vrf-submode was incorrectly calling sub-daemons that it should not be doing so. Ticket: CM-9076 Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Testing: See Bug Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* vtysh: Add VRF sub-modeDonald Sharp2016-02-024-19/+62
| | | | | | Add the VRF submode to vtysh. Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>