def generate_ping_endpoints(self, config): host1, host2 = self.matched.host1, self.matched.host2 return [ PingEndpoints(host1.vlan0, host2.vlan0), PingEndpoints(host1.vlan1, host2.vlan1), PingEndpoints(host1.vlan2, host2.vlan2) ]
def generate_ping_endpoints(self, config): """ The ping endpoints for this recipe are the configured team device on host1 and the matched ethernet device on host2. Returned as:: [PingEndpoints(self.matched.host1.team0, self.matched.host2.eth0), PingEndpoints(self.matched.host2.eth0, self.matched.host1.team0)] """ return [ PingEndpoints(self.matched.host1.team0, self.matched.host2.eth0), PingEndpoints(self.matched.host2.eth0, self.matched.host1.team0) ]
def generate_ping_endpoints(self, config): """ The ping endpoints for this recipe are the matching VLAN tunnel endpoints of the hosts. Returned as:: [PingEndpoints(host1.vlan0, host2.vlan0), PingEndpoints(host1.vlan1, host2.vlan1), PingEndpoints(host1.vlan2, host2.vlan2)] """ host1, host2 = self.matched.host1, self.matched.host2 return [PingEndpoints(host1.vlan0, host2.vlan0), PingEndpoints(host1.vlan1, host2.vlan1), PingEndpoints(host1.vlan2, host2.vlan2)]
def generate_ping_endpoints(self, config): """ The ping endpoints for this recipe are simply the tunnel endpoints Returned as:: [PingEndpoints(self.matched.host1.ip6tnl, self.matched.host2.ip6tnl)] """ return [PingEndpoints(self.matched.host1.ip6tnl, self.matched.host2.ip6tnl)]
def generate_ping_endpoints(self, config): host1, host2, guest1 = (self.matched.host1, self.matched.host2, self.matched.guest1) devs = [host1.vxlan0, host2.vxlan0, guest1.vxlan0] dev_permutations = permutations(devs, 2) return [ PingEndpoints(dev_permutation[0], dev_permutation[1]) for dev_permutation in dev_permutations ]
def generate_ping_endpoints(self, config): """ The ping endpoints for this recipe are the loopback devices that are configured with IP addresses of the tunnelled networks. Returned as:: [PingEndpoints(self.matched.host1.lo, self.matched.host2.lo)] """ return [PingEndpoints(self.matched.host1.lo, self.matched.host2.lo)]
def generate_ping_endpoints(self, config): """ The ping endpoints for this recipe are simply the two matched NICs: host1.eth0 and host2.eth0 Returned as:: [PingEndpoints(self.matched.host1.eth0, self.matched.host2.eth0)] """ return [ PingEndpoints(self.matched.host1.eth0, self.matched.host2.eth0) ]
def generate_ping_endpoints(self, config): guest1, guest2, guest3, guest4 = (self.matched.guest1, self.matched.guest2, self.matched.guest3, self.matched.guest4) devs = [guest1.eth0, guest2.eth0, guest3.eth0, guest4.eth0] dev_combinations = combinations(devs, 2) return [ PingEndpoints(comb[0], comb[1], reachable=((comb[0].host, comb[1].host) in [ (guest1, guest3), (guest2, guest4) ]) ) for comb in dev_combinations ]
def generate_ping_endpoints(self, config): return [ PingEndpoints(self.matched.guest1.vlan0, self.matched.guest2.vlan0) ]
def generate_ping_endpoints(self, config): return [ PingEndpoints(self.matched.host1.int0, self.matched.host2.int0) ]
def generate_ping_endpoints(self, config): return [ PingEndpoints(self.matched.host1.team0, self.matched.host2.bond0), PingEndpoints(self.matched.host2.bond0, self.matched.host1.team0) ]
def generate_ping_endpoints(self, config): """ The ping endpoints are all ports in their respective pairs """ return [PingEndpoints(self.matched.host1.eth0, self.matched.host2.eth0), PingEndpoints(self.matched.host1.eth1, self.matched.host2.eth1)]