René's URL Explorer Experiment


Title: Adding a macvlan interface · python-sdbus/python-sdbus-networkmanager · Discussion #71 · GitHub

Open Graph Title: Adding a macvlan interface · python-sdbus/python-sdbus-networkmanager · Discussion #71

X Title: Adding a macvlan interface · python-sdbus/python-sdbus-networkmanager · Discussion #71

Description: Adding a macvlan interface

Open Graph Description: I'm trying to do the equivalent of nmcli connection add ifname test type macvlan dev eth0 mode vepa It appears I want to use NetworkManager().add_and_activate(), but then what is the specific_objec...

X Description: I'm trying to do the equivalent of nmcli connection add ifname test type macvlan dev eth0 mode vepa It appears I want to use NetworkManager().add_and_activate(), but then what is the specific_o...

Opengraph URL: https://github.com/python-sdbus/python-sdbus-networkmanager/discussions/71

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Adding a macvlan interface","text":"

I'm trying to do the equivalent of nmcli connection add ifname test type macvlan dev eth0 mode vepa

\n

It appears I want to use NetworkManager().add_and_activate(), but then what is the specific_object argument? Is it the Device, and I have to create the Device separately from the Connection? It's supposedly a str, but it's not the path to the device (which gives me src/sdbus/sd_bus_internals_message.c Line: 217. sd_bus_message_append_basic(parser_state->message, basic_type, char_ptr_to_append) in function _parse_basic returned error number: 22)

\n

Incidentally, if you omit specific_object, you get the unhelpful TypeError: Could not flatten the args rather than anything indicating a missing argument.

","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

Hello @auspex

\n

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

\n

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(....

\n

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

","upvoteCount":1,"url":"https://github.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12859978"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:ba8b5ea8-a89e-6b21-7553-213364a0c733
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idB3CC:335F37:239281:30877A:698D84E5
html-safe-nonce418829be6248d80e4014dd9201a41788886c6a5c336d0b903210b5aed016c55f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0NDOjMzNUYzNzoyMzkyODE6MzA4NzdBOjY5OEQ4NEU1IiwidmlzaXRvcl9pZCI6IjgyOTQxODQzODI3MTg5MDM1MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac042e5ce7a713b3d033ce642c95df16cd8a65178aff58da57ffcde4b6c729d3a4
hovercard-subject-tagdiscussion:8211305
github-keyboard-shortcutsrepository,network-graph,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/python-sdbus/python-sdbus-networkmanager/71/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/0b079b324234ca71ffa6754c12815caea9963d2ede7b71221f961fed70de4e0d/python-sdbus/python-sdbus-networkmanager/discussions/71
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0b079b324234ca71ffa6754c12815caea9963d2ede7b71221f961fed70de4e0d/python-sdbus/python-sdbus-networkmanager/discussions/71
og:image:altI'm trying to do the equivalent of nmcli connection add ifname test type macvlan dev eth0 mode vepa It appears I want to use NetworkManager().add_and_activate(), but then what is the specific_objec...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a
turbo-cache-controlno-preview
go-importgithub.com/python-sdbus/python-sdbus-networkmanager git https://github.com/python-sdbus/python-sdbus-networkmanager.git
octolytics-dimension-user_id88226657
octolytics-dimension-user_loginpython-sdbus
octolytics-dimension-repository_id384529652
octolytics-dimension-repository_nwopython-sdbus/python-sdbus-networkmanager
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id384529652
octolytics-dimension-repository_network_root_nwopython-sdbus/python-sdbus-networkmanager
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4c8f4bd0b67d7f1472d0ab3f49827eaae062a36b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-sdbus%2Fpython-sdbus-networkmanager%2Fdiscussions%2F71
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-sdbus%2Fpython-sdbus-networkmanager%2Fdiscussions%2F71
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=python-sdbus%2Fpython-sdbus-networkmanager
Reloadhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
Reloadhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
Reloadhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
python-sdbus https://patch-diff.githubusercontent.com/python-sdbus
python-sdbus-networkmanagerhttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-sdbus%2Fpython-sdbus-networkmanager
Fork 11 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-sdbus%2Fpython-sdbus-networkmanager
Star 43 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-sdbus%2Fpython-sdbus-networkmanager
Code https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager
Issues 2 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/issues
Pull requests 1 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/pulls
Discussions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions
Actions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/actions
Security 0 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/security
Insights https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/pulse
Code https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager
Issues https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/issues
Pull requests https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/pulls
Discussions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions
Actions https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/actions
Security https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/security
Insights https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/pulse
Answered https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12859978
igo95862https://patch-diff.githubusercontent.com/igo95862
auspex https://patch-diff.githubusercontent.com/auspex
Q&Ahttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/categories/q-a
Adding a macvlan interface https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#top
auspex https://patch-diff.githubusercontent.com/auspex
Answered https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12859978
igo95862https://patch-diff.githubusercontent.com/igo95862
Return to tophttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#top
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
auspex https://patch-diff.githubusercontent.com/auspex
Apr 16, 2025 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussion-8211305
Give feedback.https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
igo95862 https://patch-diff.githubusercontent.com/igo95862
Apr 16, 2025 https://github.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12859978
@auspexhttps://github.com/auspex
add-openvpn-connection-async.pyhttps://github.com/python-sdbus/python-sdbus-networkmanager/blob/master/examples/2.0.0/async/add-openvpn-connection-async.py#L83
View full answer https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12859978
Oldest https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71?sort=old
Newest https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71?sort=new
Top https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71?sort=top
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
igo95862 https://patch-diff.githubusercontent.com/igo95862
Apr 16, 2025 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12859978
@auspexhttps://github.com/auspex
add-openvpn-connection-async.pyhttps://github.com/python-sdbus/python-sdbus-networkmanager/blob/master/examples/2.0.0/async/add-openvpn-connection-async.py#L83
Give feedback.https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
auspexhttps://patch-diff.githubusercontent.com/auspex
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
auspex https://patch-diff.githubusercontent.com/auspex
Apr 16, 2025 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12860596
Give feedback.https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
Please reload this pagehttps://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
auspex https://patch-diff.githubusercontent.com/auspex
Apr 16, 2025 https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71#discussioncomment-12860642
Give feedback.https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-sdbus%2Fpython-sdbus-networkmanager%2Fdiscussions%2F71
🙏 Q&A https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/categories/q-a
https://patch-diff.githubusercontent.com/auspex
https://patch-diff.githubusercontent.com/igo95862
https://patch-diff.githubusercontent.com/python-sdbus/python-sdbus-networkmanager/discussions/71
https://patch-diff.githubusercontent.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.