Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
ba464de9
Commit
ba464de9
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
tune some imports, limit port number to non-dynamic range
parent
60b046a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!64
new IP trunk migration
Pipeline
#84025
passed
1 year ago
Stage: tox
Stage: documentation
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gso/workflows/iptrunk/create_iptrunk.py
+0
-1
0 additions, 1 deletion
gso/workflows/iptrunk/create_iptrunk.py
gso/workflows/tasks/import_router.py
+1
-1
1 addition, 1 deletion
gso/workflows/tasks/import_router.py
test/imports/conftest.py
+1
-1
1 addition, 1 deletion
test/imports/conftest.py
with
2 additions
and
3 deletions
gso/workflows/iptrunk/create_iptrunk.py
+
0
−
1
View file @
ba464de9
from
orchestrator.db.models
import
ProductTable
,
SubscriptionTable
from
orchestrator.forms
import
FormPage
from
orchestrator.forms.validators
import
Choice
,
UniqueConstrainedList
from
orchestrator.targets
import
Target
...
...
This diff is collapsed.
Click to expand it.
gso/workflows/tasks/import_router.py
+
1
−
1
View file @
ba464de9
...
...
@@ -13,8 +13,8 @@ from gso.products.product_blocks import router as router_pb
from
gso.products.product_blocks.router
import
RouterRole
,
RouterVendor
from
gso.products.product_types
import
router
from
gso.products.product_types.router
import
RouterInactive
from
gso.products.shared
import
PortNumber
from
gso.products.product_types.site
import
Site
from
gso.products.shared
import
PortNumber
from
gso.schemas.enums
import
ProductType
from
gso.services
import
subscriptions
from
gso.services.crm
import
get_customer_by_name
...
...
This diff is collapsed.
Click to expand it.
test/imports/conftest.py
+
1
−
1
View file @
ba464de9
...
...
@@ -87,7 +87,7 @@ def router_subscription_factory(site_subscription_factory, faker):
)
->
UUIDstr
:
description
=
description
or
faker
.
text
(
max_nb_chars
=
30
)
router_fqdn
=
router_fqdn
or
faker
.
domain_name
()
router_ts_port
=
router_ts_port
or
faker
.
random_int
(
min
=
1
,
max
=
65535
)
router_ts_port
=
router_ts_port
or
faker
.
random_int
(
min
=
1
,
max
=
49151
)
router_access_via_ts
=
router_access_via_ts
or
faker
.
boolean
()
router_lo_ipv4_address
=
router_lo_ipv4_address
or
ipaddress
.
IPv4Address
(
faker
.
ipv4
())
router_lo_ipv6_address
=
router_lo_ipv6_address
or
ipaddress
.
IPv6Address
(
faker
.
ipv6
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment