summaryrefslogtreecommitdiffstats
path: root/packaging
AgeCommit message (Expand)AuthorFilesLines
2017-11-24Add clean script for xenial package generationMarek Gradzki1-0/+4
2017-11-07Update release script with proper snapshot versionsMarek Gradzki1-7/+19
2017-10-04Bump jvpp version to 18.01-SNAPSHOTMarek Gradzki2-4/+4
2017-10-04Bump hc2vpp version to 1.18.01-SNAPSHOTMarek Gradzki3-3/+3
2017-07-07Bump jvpp version to 17.10-SNAPSHOTMarek Gradzki2-4/+4
2017-07-06Bump hc2vpp version to 1.17.10-SNAPSHOTMarek Gradzki3-3/+3
2017-04-04Bump hc2vpp version to 1.17.07-SNAPSHOTMarek Gradzki5-7/+7
2017-03-29HC2VPP-102: allow to configure vpp dependencies in deb/rpm build scriptsMarek Gradzki10-31/+41
2017-02-23Packaging: post 17.01 cleanupMarek Gradzki4-8/+13
2017-02-13Reduce java dependencies for deb packagesMarek Gradzki2-2/+2
2017-01-11Bump of jvpp version to 17.04Jan Srnicek3-3/+3
2017-01-05Bump hc2vpp versoin to 17.04Marek Gradzki3-4/+4
2017-01-03Remove vpp-ioam-plugin from suggested packagesMarek Gradzki2-2/+2
2017-01-03Set vpp version to 17.01 for hc rpm packagesMarek Gradzki1-1/+1
2017-01-03Set vpp version to 17.01 for hc deb packagesMarek Gradzki2-2/+2
2016-12-07Set hc2vpp version to 17.01 to align with vpp releaseMarek Gradzki3-4/+4
2016-11-21Update versioning after split (add 2000)Maros Marsalek1-1/+4
2016-11-03HONEYCOMB-257 - Honeycomb support for in-band OAM (iOAM) path tracingSrihari Raghavan2-2/+2
2016-11-02Add vpp-plugins as a dependencyMaros Marsalek3-3/+3
2016-10-12HONEYCOMB-217 Ubuntu16 (systemd) specific packagingMaros Marsalek15-46/+125
2016-09-20HONEYCOMB-215 Add suggests dependency from hc -> vpp_nsg_pluginMaros Marsalek1-0/+1
2016-09-09HONEYCOMB-205 Fix service definition for cetnos7Maros Marsalek1-2/+1
2016-08-31Bump version to 1.16.12-SNAPSHOTMaros Marsalek3-3/+3
2016-08-22Honeycomb deb packagingMaros Marsalek10-1/+130
2016-08-19HONEYCOMB-22: Remove karaf based distribution and wiringMaros Marsalek2-0/+0
2016-08-19HONEYCOMB-137: Put minimal distribution into RPMMaros Marsalek5-9/+7
2016-08-01HONEYCOMB-130: Update rpm build to use vpp-integration karafMaros Marsalek2-5/+5
2016-06-17Fix for rpmbuildEd Warnicke1-0/+2
2016-06-17Fix path for honyecomb.spec fileEd Warnicke1-1/+1
2016-06-17Instrument rpm build in honeycomb.Ed Warnicke1-1/+1
2016-06-15Added rpm for honeycombEd Warnicke6-0/+99
s="nf">format_stream_session (u8 * s, va_list * args) { stream_session_t *ss = va_arg (*args, stream_session_t *); int verbose = va_arg (*args, int); transport_proto_vft_t *tp_vft; u8 *str = 0; tp_vft = session_get_transport_vft (ss->session_type); if (verbose) str = format (0, "%-20llp%-20llp%-15lld", ss->server_rx_fifo, ss->server_tx_fifo, stream_session_get_index (ss)); if (ss->session_state == SESSION_STATE_READY) { s = format (s, "%-40U%v", tp_vft->format_connection, ss->connection_index, ss->thread_index, str); } else if (ss->session_state == SESSION_STATE_LISTENING) { s = format (s, "%-40U%v", tp_vft->format_listener, ss->connection_index, str); } else if (ss->session_state == SESSION_STATE_READY) { s = format (s, "%-40U%v", tp_vft->format_half_open, ss->connection_index, str); } else if (ss->session_state == SESSION_STATE_CLOSED) { s = format (s, "[CL] %-40U%v", tp_vft->format_connection, ss->connection_index, ss->thread_index, str); } else { clib_warning ("Session in state: %d!", ss->session_state); } vec_free (str); return s; } static clib_error_t * show_session_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { session_manager_main_t *smm = &session_manager_main; int verbose = 0, i; stream_session_t *pool; stream_session_t *s; u8 *str = 0; if (!smm->is_enabled) { return clib_error_return (0, "session layer is not enabled"); } while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "verbose")) verbose = 1; else break; } for (i = 0; i < vec_len (smm->sessions); i++) { u32 once_per_pool; pool = smm->sessions[i]; once_per_pool = 1; if (pool_elts (pool)) { vlib_cli_output (vm, "Thread %d: %d active sessions", i, pool_elts (pool)); if (verbose) { if (once_per_pool) { str = format (str, "%-50s%-20s%-20s%-15s", "Connection", "Rx fifo", "Tx fifo", "Session Index"); vlib_cli_output (vm, "%v", str); vec_reset_length (str); once_per_pool = 0; } /* *INDENT-OFF* */ pool_foreach (s, pool, ({ vlib_cli_output (vm, "%U", format_stream_session, s, verbose); })); /* *INDENT-ON* */ } } else vlib_cli_output (vm, "Thread %d: no active sessions", i); } vec_free (str); return 0; } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (show_session_command, static) = { .path = "show session", .short_help = "show session [verbose]", .function = show_session_command_fn, }; /* *INDENT-ON* */ static clib_error_t * clear_session_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { session_manager_main_t *smm = &session_manager_main; u32 thread_index = 0; u32 session_index = ~0; stream_session_t *pool, *session; application_t *server; if (!smm->is_enabled) { return clib_error_return (0, "session layer is not enabled"); } while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "thread %d", &thread_index)) ; else if (unformat (input, "session %d", &session_index)) ; else return clib_error_return (0, "unknown input `%U'", format_unformat_error, input); } if (session_index == ~0) return clib_error_return (0, "session <nn> required, but not set."); if (thread_index > vec_len (smm->sessions)) return clib_error_return (0, "thread %d out of range [0-%d]", thread_index, vec_len (smm->sessions)); pool = smm->sessions[thread_index]; if (pool_is_free_index (pool, session_index)) return clib_error_return (0, "session %d not active", session_index); session = pool_elt_at_index (pool, session_index); server = application_get (session->app_index); /* Disconnect both app and transport */ server->cb_fns.session_disconnect_callback (session); return 0; } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (clear_session_command, static) = { .path = "clear session", .short_help = "clear session thread <thread> session <index>", .function = clear_session_command_fn, }; /* *INDENT-ON* */ static clib_error_t * session_enable_disable_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) { u8 is_en = 1; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { if (unformat (input, "enable")) is_en = 1; else if (unformat (input, "disable")) is_en = 0; else return clib_error_return (0, "unknown input `%U'", format_unformat_error, input); } return vnet_session_enable_disable (vm, is_en); } /* *INDENT-OFF* */ VLIB_CLI_COMMAND (session_enable_disable_command, static) = { .path = "session", .short_help = "session [enable|disable]", .function = session_enable_disable_fn, }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */