Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajenti v2.0 Network Plugin not work correctly #1382

Open
meishao opened this issue Feb 21, 2022 · 3 comments
Open

Ajenti v2.0 Network Plugin not work correctly #1382

meishao opened this issue Feb 21, 2022 · 3 comments
Assignees

Comments

@meishao
Copy link

meishao commented Feb 21, 2022

This network plug-in is completely not finished.
The default is to read the configuration file from /etc/netplan to obtain IP information. If the network card defaults to DHCP, it doesn't work at all.
Network configuration editor is also not done.
Can this problem be solved in the future?

@kiarn
Copy link
Member

kiarn commented Feb 26, 2022

Hi @meishao

Yes you are right, it was already mentioned and it's on my todo list.

Arnaud

@kiarn kiarn self-assigned this Feb 26, 2022
@kiarn
Copy link
Member

kiarn commented Mar 6, 2022

Hi,

I made some research, and netplan is written in Python, bringing its own configmanager.
It's possible to use it simply with :

import sys
sys.path.append('/usr/share/netplan/netplan')
from configmanager import ConfigManager
c = ConfigManager()
c.parse()
print(c.__dict__)

This works under Ubuntu.
But changing the network configuration while being connected to Ajenti may be a bad idea.

Arnaud

@kiarn
Copy link
Member

kiarn commented Mar 13, 2022

If the network card defaults to DHCP, it doesn't work at all.

I need some details here, because on a standard installation from Ubuntu 20.04 with netplan, I do not have any problem : I mean that the plugin shows the ip even with DHCP config, and I can enable/disable the interface.
But it's not possible to edit anything in the netplan config file, that's still a big todo.

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

No branches or pull requests

2 participants