summaryrefslogtreecommitdiffstats
path: root/src/vlib/dir.dox
blob: 4806e7a91c6f77419de292bf0f1e5f7841111219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2016 Cisco and/or its affiliates.
 * Copyright (c) 2016 Comcast Cable Communications Management, LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/* Doxygen directory documentation */
/**
@dir
@brief VLIB application library source.
*/
/*? %%clicmd:group_label VLIB application library%% ?*/
ce from vpp_ip_route import VppIpRoute, VppRoutePath class TemplateIpsecTunIfEsp(TemplateIpsec): """ IPsec tunnel interface tests """ encryption_type = ESP def setUp(self): super(TemplateIpsecTunIfEsp, self).setUp() self.tun_if = self.pg0 p = self.ipv4_params tun_if = VppIpsecTunInterface(self, self.pg0, p.vpp_tun_spi, p.scapy_tun_spi, p.crypt_algo_vpp_id, p.crypt_key, p.crypt_key, p.auth_algo_vpp_id, p.auth_key, p.auth_key) tun_if.add_vpp_config() tun_if.admin_up() tun_if.config_ip4() VppIpRoute(self, p.remote_tun_if_host, 32, [VppRoutePath(tun_if.remote_ip4, 0xffffffff)]).add_vpp_config() def tearDown(self): if not self.vpp_dead: self.vapi.cli("show hardware") super(TemplateIpsecTunIfEsp, self).tearDown() class TestIpsecTunIfEsp1(TemplateIpsecTunIfEsp, IpsecTun4Tests): """ Ipsec ESP - TUN tests """ tun4_encrypt_node_name = "esp4-encrypt" tun4_decrypt_node_name = "esp4-decrypt" class TestIpsecTunIfEsp2(TemplateIpsecTunIfEsp, IpsecTcpTests): """ Ipsec ESP - TCP tests """ pass if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)