def extra_lo_ips(): """Setup IPs that are used for simulating e.g. agent, mesos leader, etc.. """ ips = ['127.0.0.2', '127.0.0.3'] for ip in ips: add_lo_ipaddr(ip, 32) yield for ip in ips: del_lo_ipaddr(ip, 32)
def navstar_ips(): """Setup IPs that help dns_mock mimic navstar""" ips = ['198.51.100.1', '198.51.100.2', '198.51.100.3'] for ip in ips: add_lo_ipaddr(ip, 32) yield for ip in ips: del_lo_ipaddr(ip, 32)
def extra_lo_ips(): """Setup IPs that are used for simulating e.g. agent, mesos leader, etc.. """ ips = ['127.0.0.2', '127.0.0.3'] for ip in ips: add_lo_ipaddr(ip, 32) yield for ip in ips: del_lo_ipaddr(ip, 32)
def navstar_ips(): """Setup IPs that help dns_mock mimic navstar""" ips = ['198.51.100.1', '198.51.100.2', '198.51.100.3'] for ip in ips: add_lo_ipaddr(ip, 32) yield for ip in ips: del_lo_ipaddr(ip, 32)
def extra_lo_ips(): """Setup IPs that are used for simulating e.g. agent, mesos leader, etc.. """ ips = ['127.0.0.2', '127.0.0.3'] nflink = pyroute2.IPRoute() for ip in ips: add_lo_ipaddr(nflink, ip, 32) yield for ip in ips: del_lo_ipaddr(nflink, ip, 32) nflink.close()
def navstar_ips(): """Setup IPs that help dns_mock mimic navstar""" ips = ['198.51.100.1', '198.51.100.2', '198.51.100.3'] nflink = pyroute2.IPRoute() for ip in ips: add_lo_ipaddr(nflink, ip, 32) yield for ip in ips: del_lo_ipaddr(nflink, ip, 32) nflink.close()
def extra_lo_ips(): """Setup IPs that are used for simulating e.g. agent, mesos leader, etc.. """ ips = ['127.0.0.2', '127.0.0.3'] nflink = pyroute2.IPRoute() for ip in ips: add_lo_ipaddr(nflink, ip, 32) yield for ip in ips: del_lo_ipaddr(nflink, ip, 32) nflink.close()
def dcos_net_ips(): """Setup IPs that help dns_mock mimic dcos-net""" ips = ['198.51.100.1', '198.51.100.2', '198.51.100.3'] nflink = pyroute2.IPRoute() for ip in ips: add_lo_ipaddr(nflink, ip, 32) yield for ip in ips: del_lo_ipaddr(nflink, ip, 32) nflink.close()