Skip to content
Discussion options

You must be logged in to vote

Thanks so much .. that did the job! You don't need to deactivate on the linux I'm using.

Here is the update code should anyone else need it:

    async def _network_linux_apply(self):
        from sdbus_async.networkmanager.settings import ConnectionProfile
        settings, connection_manager = await self._network_linux_profile()  
        ipv4 = settings['ipv4']
        ipv4['address-data'][0]['address'] = self.ap_ip
        ipv4['address-data'][0]['prefix'] = sum([bin(int(x)).count('1') for x in self.netmask.split('.')])
        ipv4['gateway'] = self.gateway
        ipv4['dns-data'][0] = self.dns 
        new_connection_profile = ConnectionProfile.from_settings_dict(settings)
        a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ict-rhys-williams
Comment options

Answer selected by ict-rhys-williams
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
2 participants