Skip to content

Adding a macvlan interface #71

Answered by igo95862
auspex asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @auspex

What exactly are you trying to call add_and_activate_connection with? It is probably not a correct type.

See examples that add new connections like add-openvpn-connection-async.py. The important part is connection_type=ConnectionType.VPN.value that you want to swap to macvlan and vpn=VpnSettings that you want to swap for macvlan=MacvlanSettings(....

I highly recommend running the type checker like mypy as it will tell you when you call something with wrong types.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by auspex
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants