Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Bond errors #1

Open
maxlareo opened this issue May 22, 2018 · 1 comment
Open

Bond errors #1

maxlareo opened this issue May 22, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@maxlareo
Copy link
Owner

maxlareo commented May 22, 2018

Hi,

The option cl_bond give errors when the bond interface is not already setted, because it potentially try to set other commands before the bond slaves command, which is needed to create the bond interface.

Because in python the dict type is not ordered, it can't ensure the order of the option send.

@maxlareo maxlareo added the bug Something isn't working label May 22, 2018
@maxlareo
Copy link
Owner Author

maxlareo commented Jul 24, 2018

A solution would be to use ordereddict (https://docs.python.org/2/library/collections.html#collections.OrderedDict) instead of dict to be able to set the bond slaves option first to ensure the bond correct initialisation before any other configuration.

But unfortunatly the usage of ordereddict is still in devloppment, ansible/ansible#36644

So a workaroud, before better solution, would be to return the list of string, return by the recursive lookup, sorted, in that way, only the option bond acl and bond alias would come before the bond bond slaves option and fail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant