nMustaki / debinterface

A simple Python library for dealing with the /etc/network/interfaces file in most Debian based distributions.
BSD 3-Clause "New" or "Revised" License
10 stars 16 forks source link

Add bond API #34

Closed ObjatieGroba closed 3 years ago

ObjatieGroba commented 5 years ago

Bond interfaces drafts

33

ObjatieGroba commented 5 years ago

Hello,

How can I implement bond addition? In my opinion it is not possible to add inherited class BondInterface because we can not choose which class should reader use. It is possible to add function createBond(master, mode, slaves=..., primary=...) which can add necessary attributes to interfaces. Where this function needs to be? Maybe in interfaces class?

Thank you