aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/SetupFramework.py
AgeCommit message (Expand)AuthorFilesLines
2016-12-16Pylint fixesTibor Frank1-7/+5
2016-10-14CSIT-351: Testing Ubuntu 16.04.1 changespmikus1-1/+2
2016-10-04Fix pylint warnings in python librariesselias1-3/+3
2016-09-25Use tmp directory for log filesJan Gelety1-2/+2
2016-09-21CSIT-360: Fix: Parallel test sets run.Matej Klotton1-6/+9
2016-09-20CSIT-360: Parallel test sets runJan Gelety1-1/+11
2016-07-28CSIT-212 SetupFramework scp result - logging fixMiroslav Miklus1-9/+17
2016-06-02CSIT-114: Eliminate repeated download of PIP packagesCarsten Koester1-1/+1
2016-04-22Reformat python libraries.Matej Klotton1-19/+20
2016-04-08Add Vagrantfile for local testing.Stefan Kobza1-12/+53
2016-03-18Remove apt-get call to install dependencies.Carsten Koester1-15/+0
2016-02-27Minor change in virtual env creationJan Gelety1-1/+3
2016-02-23Automate VIRL simulation life cycle.Stefan Kobza1-0/+14
2016-02-08New version of RF tests.Stefan Kobza1-0/+137
pan class="n">cm->cdp_process_node_index, CDP_EVENT_DISABLE, 0); } cm->enabled = enable_disable; return rv; } static clib_error_t * cdp_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { cdp_main_t *cm = &cdp_main; int enable_disable = 1; int rv; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "disable")) enable_disable = 0; else if (unformat (input, "enable")) enable_disable = 1; else break; } rv = cdp_enable_disable (cm, enable_disable); switch (rv) { case 0: break; default: return clib_error_return (0, "cdp_enable_disable returned %d", rv); } return 0; } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (cdp_command, static) = { .path = "cdp", .short_help = "cdp enable | disable", .function = cdp_command_fn, }; /* *INDENT-ON* */ /* API message handler */ static void vl_api_cdp_enable_disable_t_handler (vl_api_cdp_enable_disable_t * mp) { vl_api_cdp_enable_disable_reply_t *rmp; cdp_main_t *cm = &cdp_main; int rv; rv = cdp_enable_disable (cm, (int) (mp->enable_disable)); REPLY_MACRO (VL_API_CDP_ENABLE_DISABLE_REPLY); } #include <cdp/cdp.api.c> static clib_error_t * cdp_init (vlib_main_t * vm) { cdp_main_t *cm = &cdp_main; cm->vlib_main = vm; /* Ask for a correctly-sized block of API message decode slots */ cm->msg_id_base = setup_message_id_table (); return 0; } VLIB_INIT_FUNCTION (cdp_init); /* *INDENT-OFF* */ VLIB_PLUGIN_REGISTER () = { .version = VPP_BUILD_VER, .description = "Cisco Discovery Protocol (CDP)", }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */