lxc / go-lxc

Go bindings for liblxc
https://linuxcontainers.org/lxc
Other
431 stars 76 forks source link

Ability to set config options directly instead of loading from configfile #38

Closed syed closed 9 years ago

syed commented 9 years ago

Currently it is not possible to set config options like lxc.network.hwaddr programatically. Is there a reason why? Can this be added?

caglar10ur commented 9 years ago

Not sure I understand the problem. As long as I know, you can set hwaddr manually and if you don't then one will be auto generated for you. Do you have a test case for the problem?

syed commented 9 years ago

Sorry just looked up the code. SetConfigItem is what I was looking for. I could not find that in the examples directory. Can I add one example?

caglar10ur commented 9 years ago

Of course! Please feel free to send a pull request and refer this.