Skip to content

listing project network interfaces fails with regex error #790

@mhenselin

Description

@mhenselin

Hi

simple example:

from stackit.iaas.api.default_api import DefaultApi
from stackit.core.configuration import Configuration

# Create a new API client, that uses default authentication and configuration
config = Configuration(
    service_account_key_path=sa_cred_path,
    region="eu01",
)
client = DefaultApi(config)

print(client.list_project_nics(
    project_id=project_id,
))

fails with

name
  Value error, must validate the regular expression /^[A-Za-z0-9]+((-|_|\s|\.)[A-Za-z0-9]+)*$/ [type=value_error, input_value='', input_type=str]```

and this happens when nic name is empty - which is default for system nics like dhcp server and meta data server

regards
Marzl

Activity

mhenselin

mhenselin commented on Mar 25, 2025

@mhenselin
Author

proposed change
file: stackit-sdk-python/services/iaas/src/stackit/iaas/models/nic.py

Image

rubenhoenle

rubenhoenle commented on Oct 15, 2025

@rubenhoenle
Member

Hi @mhenselin,

this seems to be fixed with the latest SDK version on our side. So we will close this issue for now.

Feel free to re-open this issue in case you run into any further problems.

Best reagards
Ruben from STACKIT Developer Tools team

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mhenselin@rubenhoenle

        Issue actions

          listing project network interfaces fails with regex error · Issue #790 · stackitcloud/stackit-sdk-python