Searched refs:intf (Results 1 - 25 of 36) sorted by relevance

12

/vpp/build-root/vagrant/
H A Dclearinterfaces.sh12 for intf in $(ls /sys/class/net) ; do
13 if [ -d /sys/class/net/$intf/device ] &&
14 [ "$(route --inet --inet6 | grep default | grep $intf)" == "" ] ; then
15 sudo -E ifconfig $intf down
/vpp/extras/vagrant/
H A Dclearinterfaces.sh12 for intf in $(ls /sys/class/net) ; do
13 if [ -d /sys/class/net/$intf/device ] &&
14 [ "$(route --inet --inet6 | grep default | grep $intf)" == "" ] ; then
15 sudo -E ifconfig $intf down
/vpp/src/plugins/lacp/test/
H A Dtest_lacp.py118 for intf in intfs:
119 self.assertEqual(intf.sw_if_index, memif1.sw_if_index)
124 for intf in intfs:
125 self.assertEqual(intf.sw_if_index, memif11.sw_if_index)
175 for intf in intfs:
176 if ((intf.actor_state !=
178 (intf.partner_state !=
191 for intf in intfs:
192 if (bond.sw_if_index == intf.sw_if_index):
193 if ((intf
[all...]
/vpp/test/
H A Dvpp_qos.py13 def __init__(self, test, intf, source):
15 self.intf = intf
21 record={'sw_if_index': self.intf.sw_if_index,
29 record={'sw_if_index': self.intf.sw_if_index,
36 if self.intf.sw_if_index == r.record.sw_if_index and \
42 return ("qos-record-%s-%d" % (self.intf, self.source))
48 def __init__(self, test, intf, source, value):
50 self.intf = intf
[all...]
H A Dtest_container.py82 intf = self.lo_interfaces[i]
83 intf.admin_up()
84 intf.local_ip4 = self.pg_interfaces[i].remote_ip4
85 intf.local_ip4_prefix_len = 32
86 intf.config_ip4()
87 intf.local_ip6 = self.pg_interfaces[i].remote_ip6
88 intf.local_ip6_prefix_len = 128
89 intf.config_ip6()
H A Dtemplate_classifier.py79 for intf in self.interfaces:
80 intf.admin_up()
82 intf.config_ip4()
83 intf.resolve_arp()
85 intf.config_ip6()
86 intf.resolve_ndp()
114 for intf in self.interfaces:
116 intf.unconfig_ip4()
118 intf.unconfig_ip6()
119 intf
[all...]
H A Dtest_bond.py135 for intf in intfs:
136 if "tx bytes" in intf and "284" in intf:
143 for intf in intfs:
144 if "tx bytes" in intf and "284" in intf:
151 for intf in intfs:
152 if "rx bytes" in intf and "142" in intf:
159 for intf i
[all...]
H A Dvpp_ip_route.py246 def __init__(self, test, intf, addr, len, bind=None):
248 self.intf = intf
259 sw_if_index=self.intf.sw_if_index, prefix=self.prefix,
266 sw_if_index=self.intf.sw_if_index, prefix=self.prefix,
278 self.intf.sw_if_index) &
283 sw_if_index=self.intf.sw_if_index) &
288 sw_if_index=self.intf.sw_if_index))
293 self.intf.sw_if_index) &
298 sw_if_index=self.intf
[all...]
H A Dtest_ip6.py47 def validate_ra(self, intf, rx, dst_ip=None):
49 dst_ip = intf.remote_ip6
52 self.assertEqual(rx[Ether].dst, intf.remote_mac)
55 self.assertEqual(rx[Ether].src, intf.local_mac)
65 in6_ptop(mk_ll_addr(intf.local_mac)))
67 def validate_na(self, intf, rx, dst_ip=None, tgt_ip=None):
69 dst_ip = intf.remote_ip6
71 dst_ip = intf.local_ip6
74 self.assertEqual(rx[Ether].dst, intf.remote_mac)
77 self.assertEqual(rx[Ether].src, intf
[all...]
H A Dtest_ip4.py393 # The intf was down when addr was added -> entry not in FIB
397 # When intf is brought up, entry is added
402 # When intf is brought down, entry is removed
2275 def get_n_pfxs(self, intf):
2276 return len(self.vapi.ip_address_dump(intf.sw_if_index))
2285 intf = self.pg_interfaces[i]
2288 addr = "172.16.%d.1" % intf.sw_if_index
2289 a = VppIpInterfaceAddress(self, intf, addr, 24).add_vpp_config()
2293 addr = "172.16.%d.2" % intf.sw_if_index
2294 a = VppIpInterfaceAddress(self, intf, add
[all...]
H A Dframework.py832 intf = VppPGInterface(cls, i, gso, gso_size)
833 setattr(cls, intf.name, intf)
834 result.append(intf)
847 for intf in result:
848 setattr(cls, intf.name, intf)
861 for intf in result:
862 setattr(cls, intf.name, intf)
[all...]
H A Dvpp_interface.py230 for intf in r:
231 if intf.sw_if_index == self.sw_if_index:
232 self._name = intf.interface_name
233 self._local_mac = intf.l2_address
234 self._dump = intf
H A Dtest_bfd.py1475 intf = VppLoInterface(self)
1476 intf.config_ip4()
1477 intf.admin_up()
1478 sw_if_index = intf.sw_if_index
1479 vpp_session = VppBFDUDPSession(self, intf, intf.remote_ip4)
1482 intf.remove_vpp_config()
1687 intf = VppLoInterface(self)
1688 intf.config_ip6()
1689 intf
[all...]
H A Dtest_p2p_ethernet.py96 for intf in intfs:
97 if intf.startswith('pg2.'):
/vpp/extras/vom/vom/
H A Dtest_stats.cpp35 std::shared_ptr<VOM::tap_interface> intf = itf.singular(); local
48 if (VOM::handle_t::INVALID == intf->handle() || VOM::handle_t::INVALID == intf1->handle()
58 std::cout << "Interface #1 index is " << intf->handle().value() << std::endl;
63 intf->enable_stats(listen);
74 intf->disable_stats();
81 intf.reset();
H A Dstat_reader.cpp46 stat_reader::registers(const interface& intf) argument
48 m_stat_itf_indexes.insert(intf.handle_i().value());
52 stat_reader::unregisters(const interface& intf) argument
54 m_stat_itf_indexes.erase(intf.handle_i().value());
/vpp/src/plugins/vrrp/
H A Dvrrp.c141 vrrp_intf_t *intf; local
168 intf = vrrp_intf_get (vr->config.sw_if_index);
172 intf->n_master_vrs[is_ipv6]++;
173 if (intf->n_master_vrs[is_ipv6] == 1)
179 if (intf->n_master_vrs[is_ipv6] == 1)
183 if (intf->n_master_vrs[is_ipv6])
184 intf->n_master_vrs[is_ipv6]--;
187 /* accept mode enabled, count the other master VRs w/ accept mode on intf */
190 vec_foreach (vr_index, intf->vr_indices[is_ipv6])
382 vrrp_intf_t *intf; local
815 vrrp_intf_t *intf; local
916 vrrp_vr_tracking_if_t *intf; local
1028 vrrp_intf_t *intf = vrrp_intf_get (sw_if_index); local
1047 vrrp_intf_t *intf; local
1165 vrrp_intf_t *intf; local
[all...]
H A Dvrrp.h140 /* number of VRs in master state on sw intf. 0 -> ipv4, 1 -> ipv6 */
300 vrrp_intf_t *intf = vrrp_intf_get (sw_if_index); local
302 if (intf)
303 return vec_len (intf->vr_indices[is_ipv6]);
/vpp/src/plugins/l3xc/test/
H A Dtest_l3xc.py32 def __init__(self, test, intf, paths, is_ip6=False):
34 self.intf = intf
45 'sw_if_index': self.intf.sw_if_index,
54 sw_if_index=self.intf.sw_if_index)
57 return find_l3xc(self._test, self.intf.sw_if_index)
60 return ("l3xc-%d" % self.intf.sw_if_index)
/vpp/extras/vpp_config/vpplib/
H A DAutoConfig.py1442 for intf in sorted(interfaces.items()):
1443 name = intf[0]
1444 value = intf[1]
1587 for intf in sorted(interfaces.items()):
1588 name = intf[0]
1680 for intf in sorted(interfaces.items()):
1681 name = intf[0]
1695 for intf in sorted(interfaces.items()):
1696 name = intf[0]
1754 for intf i
[all...]
H A DVppPCIUtil.py82 for intf in interfaces:
84 ids[i], intf)
/vpp/src/plugins/dhcp/test/
H A Dtest_dhcp.py105 def validate_relay_options(self, pkt, intf, ip_addr, vpn_id, fib_id, oui):
138 intf._sw_if_index)
206 def verify_dhcp_offer(self, pkt, intf, vpn_id="", fib_id=0, oui=0):
209 self.assertEqual(ether.src, intf.local_mac)
213 self.assertEqual(ip.src, intf.local_ip4)
220 data = self.validate_relay_options(pkt, intf, intf.local_ip4,
223 def verify_orig_dhcp_pkt(self, pkt, intf, dscp, l2_bc=True):
228 self.assertEqual(ether.dst, intf.remote_mac)
229 self.assertEqual(ether.src, intf
[all...]
/vpp/src/plugins/nat/test/
H A Dtest_nat66.py175 for intf in interfaces:
176 self.vapi.nat66_add_del_interface(is_add=0, flags=intf.flags,
177 sw_if_index=intf.sw_if_index)
/vpp/src/plugins/acl/test/
H A Dtest_acl_plugin_macip.py1091 """ MACIP ACL delete intf with acl
1095 intf = []
1099 intf.append(VppLoInterface(self))
1100 intf.append(VppLoInterface(self))
1102 sw_if_index0 = intf[0].sw_if_index
1111 sw_if_index1 = intf[1].sw_if_index
1120 intf[0].remove_vpp_config()
1126 intf.append(VppLoInterface(self))
1127 intf.append(VppLoInterface(self))
1128 sw_if_index2 = intf[
[all...]
/vpp/src/plugins/flowprobe/test/
H A Dtest_flowprobe.py29 def __init__(self, test, intf='pg2', active=0, passive=0, timeout=100,
32 self._intf = intf
415 ipfix = VppCFLOW(test=self, intf='pg8', datapath="ip4",
616 ipfix = VppCFLOW(test=self, intf='pg4', layer='l2', datapath='ip4')
644 ipfix = VppCFLOW(test=self, intf='pg4', layer='l3', datapath='ip4')
673 ipfix = VppCFLOW(test=self, intf='pg4', layer='l4', datapath='ip4')
717 ipfix = VppCFLOW(test=self, intf='pg6', layer='l2', datapath='ip6')
747 ipfix = VppCFLOW(test=self, intf='pg6', layer='l3', datapath='ip6')
778 ipfix = VppCFLOW(test=self, intf='pg6', layer='l4', datapath='ip6')

Completed in 25 milliseconds

12