Commit d7109b2c authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e69f3905
......@@ -59,7 +59,10 @@ def main():
if exists(sysnet(subtap)):
run('ip', 'link', 'del', subtap)
run('ip', 'tuntap', 'add', 'dev', subtap, 'mode', 'tap', 'user', owner)
run('ip', 'link', 'set', subtap, 'up')
run('ip', 'link', 'set', subtap, 'up')
run('ip', 'addr', 'add', str(subnet), 'dev', subtap, 'noprefixroute')
run('ip', 'route', 'add', str(subnet[1]), 'dev', subtap)
run('ip', 'route', 'add', str(subnet), 'dev', subtap, 'via', str(subnet[1]))
# sysnet returns path on /sys corresponding to given interface.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment