aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vty
AgeCommit message (Collapse)AuthorFilesLines
2013-09-10vty: Fix compiler warning in the testHolger Hans Peter Freyther1-1/+2
2013-09-08vty: Add vty_install_default() and use for the vty nodesJacob Erlbeck2-0/+167
This adds the vty_install_default() function that is basically the install_default() function plus the registration of the commands 'exit' and 'end'. The latter is only provided in subnodes of ENABLED_NODE and CONFIG_NONE. The VTY test program is extended to check these commands. Ticket: OW#952
2013-08-06vty: Support multi-char separators and end stringsJacob Erlbeck1-1/+1
In vty_cmd_string_from_valstr() include the real string lengths of the sep and end arguments into the buffer size calculation.
2013-08-06vty: Fix misusage of snprintf in vty/utils.cJacob Erlbeck2-0/+55
Compiled with ubuntu 1204 (precise), where -Wformat-security is enabled by -Wall. Test yields ok, but the current implementation doesn't properly support multi-character separators and end strings. So the test output is truncated. Addresses: utils.c: In function 'vty_cmd_string_from_valstr': utils.c:84:2: warning: format not a string literal and no format arguments [-Wformat-security] utils.c:84:2: warning: format not a string literal and no format arguments [-Wformat-security] utils.c:108:2: warning: format not a string literal and no format arguments [-Wformat-security] utils.c:108:2: warning: format not a string literal and no format arguments [-Wformat-security]