How to handle platform diferences in cloudinit.net module

Asked by Mina Galić

Currently, a lot of net/__init__.py is implemented exclusively for Linux systems which have the `ip` utility.

I'm trying to make this code run on FreeBSD, and short of adding `if`s all over the place, I'm a bit stuck on how exactly to handle this.

Does the call-hierarchy in cloud-init prefer methods / Classes (re)defined in a specific distro file?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu cloud-init Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Scott Moser (smoser) said :
#1

Maybe post this to mailing list?

https://lists.launchpad.net/cloud-init/

As a first-pass answer, I think the goal woudl be really to get stuff into the cloudinit/net/ module that
then had sane methodds that did the right thing. I do realize that freebsd did/does have lots of "if"s sprinkled throughout.

II think we would like to better abstract / design this.

Can we take it to the mailing list?

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.