Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interfaces2netplan: cmd 'bond-mode' unknown/unimplemented #17

Closed
vilitux opened this issue Mar 25, 2019 · 1 comment
Closed

interfaces2netplan: cmd 'bond-mode' unknown/unimplemented #17

vilitux opened this issue Mar 25, 2019 · 1 comment

Comments

@vilitux
Copy link
Member

vilitux commented Mar 25, 2019

We have the following configuration active in /etc/network/interfaces:

auto bond0
iface bond0 inet static
  address 192.168.1.25
  netmask 255.255.255.0
  gateway 192.168.1.1
  dns-nameservers 8.8.8.8 8.8.4.4
  bond-mode active-backup
  bond-miimon 100
  bond-slaves eno1 eno2

When using interfaces2netplan, it gives us the following stacktrace:

Traceback (most recent call last):
  File "/usr/bin/interfaces2netplan", line 399, in <module>
    main()
  File "/usr/bin/interfaces2netplan", line 394, in main
    files.show()
  File "/usr/bin/interfaces2netplan", line 183, in show
    yaml = self.get_yaml()
  File "/usr/bin/interfaces2netplan", line 162, in get_yaml
    ifile = InterfacesParser(interfaces_lines)
  File "/usr/bin/interfaces2netplan", line 203, in __init__
    self._parse()
  File "/usr/bin/interfaces2netplan", line 255, in _parse
    str(i) for i in e.args)))
ValueError: /etc/network/interfaces:24: parse fail at ' bond-mode active-backup': cmd 'bond-mode' unknown/unimplemented

The expected output would've been something like this:

network:
  version: 2
  renderer: networkd
  bonds:
    bond0:
      interfaces:
        - eno1
        - eno2
      addresses: 
        - 192.168.1.25/24
      gateway4: 192.168.1.1
      nameservers:
        addresses: 
          - 8.8.8.8
          - 8.8.4.4
      parameters:
        mode: active-backup
        mii-monitor-interval: 100

or

network:
  version: 2
  renderer: networkd
  bonds:
    bond0:
      interfaces: [eno1, eno2]
      addresses: [192.168.1.25/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
      parameters:
        mode: active-backup
        mii-monitor-interval: 100
@wdoekes
Copy link
Member

wdoekes commented Oct 18, 2023

Old ticket. Hardly any users for this anymore. Closing.

@wdoekes wdoekes closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants