Skip to content

Filter docker devices to add_hosts() #200

Description

@sebastianeferrer

I have a conflict between docker and comitup.
First approach was to implement comitup callback depending on connection state to stop the docker container that was bodering.
Then I found that I needed my docker container running without interruption in case wifi fails so I was trying to figure out what is the function that makes comitup have a conflict with the docker interfaces.

Digging a bit inside the logs in debug mode I found out add_hosts() function trying to add this unwanted docker interfaces.

def add_hosts(hosts: List[str]) -> None:
    establish_group()
    int_mapping = get_interface_mapping()

    devices: Optional[List["NetworkManager.Device"]] = nm.get_devices()

I think that may be replacion nm.get_devices() with nm.get_wifi_devices(), the issue will be solver. Am I in the wrong way or is this correct way?

I really appreciate all the hard work you have done for this proyect and I thank to you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions