aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Expand)AuthorFilesLines
2018-11-29VPP-1507: Added binary api to dump configured ip_punt_redirectPavel Kotucek3-23/+89
2018-11-29make test: create virtualenv under /test/Klement Sekera11-73/+79
2018-11-29API: Add support for type aliasesOle Troan1-0/+2
2018-11-28test/remote_test.py: Fix missing importPaul Vinciguerra1-0/+1
2018-11-27VPP-1508 python3 tests: use six.iteritemsPaul Vinciguerra2-6/+8
2018-11-27VPP-1508 python3 tests: .encode('hex')Paul Vinciguerra6-37/+44
2018-11-27VPP-1508 Fix for bug introduced in tests on use of repr.Paul Vinciguerra5-12/+12
2018-11-26Split non-parallel testsuitejuraj.linkes3-26/+40
2018-11-26Python3 tests: Fix asserts.Paul Vinciguerra5-13/+13
2018-11-26Revert "VPP-1508 python3 tests: raw_input"Ole Trøan1-24/+19
2018-11-26 test_fib.py: Remove empty methodsPaul Vinciguerra1-10/+0
2018-11-26VPP-1508 Add support for environment markers.Paul Vinciguerra2-1/+13
2018-11-26VPP-1508 python3 tests locals()Paul Vinciguerra1-2/+3
2018-11-26Fix swapped decorators in VppTestCase.Paul Vinciguerra1-5/+5
2018-11-26VPP-1508 python3 tests: raw_inputPaul Vinciguerra1-19/+24
2018-11-25VPP-1508 python3 tests: python3 repr.Paul Vinciguerra5-20/+34
2018-11-25make test: Fix too wide subprocess exceptionsPaul Vinciguerra3-5/+5
2018-11-25Fix typo in test/test_acl_plugin_conns.pyPaul Vinciguerra1-5/+5
2018-11-25Fix Typo: test/test_mtu.pyPaul Vinciguerra1-3/+3
2018-11-24VPP-1505 VPP-1508 Remove dep.: py_lispnetworkingPaul Vinciguerra3-11/+24
2018-11-23make test: remove test-ext, fix test*-all targetsKlement Sekera1-5/+4
2018-11-23Fix test framework keepalivejuraj.linkes1-2/+1
2018-11-23Fix test logging propagationjuraj.linkes1-0/+1
2018-11-23VPP-1476: L2fib failures in masterPavel Kotucek1-7/+8
2018-11-23NAT44: improve expired sessions reuse (VPP-1503)Matus Fabian1-17/+2
2018-11-22MAP: Use explicit address/prefix types in APIOle Troan4-28/+29
2018-11-22Revert "Fix instance method call in test/framework.py"Ole Trøan2-8/+15
2018-11-22Fix instance method call in test/framework.pyPaul Vinciguerra2-15/+8
2018-11-22Add RFC5424 syslog protocol support (VPP-1139)Matus Fabian3-1/+247
2018-11-22NAT44: Apply transitory timeout on TCP RST (VPP-1494)Matus Fabian1-0/+51
2018-11-20make test: Shorten VCL extended test timesDave Wallace1-73/+72
2018-11-20NAT44: fix virtual fragmentation reassembly in forwarding mode (VPP-1501)Matus Fabian1-0/+26
2018-11-19VPP-1498: test/framework.py: AttributeErrorPaul Vinciguerra1-1/+2
2018-11-19NAT44: fix bug in TCP close with output-feature interface (VPP-1493)Matus Fabian1-0/+82
2018-11-16VPP-1495: Fix intermittent stat sock test failures.Paul Vinciguerra1-1/+7
2018-11-15QoS: fix always recoding as IPNeale Ranns1-13/+23
2018-11-15GBP: redirect contractsNeale Ranns2-29/+605
2018-11-15ipsec: infra for selecting backendsKlement Sekera6-13/+109
2018-11-09Fix logging into multiple filesjuraj.linkes3-7/+6
2018-11-09tcp: separate unit and throughput testsFlorin Coras1-8/+20
2018-11-08make test: remove unnecessary checkKlement Sekera1-2/+0
2018-11-08make test: bfd refactorKlement Sekera2-5/+14
2018-11-08make test: rename dummy test nameKlement Sekera1-1/+1
2018-11-08make test: p2p ethernet refactorKlement Sekera2-23/+15
2018-11-07GBP: Endpoints with VLAN tags and birdges that don't learnNeale Ranns2-3/+180
2018-11-07GBP Endpoint LearningNeale Ranns10-282/+1741
2018-11-07VCL: Fix socket_test.sh to build test apps.Dave Wallace1-4/+7
2018-11-06BD ARP entry use common API typesNeale Ranns3-40/+41
2018-11-06IGMP: Improved handling of (*,G) join and leaveNeale Ranns1-2/+67
2018-11-06VPP-1481: fixed tlv length checking & added testsFilip Varga1-3/+9
str) case SNAT_SESSION_##N: t = (u8 *) str; break; foreach_snat_session_state #undef _ default: t = format (t, "unknown"); } s = format (s, "%s", t); return s; } u8 * format_snat_session (u8 * s, va_list * args) { snat_main_per_thread_data_t *sm = va_arg (*args, snat_main_per_thread_data_t *); snat_session_t *sess = va_arg (*args, snat_session_t *); if (snat_is_unk_proto_session (sess)) { s = format (s, " i2o %U proto %u fib %u\n", format_ip4_address, &sess->in2out.addr, sess->in2out.port, sess->in2out.fib_index); s = format (s, " o2i %U proto %u fib %u\n", format_ip4_address, &sess->out2in.addr, sess->out2in.port, sess->out2in.fib_index); } else { s = format (s, " i2o %U\n", format_snat_key, &sess->in2out); s = format (s, " o2i %U\n", format_snat_key, &sess->out2in); } if (is_ed_session (sess) || is_fwd_bypass_session (sess)) { if (is_twice_nat_session (sess)) { s = format (s, " external host o2i %U:%d i2o %U:%d\n", format_ip4_address, &sess->ext_host_addr, clib_net_to_host_u16 (sess->ext_host_port), format_ip4_address, &sess->ext_host_nat_addr, clib_net_to_host_u16 (sess->ext_host_nat_port)); } else { if (sess->ext_host_addr.as_u32) s = format (s, " external host %U:%u\n", format_ip4_address, &sess->ext_host_addr, clib_net_to_host_u16 (sess->ext_host_port)); } } s = format (s, " index %llu\n", sess - sm->sessions); s = format (s, " last heard %.2f\n", sess->last_heard); s = format (s, " total pkts %d, total bytes %lld\n", sess->total_pkts, sess->total_bytes); if (snat_is_session_static (sess)) s = format (s, " static translation\n"); else s = format (s, " dynamic translation\n"); if (is_fwd_bypass_session (sess)) s = format (s, " forwarding-bypass\n"); if (is_lb_session (sess)) s = format (s, " load-balancing\n"); if (is_twice_nat_session (sess)) s = format (s, " twice-nat\n"); return s; } u8 * format_snat_user (u8 * s, va_list * args) { snat_main_per_thread_data_t *sm = va_arg (*args, snat_main_per_thread_data_t *); snat_user_t *u = va_arg (*args, snat_user_t *); int verbose = va_arg (*args, int); dlist_elt_t *head, *elt; u32 elt_index, head_index; u32 session_index; snat_session_t *sess; s = format (s, "%U: %d dynamic translations, %d static translations\n", format_ip4_address, &u->addr, u->nsessions, u->nstaticsessions); if (verbose == 0) return s; if (u->nsessions || u->nstaticsessions) { head_index = u->sessions_per_user_list_head_index; head = pool_elt_at_index (sm->list_pool, head_index); elt_index = head->next; elt = pool_elt_at_index (sm->list_pool, elt_index); session_index = elt->value; while (session_index != ~0) { sess = pool_elt_at_index (sm->sessions, session_index); s = format (s, " %U\n", format_snat_session, sm, sess); elt_index = elt->next; elt = pool_elt_at_index (sm->list_pool, elt_index); session_index = elt->value; } } return s; } u8 * format_snat_static_mapping (u8 * s, va_list * args) { snat_static_mapping_t *m = va_arg (*args, snat_static_mapping_t *); nat44_lb_addr_port_t *local; if (is_identity_static_mapping (m)) { if (is_addr_only_static_mapping (m)) s = format (s, "identity mapping %U", format_ip4_address, &m->local_addr); else s = format (s, "identity mapping %U %U:%d", format_snat_protocol, m->proto, format_ip4_address, &m->local_addr, m->local_port); /* *INDENT-OFF* */ pool_foreach (local, m->locals, ({ s = format (s, " vrf %d", local->vrf_id); })); /* *INDENT-ON* */ return s; } if (is_addr_only_static_mapping (m)) s = format (s, "local %U external %U vrf %d %s %s", format_ip4_address, &m->local_addr, format_ip4_address, &m->external_addr, m->vrf_id, m->twice_nat == TWICE_NAT ? "twice-nat" : m->twice_nat == TWICE_NAT_SELF ? "self-twice-nat" : "", is_out2in_only_static_mapping (m) ? "out2in-only" : ""); else { if (is_lb_static_mapping (m)) { s = format (s, "%U external %U:%d %s %s", format_snat_protocol, m->proto, format_ip4_address, &m->external_addr, m->external_port, m->twice_nat == TWICE_NAT ? "twice-nat" : m->twice_nat == TWICE_NAT_SELF ? "self-twice-nat" : "", is_out2in_only_static_mapping (m) ? "out2in-only" : ""); /* *INDENT-OFF* */ pool_foreach (local, m->locals, ({ s = format (s, "\n local %U:%d vrf %d probability %d\%", format_ip4_address, &local->addr, local->port, local->vrf_id, local->probability); })); /* *INDENT-ON* */ } else s = format (s, "%U local %U:%d external %U:%d vrf %d %s %s", format_snat_protocol, m->proto, format_ip4_address, &m->local_addr, m->local_port, format_ip4_address, &m->external_addr, m->external_port, m->vrf_id, m->twice_nat == TWICE_NAT ? "twice-nat" : m->twice_nat == TWICE_NAT_SELF ? "self-twice-nat" : "", is_out2in_only_static_mapping (m) ? "out2in-only" : ""); } return s; } u8 * format_snat_static_map_to_resolve (u8 * s, va_list * args) { snat_static_map_resolve_t *m = va_arg (*args, snat_static_map_resolve_t *); vnet_main_t *vnm = vnet_get_main (); if (m->addr_only) s = format (s, "local %U external %U vrf %d", format_ip4_address, &m->l_addr, format_vnet_sw_if_index_name, vnm, m->sw_if_index, m->vrf_id); else s = format (s, "%U local %U:%d external %U:%d vrf %d", format_snat_protocol, m->proto, format_ip4_address, &m->l_addr, m->l_port, format_vnet_sw_if_index_name, vnm, m->sw_if_index, m->e_port, m->vrf_id); return s; } u8 * format_det_map_ses (u8 * s, va_list * args) { snat_det_map_t *det_map = va_arg (*args, snat_det_map_t *); ip4_address_t in_addr, out_addr; u32 in_offset, out_offset; snat_det_session_t *ses = va_arg (*args, snat_det_session_t *); u32 *i = va_arg (*args, u32 *); u32 user_index = *i / SNAT_DET_SES_PER_USER; in_addr.as_u32 = clib_host_to_net_u32 (clib_net_to_host_u32 (det_map->in_addr.as_u32) + user_index); in_offset = clib_net_to_host_u32 (in_addr.as_u32) - clib_net_to_host_u32 (det_map->in_addr.as_u32); out_offset = in_offset / det_map->sharing_ratio; out_addr.as_u32 = clib_host_to_net_u32 (clib_net_to_host_u32 (det_map->out_addr.as_u32) + out_offset); s = format (s, "in %U:%d out %U:%d external host %U:%d state: %U expire: %d\n", format_ip4_address, &in_addr, clib_net_to_host_u16 (ses->in_port), format_ip4_address, &out_addr, clib_net_to_host_u16 (ses->out.out_port), format_ip4_address, &ses->out.ext_host_addr, clib_net_to_host_u16 (ses->out.ext_host_port), format_snat_session_state, ses->state, ses->expire); return s; } u8 * format_nat44_reass_trace (u8 * s, va_list * args) { CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *); CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *); nat44_reass_trace_t *t = va_arg (*args, nat44_reass_trace_t *); s = format (s, "NAT44_REASS: sw_if_index %d, next index %d, status %s", t->sw_if_index, t->next_index, t->cached ? "cached" : "translated"); return s; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */