Title: network create non-routed without gateway no longer possible · Issue #2841 · stackitcloud/stackit-sdk-python · GitHub
Open Graph Title: network create non-routed without gateway no longer possible · Issue #2841 · stackitcloud/stackit-sdk-python
X Title: network create non-routed without gateway no longer possible · Issue #2841 · stackitcloud/stackit-sdk-python
Description: Description I try to create a L2 only network, means not routed and no gateway. However a gateway is still set. (Purpose is to create a HA network between 2 servers, where only HA heartbeat is sent between 2 nodes). Steps to reproduce ap...
Open Graph Description: Description I try to create a L2 only network, means not routed and no gateway. However a gateway is still set. (Purpose is to create a HA network between 2 servers, where only HA heartbeat is sent...
X Description: Description I try to create a L2 only network, means not routed and no gateway. However a gateway is still set. (Purpose is to create a HA network between 2 servers, where only HA heartbeat is sent...
Opengraph URL: https://github.com/stackitcloud/stackit-sdk-python/issues/2841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"network create non-routed without gateway no longer possible","articleBody":"## Description\n\nI try to create a L2 only network, means not routed and no gateway. However a gateway is still set. (Purpose is to create a HA network between 2 servers, where only HA heartbeat is sent between 2 nodes).\n\n## Steps to reproduce\n\n\n```python\n\napiclient = IaasApi(_api_configuration)\nipv4withprefix = CreateNetworkIPv4WithPrefix(prefix = '10.1.0.0/28', nameservers = [ '8.8.8.8' ])\nprint(ipv4withprefix)\n###\n### gateway=None nameservers=['8.8.8.8'] prefix='10.1.0.0/28'\n###\n\nipv4 = CreateNetworkIPv4(ipv4withprefix)\nprint(ipv4)\n###\n### oneof_schema_1_validator=None oneof_schema_2_validator=None actual_instance=CreateNetworkIPv4WithPrefix(gateway=None, nameservers=['8.8.8.8'], prefix='10.1.0.0/28') one_of_schemas={'CreateNetworkIPv4WithPrefix', 'CreateNetworkIPv4WithPrefixLength'}\n###\n\ncandidateitem = CreateNetworkPayload(name = name, ipv4 = ipv4, routed = False, dhcp = True)\nprint(candidateitem)\n###\n### dhcp=True ipv4=CreateNetworkIPv4(oneof_schema_1_validator=None, oneof_schema_2_validator=None, actual_instance=CreateNetworkIPv4WithPrefix(gateway=None, nameservers=['8.8.8.8'], prefix='10.1.0.0/28'), one_of_schemas={'CreateNetworkIPv4WithPrefix', 'CreateNetworkIPv4WithPrefixLength'}) ipv6=None labels=None name='ihe01testnetwork' routed=False routing_table_id=None\n###\n\nresult = apiclient.create_network(project_id=project_id, region=region, create_network_payload=candidateitem)\nprint(result)\n###\n### created_at=datetime.datetime(2026, 1, 20, 15, 37, 7, tzinfo=TzInfo(0)) dhcp=True id='c90cdb22-202a-46b2-b224-e268ec48e46c' ipv4=NetworkIPv4(gateway=None, nameservers=['8.8.8.8'], prefixes=['10.1.0.0/28'], public_ip=None) ipv6=None labels={} name='ihe01testnetwork' routed=False routing_table_id=None status='CREATING' updated_at=datetime.datetime(2026, 1, 20, 15, 37, 7, tzinfo=TzInfo(0))\n###\n### ---\u003e while creating, gateway is still None\n\nresult2 = apiclient.get_network(project_id=project_id, region=region, network_id='c90cdb22-202a-46b2-b224-e268ec48e46c')\nprint(result2)\n###\n### created_at=datetime.datetime(2026, 1, 20, 15, 37, 7, tzinfo=TzInfo(0)) dhcp=True id='c90cdb22-202a-46b2-b224-e268ec48e46c' ipv4=NetworkIPv4(gateway='10.1.0.1', nameservers=['8.8.8.8'], prefixes=['10.1.0.0/28'], public_ip=None) ipv6=NetworkIPv6(gateway=None, nameservers=[], prefixes=[]) labels={} name='ihe01testnetwork' routed=False routing_table_id=None status='CREATED' updated_at=datetime.datetime(2026, 1, 20, 15, 37, 10, tzinfo=TzInfo(0))\n###\n\n### ---\u003e once created, gateway is set, although it shall be NONE.\n\n```\n\n\u003c!-- Please provide us with the steps to reproduce the behavior. --\u003e\n\n1. Initialize the API\n2. Create a network with non_routed=True and ipv4.gateway=None\n3. Get details after network creation has completed\n\n## Actual behavior\n\nShows a gateway is assigned to subnet, and communicated i.e. to DHCP clients\n\n## Expected behavior\n\nNetwork has no gateway, no gateway is communicated via DHCP.\n\n## Environment\n```\nstackit-core==0.2.0\nstackit-iaas==1.1.0\n```\n\n\n## Additional info\nAddon: Also via stackit CLI this seems to not work.... option `no-ipv4-gateway` seems to be ignored? Although network-interface list shows that there is no gateway interface from the project router (only the meta interface), the network overview still shows the gateway IP.\n\n```\nstackit network create --name ihe01testnetwork --non-routed --no-ipv4-gateway --ipv4-prefix \"10.1.0.0/28\"\n\nstackit network describe 83957c75-4218-48b7-af25-5ed22960ae1b\n\n ID │ 83957c75-4218-48b7-af25-5ed22960ae1b\n───────────────────┼──────────────────────────────────────\n NAME │ ihe01testnetwork\n───────────────────┼──────────────────────────────────────\n STATE │ CREATED\n───────────────────┼──────────────────────────────────────\n ROUTED │ false\n───────────────────┼──────────────────────────────────────\n IPv4 GATEWAY │ 10.1.0.1\n───────────────────┼──────────────────────────────────────\n IPv4 NAME SERVERS │ 208.67.222.222, 208.67.220.220\n───────────────────┼──────────────────────────────────────\n IPv4 PREFIXES │ 10.1.0.0/28\n```\n\n","author":{"url":"https://github.com/cldmkr","@type":"Person","name":"cldmkr"},"datePublished":"2026-01-20T15:51:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2841/stackit-sdk-python/issues/2841"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:07e64fd5-b36a-b778-c322-698ec40c5111 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2AA:3C057:4C69A9:694546:6981F779 |
| html-safe-nonce | 09836c920954edf50bfca638782e61490ca437e542d1acba704a04778857c358 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkFBOjNDMDU3OjRDNjlBOTo2OTQ1NDY6Njk4MUY3NzkiLCJ2aXNpdG9yX2lkIjoiODQ4MDQxMzc5OTYwMDQ4NjI2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bcdfffc26aa477c3e2bbfbb75deaf4622cc0b749104a5030d3f78497899b6950 |
| hovercard-subject-tag | issue:3834331707 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackitcloud/stackit-sdk-python/2841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e37c6a9ec4393c2ece3d7097fd84cad69857ab7407770c354411f88eecdc8265/stackitcloud/stackit-sdk-python/issues/2841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e37c6a9ec4393c2ece3d7097fd84cad69857ab7407770c354411f88eecdc8265/stackitcloud/stackit-sdk-python/issues/2841 |
| og:image:alt | Description I try to create a L2 only network, means not routed and no gateway. However a gateway is still set. (Purpose is to create a HA network between 2 servers, where only HA heartbeat is sent... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cldmkr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9936dceb24cf8ba2521c41b894b28505ddddd1cb0b59da13279e82a3931479ca |
| turbo-cache-control | no-preview |
| go-import | github.com/stackitcloud/stackit-sdk-python git https://github.com/stackitcloud/stackit-sdk-python.git |
| octolytics-dimension-user_id | 55577607 |
| octolytics-dimension-user_login | stackitcloud |
| octolytics-dimension-repository_id | 872376182 |
| octolytics-dimension-repository_nwo | stackitcloud/stackit-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 872376182 |
| octolytics-dimension-repository_network_root_nwo | stackitcloud/stackit-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ab65d8f884b21d3fd2259ba6a73d6fae4e3c596 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width