Lines Matching refs:ipr
101 self.ipr = IPRoute()
115 interfaces = self.ipr.link_lookup(ifname=ifname)
139 self.ipr.link_create(ifname=ifname, kind="veth", peer=destname)
145 self.ipr.link("set", index=ix, address=src.mac_addr)
147 self.ipr.link("set", index=ix,
156 self.ipr.link("set", index=ix, address=dest.mac_addr)
158 self.ipr.link("set", index=ix,
179 self.ipr.close()
262 self.ipr.tc("add", "ingress", sw_srv_idx, "ffff:")
263 self.ipr.tc("add-filter", "bpf", sw_srv_idx, ":1", fd=fn.fd,
268 self.ipr.tc("add", "ingress", sw_clt_idx, "ffff:")
269 self.ipr.tc("add-filter", "bpf", sw_clt_idx, ":1", fd=fn.fd,