Skip to content

Commit

Permalink
Merge pull request #104 from atlanticwave-sdx/103.topology-files-refa…
Browse files Browse the repository at this point in the history
…ctoring

Move topology files from pce to datamodel
  • Loading branch information
sajith authored Aug 16, 2023
2 parents db13129 + 1176715 commit 2548a8e
Show file tree
Hide file tree
Showing 30 changed files with 1,479 additions and 1,339 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"

steps:
- name: Check out code
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ dist/
/.coverage.el
/coverage.xml
/coverage.lcov

# Ignore directories created by testing tools.
/.tox/
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ classifiers = [
]
dependencies = [
"grenml",
"networkx"
"networkx",
"importlib-resources; python_version < '3.9'",
]

[project.urls]
Expand All @@ -30,7 +31,6 @@ Issues = "https://github.com/atlanticwave-sdx/datamodel/issues"
test = [
"pytest >= 7.1.2",
"pytest-cov >= 3.0.0",
"matplotlib"
]

[options.packages.find]
Expand Down
20 changes: 20 additions & 0 deletions src/sdx_datamodel/data/requests/test_request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "test-connection-request",
"name": "Test connection request",
"start_time": "2000-01-23T04:56:07.000Z",
"end_time": "2000-01-23T04:56:07.000Z",
"bandwidth_required": 10,
"latency_required": 300,
"egress_port": {
"id": "urn:sdx:port:amlight.net:A1:1",
"name": "Novi100:1",
"node": "urn:sdx:node:amlight.net:A1",
"status": "up"
},
"ingress_port": {
"id": "urn:ogf:network:sdx:port:zaoxi:A1:2",
"name": "Novi100:2",
"node": "urn:ogf:network:sdx:node:zaoxi:A1",
"status": "up"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
"end_time": "2000-01-23T04:56:07.000Z",
"bandwidth_required": 100,
"latency_required": 20,
"egress_port":
{
"egress_port": {
"id": "urn:sdx:port:amlight.net:A1:1",
"name": "Novi100:1"
},
"ingress_port":
{
"ingress_port": {
"id": "urn:ogf:network:sdx:port:zaoxi:A1:2",
"name": "Novi100:2"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@
"end_time": "2000-01-23T04:56:07.000Z",
"bandwidth_required": 100,
"latency_required": 20,
"egress_port":
{
"egress_port": {
"id": "urn:sdx:port:amlight.net:Novi07:10",
"name": "10",
"short_name": "Novi07:10",
"label": "vlan",
"label_range": "100",
"node": "urn:sdx:port:amlight.net:Novi07"
},
"ingress_port":
{
"ingress_port": {
"id": "urn:sdx:port:amlight.net:Novi06:9",
"name": "Novi06:9",
"short_name": "Novi06:9",
"label": "vlan",
"label_range": "100",
"node": "urn:sdx:port:amlight.net:Novi06"
}
}
}
Loading

0 comments on commit 2548a8e

Please sign in to comment.