[PATCH pykickstart 2/3] Add bonding support to F19
Brian C. Lane
bcl at redhat.com
Thu Feb 28 18:46:36 UTC 2013
On Thu, Feb 28, 2013 at 04:50:40PM +0100, Radek Vykydal wrote:
> ---
> pykickstart/commands/network.py | 29 +++++++++++++++++++++++++++++
> pykickstart/handlers/control.py | 4 ++--
> 2 files changed, 31 insertions(+), 2 deletions(-)
>
> diff --git a/pykickstart/commands/network.py b/pykickstart/commands/network.py
> index 87609af..a671490 100644
> --- a/pykickstart/commands/network.py
> +++ b/pykickstart/commands/network.py
> @@ -168,6 +168,25 @@ class F16_NetworkData(F8_NetworkData):
>
> return retval
>
> +class F19_NetworkData(F16_NetworkData):
> + removedKeywords = F16_NetworkData.removedKeywords
> + removedAttrs = F16_NetworkData.removedAttrs
> +
> + def __init__(self, *args, **kwargs):
> + F16_NetworkData.__init__(self, *args, **kwargs)
> + self.bondslaves = kwargs.get("bondslaves", False)
> + self.bondopts = kwargs.get("bondopts", False)
> +
> + def _getArgsAsStr(self):
> + retval = F16_NetworkData._getArgsAsStr(self)
> +
> + if self.bondslaves != "":
> + retval += "--bondslaves=%s" % self.bondslaves
> + if self.bondopts != "":
> + retval += "--bondopts=%s" % self.bondopts
These values should have spaces before them.
I also note that --wpakey in F16_NetworkData has this same problem.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130228/f2971bd9/attachment.sig>
More information about the anaconda-patches
mailing list