Lines Matching refs:subprocess
33 import subprocess
36 networkd_active = subprocess.call(['systemctl', 'is-active', '--quiet',
65 out = subprocess.check_output(['journalctl', '-b', '--quiet',
75 subprocess.call(['systemctl', 'stop', 'systemd-networkd'])
82 subprocess.call(['journalctl', '-b', '--no-pager', '--quiet',
112 subprocess.check_call(['systemctl', 'start', 'systemd-networkd'])
115 subprocess.check_call(['systemctl', 'start', 'systemd-networkd'])
119 subprocess.check_call([self.networkd_wait_online, '--interface',
127 out = subprocess.check_output(['ip', 'a', 'show', 'dev', self.iface])
138 out = subprocess.check_output(['ip', '-6', 'a', 'show', 'dev', self.iface])
143 out = subprocess.check_output(['ip', '-4', 'a', 'show', 'dev', self.iface])
148 out = subprocess.check_output(['networkctl'])
152 out = subprocess.check_output(['networkctl', 'status', self.iface])
163 except (AssertionError, subprocess.CalledProcessError):
169 subprocess.call(['ip', 'a', 'show', 'dev', self.iface])
172 subprocess.call(['networkctl', 'status', self.iface])
238 subprocess.check_call(['ip', 'link', 'add', 'name', self.iface, 'type',
242 subprocess.check_call(['ip', 'a', 'flush', 'dev', self.if_router])
243 subprocess.check_call(['ip', 'a', 'add', '192.168.5.1/24', 'dev', self.if_router])
245 subprocess.check_call(['ip', 'a', 'add', '2600::1/64', 'dev', self.if_router])
246 subprocess.check_call(['ip', 'link', 'set', self.if_router, 'up'])
255 self.dnsmasq = subprocess.Popen(
266 subprocess.check_call(['ip', 'link', 'del', 'dev', self.if_router])
332 subprocess.check_call(['systemd-run', '--unit=networkd-test-router.service',
340 out = subprocess.check_output(['ip', 'a', 'show', 'dev', self.if_router])
349 subprocess.check_call(['systemctl', 'stop', 'networkd-test-router.service'])
351 subprocess.call(['systemctl', 'reset-failed', 'networkd-test-router.service'])
352 subprocess.call(['ip', 'link', 'del', 'dev', self.if_router])