Ubuntu Pastebin

Paste from smoser at Thu, 12 May 2016 18:00:56 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
In [2]: net.parse_deb_config("/etc/network/interfaces")
Out[2]: 
{'lo': {'auto': True,
  'family': 'inet',
  'dns': {'nameservers': ['10.245.168.2'], 'search': ['dellstack']},
  '_source_path': '/etc/network/interfaces',
  'method': 'loopback'},
 'eth4': {'auto': True,
  'family': 'inet',
  'mtu': '1500',
  '_source_path': '/etc/network/interfaces',
  'method': 'manual'},
 'eth2': {'auto': True,
  'family': 'inet',
  'mtu': '1500',
  '_source_path': '/etc/network/interfaces',
  'method': 'manual'},
 'eth3': {'auto': True,
  'family': 'inet',
  'mtu': '1500',
  '_source_path': '/etc/network/interfaces',
  'method': 'manual'},
 'eth1': {'auto': True,
  'family': 'inet',
  'mtu': '1500',
  '_source_path': '/etc/network/interfaces',
  'method': 'manual'},
 'eth5': {'auto': True,
  'family': 'inet',
  'mtu': '1500',
  '_source_path': '/etc/network/interfaces',
  'method': 'manual'},
 'eth0': {'auto': True,
  'family': 'inet',
  'address': '10.245.168.20/21',
  'mtu': '1500',
  'dns': {'nameservers': ['10.245.168.2']},
  'method': 'static',
  '_source_path': '/etc/network/interfaces',
  'gateway': '10.245.168.1'}}
Download as text