Skip to content

Remove redundant connection request handling code#179

Draft
sajith wants to merge 105 commits into
mainfrom
178.remove-redundant-connection-request-code
Draft

Remove redundant connection request handling code#179
sajith wants to merge 105 commits into
mainfrom
178.remove-redundant-connection-request-code

Conversation

@sajith

@sajith sajith commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

An attempt at #178.

Stacked on top of PR #149; will update this branch if/when #149 gets merged.

We do not care for Python 3.8 anymore, so we can safely drop this
backward-compatibility library now.
These connection request files are based on Service Provisioning Data
Model Specification 1.0, so they should be V1.

https://sdx-docs.readthedocs.io/en/latest/specs/provisioning-api-1.0.html

Perhaps the older requests could be renamed V0?
Used `python -m json.tool <input> <output>`.
"any".title() returns "Any" etc, which is not necessary
sajith added 30 commits March 14, 2025 12:19
Not convinced that the test data is good, but that probably is another
separate discussion.
This could validate both v1 style and v0 style requests
Those fields are:

- ingress_port
- egress_port
- bandwidth_required
- latency_required
- start_time
- end_time
The idea is that we should be able to replace the old style
models.port.Port with the pydantic connection_request.Port.
EmailStr is enough for email validation
PEP 585 made this a thing since Python 3.9. We no longer need to
import the typing module.
This seems to make mypy 1.11.2 is happy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant