You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the following configuration active in /etc/network/interfaces:
auto eth1
iface eth1 inet static
address 192.168.1.3
netmask 255.255.255.0
up route add -net 10.0.0.0 netmask 255.255.255.0 gw 192.168.1.1
down route del -net 10.0.0.0 netmask 255.255.255.0 gw 192.168.1.1
When using interfaces2netplan, it gives us the following stacktrace:
Traceback (most recent call last):
File "/usr/bin/interfaces2netplan", line 358, in <module>
main()
File "/usr/bin/interfaces2netplan", line 353, in main
files.show()
File "/usr/bin/interfaces2netplan", line 166, in show
yaml = self.get_yaml()
File "/usr/bin/interfaces2netplan", line 145, in get_yaml
ifile = InterfacesFile(long_file)
File "/usr/bin/interfaces2netplan", line 186, in __init__
self._parse()
File "/usr/bin/interfaces2netplan", line 249, in _parse
self._parse_context(context[1], config[context], line)
File "/usr/bin/interfaces2netplan", line 292, in _parse_context
raise ValueError('unexpected line {!r}'.format(line))
ValueError: unexpected line ' up route add -net 10.0.0.0 netmask 255.255.255.0 gw 192.168.1.1'
The expected output would've been something like this:
We have the following configuration active in /etc/network/interfaces:
When using interfaces2netplan, it gives us the following stacktrace:
The expected output would've been something like this:
The text was updated successfully, but these errors were encountered: