Skip to content

Commit af823b8

Browse files
jmaslakchadell
andauthored
Telia Carrier is now Arelion (#186)
* Telia Carrier is now Arelion * Note Arelion was previously Telia Co-authored-by: Christian Adell <[email protected]> Co-authored-by: Christian Adell <[email protected]>
1 parent 4da2d89 commit af823b8

File tree

7 files changed

+68
-62
lines changed

7 files changed

+68
-62
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ By default, there is a `GenericProvider` that support a `SimpleProcessor` using
5858

5959
#### Supported providers using the BCOP standard
6060

61+
- Arelion (previously Telia)
6162
- EuNetworks
6263
- NTT
6364
- PacketFabric
64-
- Telia
6565
- Telstra
6666

6767
#### Supported providers based on other parsers

circuit_maintenance_parser/provider.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ class AquaComms(GenericProvider):
172172
_default_organizer = "[email protected]"
173173

174174

175+
class Arelion(GenericProvider):
176+
"""Arelion (formerly Telia Carrier) provider custom class."""
177+
178+
_exclude_filter = {EMAIL_HEADER_SUBJECT: ["Disturbance Information"]}
179+
180+
_default_organizer = "[email protected]"
181+
182+
175183
class AWS(GenericProvider):
176184
"""AWS provider custom class."""
177185

@@ -308,12 +316,10 @@ class Sparkle(GenericProvider):
308316
_default_organizer = "[email protected]"
309317

310318

311-
class Telia(GenericProvider):
319+
class Telia(Arelion):
312320
"""Telia provider custom class."""
313321

314-
_exclude_filter = {EMAIL_HEADER_SUBJECT: ["Disturbance Information"]}
315-
316-
_default_organizer = "[email protected]"
322+
# Kept for compatibility purposes, but Telia is renamed Arelion
317323

318324

319325
class Telstra(GenericProvider):
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
BEGIN:VCALENDAR
22
VERSION:2.0
3-
PRODID:-//Telia Carrier//Change Management Tool
3+
PRODID:-//Arelion//Change Management Tool
44
BEGIN:VEVENT
55
DTSTART;VALUE=DATE-TIME:20210810T040000Z
66
DTEND;VALUE=DATE-TIME:20210810T120000Z
77
DTSTAMP;VALUE=DATE-TIME:20210802T080506Z
8-
UID:PWIC111111.1@teliacarrier.com
9-
SUMMARY:PWIC111111.1: Planned work notification from Telia Carrier
10-
ORGANIZER;CN="Telia Carrier CSC":mailto:carrier-csc@teliacompany.com
8+
UID:PWIC111111.1@arelion.com
9+
SUMMARY:PWIC111111.1: Planned work notification from Arelion
10+
ORGANIZER;CN="Arelion CSC":mailto:support@arelion.com
1111
SEQUENCE:34
12-
X-MAINTNOTE-PROVIDER:teliacarrier.com
12+
X-MAINTNOTE-PROVIDER:arelion.com
1313
X-MAINTNOTE-ACCOUNT:1111
1414
X-MAINTNOTE-MAINTENANCE-ID:PWIC111111.1
1515
X-MAINTNOTE-IMPACT:OUTAGE
1616
X-MAINTNOTE-OBJECT-ID:IC-111111
1717
X-MAINTNOTE-OBJECT-ID:IC-222222
1818
X-MAINTNOTE-STATUS:CANCELLED
19-
DESCRIPTION:Please note that Telia Carrier will perform maintenance work as
19+
DESCRIPTION:Please note that Arelion will perform maintenance work as
2020
outlined below.\n\nPlanned work reference: PWIC111111\nAction and Reason:
21-
Telia Carrier is upgrading its transmission capacity in order to fulfill
21+
Arelion is upgrading its transmission capacity in order to fulfill
2222
customer needs.
2323
The work will be done in several service windows (contain
2424
ing both Primary and Backup).
@@ -27,4 +27,4 @@ Each service window will be announced separ
2727
several times.\nLo
2828
cation: Atlanta/GA, US\nImpacted services: IC-111111, IC-222222
2929
END:VEVENT
30-
END:VCALENDAR
30+
END:VCALENDAR

tests/unit/data/telia/telia1_result.json renamed to tests/unit/data/arelion/arelion1_result.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
],
1414
"end": 1628596800,
1515
"maintenance_id": "PWIC111111.1",
16-
"organizer": "mailto:carrier-csc@teliacompany.com",
17-
"provider": "teliacarrier.com",
16+
"organizer": "mailto:support@arelion.com",
17+
"provider": "arelion.com",
1818
"sequence": 34,
1919
"stamp": 1627891506,
2020
"start": 1628568000,
2121
"status": "CANCELLED",
22-
"summary": "PWIC111111.1: Planned work notification from Telia Carrier",
23-
"uid": "PWIC111111.1@teliacarrier.com"
22+
"summary": "PWIC111111.1: Planned work notification from Arelion",
23+
"uid": "PWIC111111.1@arelion.com"
2424
}
25-
]
25+
]
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
BEGIN:VCALENDAR
22
VERSION:2.0
3-
PRODID:-//Telia Carrier//Change Management Tool
3+
PRODID:-//Arelion//Change Management Tool
44
BEGIN:VEVENT
55
DTSTART;VALUE=DATE-TIME:20210810T040000Z
66
DTEND;VALUE=DATE-TIME:20210810T120000Z
77
DTSTAMP;VALUE=DATE-TIME:20210802T080506Z
8-
UID:PWIC111111.1@teliacarrier.com
9-
SUMMARY:PWIC111111.1: Planned work notification from Telia Carrier
10-
ORGANIZER;CN="Telia Carrier CSC":mailto:carrier-csc@teliacompany.com
8+
UID:PWIC111111.1@arelion.com
9+
SUMMARY:PWIC111111.1: Planned work notification from Arelion
10+
ORGANIZER;CN="Arelion CSC":mailto:support@arelion.com
1111
SEQUENCE:34
12-
X-MAINTNOTE-PROVIDER:teliacarrier.com
12+
X-MAINTNOTE-PROVIDER:arelion.com
1313
X-MAINTNOTE-ACCOUNT:1111
1414
X-MAINTNOTE-MAINTENANCE-ID:PWIC111111.1
1515
X-MAINTNOTE-IMPACT:OUTAGE
1616
X-MAINTNOTE-OBJECT-ID:IC-111111
1717
X-MAINTNOTE-OBJECT-ID:IC-222222
1818
X-MAINTNOTE-STATUS:CANCELLED
19-
DESCRIPTION:Please note that Telia Carrier will perform maintenance work as
19+
DESCRIPTION:Please note that Arelion will perform maintenance work as
2020
outlined below.\n\nPlanned work reference: PWIC111111\nAction and Reason:
21-
Telia Carrier is upgrading its transmission capacity in order to fulfill
21+
Arelion is upgrading its transmission capacity in order to fulfill
2222
customer needs.
2323
The work will be done in several service windows (contain
2424
ing both Primary and Backup).
@@ -29,24 +29,24 @@ several times.\nLo
2929
END:VEVENT
3030
BEGIN:VEVENT
3131
VERSION:2.0
32-
PRODID:-//Telia Carrier//Change Management Tool
32+
PRODID:-//Arelion//Change Management Tool
3333
DTSTART;VALUE=DATE-TIME:20210810T040000Z
3434
DTEND;VALUE=DATE-TIME:20210810T120000Z
3535
DTSTAMP;VALUE=DATE-TIME:20210802T080506Z
36-
UID:PWIC111111.2@teliacarrier.com
37-
SUMMARY:PWIC111111.2: Planned work notification from Telia Carrier
38-
ORGANIZER;CN="Telia Carrier CSC":mailto:carrier-csc@teliacompany.com
36+
UID:PWIC111111.2@arelion.com
37+
SUMMARY:PWIC111111.2: Planned work notification from Arelion
38+
ORGANIZER;CN="Arelion CSC":mailto:support@arelion.com
3939
SEQUENCE:34
40-
X-MAINTNOTE-PROVIDER:teliacarrier.com
40+
X-MAINTNOTE-PROVIDER:arelion.com
4141
X-MAINTNOTE-ACCOUNT:1111
4242
X-MAINTNOTE-MAINTENANCE-ID:PWIC111111.2
4343
X-MAINTNOTE-IMPACT:OUTAGE
4444
X-MAINTNOTE-OBJECT-ID:IC-111111
4545
X-MAINTNOTE-OBJECT-ID:IC-222222
4646
X-MAINTNOTE-STATUS:CANCELLED
47-
DESCRIPTION:Please note that Telia Carrier will perform maintenance work as
47+
DESCRIPTION:Please note that Arelion will perform maintenance work as
4848
outlined below.\n\nPlanned work reference: PWIC111111\nAction and Reason:
49-
Telia Carrier is upgrading its transmission capacity in order to fulfill
49+
Arelion is upgrading its transmission capacity in order to fulfill
5050
customer needs.
5151
The work will be done in several service windows (contain
5252
ing both Primary and Backup).
@@ -55,4 +55,4 @@ Each service window will be announced separ
5555
several times.\nLo
5656
cation: Atlanta/GA, US\nImpacted services: IC-111111, IC-222222
5757
END:VEVENT
58-
END:VCALENDAR
58+
END:VCALENDAR

tests/unit/data/telia/telia2_result.json renamed to tests/unit/data/arelion/arelion2_result.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
],
1414
"end": 1628596800,
1515
"maintenance_id": "PWIC111111.1",
16-
"organizer": "mailto:carrier-csc@teliacompany.com",
17-
"provider": "teliacarrier.com",
16+
"organizer": "mailto:support@arelion.com",
17+
"provider": "arelion.com",
1818
"sequence": 34,
1919
"stamp": 1627891506,
2020
"start": 1628568000,
2121
"status": "CANCELLED",
22-
"summary": "PWIC111111.1: Planned work notification from Telia Carrier",
23-
"uid": "PWIC111111.1@teliacarrier.com"
22+
"summary": "PWIC111111.1: Planned work notification from Arelion",
23+
"uid": "PWIC111111.1@arelion.com"
2424
},
2525
{
2626
"account": "1111",
@@ -36,13 +36,13 @@
3636
],
3737
"end": 1628596800,
3838
"maintenance_id": "PWIC111111.2",
39-
"organizer": "mailto:carrier-csc@teliacompany.com",
40-
"provider": "teliacarrier.com",
39+
"organizer": "mailto:support@arelion.com",
40+
"provider": "arelion.com",
4141
"sequence": 34,
4242
"stamp": 1627891506,
4343
"start": 1628568000,
4444
"status": "CANCELLED",
45-
"summary": "PWIC111111.2: Planned work notification from Telia Carrier",
46-
"uid": "PWIC111111.2@teliacarrier.com"
45+
"summary": "PWIC111111.2: Planned work notification from Arelion",
46+
"uid": "PWIC111111.2@arelion.com"
4747
}
48-
]
48+
]

tests/unit/test_e2e.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
Equinix,
1515
GenericProvider,
1616
AquaComms,
17+
Arelion,
1718
AWS,
1819
BSO,
1920
Cogent,
@@ -28,7 +29,6 @@
2829
PacketFabric,
2930
Seaborn,
3031
Sparkle,
31-
Telia,
3232
Telstra,
3333
Turkcell,
3434
Verizon,
@@ -64,6 +64,25 @@
6464
Path(dir_path, "data", "aquacomms", "aquacomms1_result.json"),
6565
],
6666
),
67+
# Arelion
68+
(
69+
Arelion,
70+
[
71+
("ical", Path(dir_path, "data", "arelion", "arelion1")),
72+
],
73+
[
74+
Path(dir_path, "data", "arelion", "arelion1_result.json"),
75+
],
76+
),
77+
(
78+
Arelion,
79+
[
80+
("ical", Path(dir_path, "data", "arelion", "arelion2")),
81+
],
82+
[
83+
Path(dir_path, "data", "arelion", "arelion2_result.json"),
84+
],
85+
),
6786
# AWS
6887
(
6988
AWS,
@@ -499,25 +518,6 @@
499518
Path(dir_path, "data", "sparkle", "sparkle1_result.json"),
500519
],
501520
),
502-
# Telia
503-
(
504-
Telia,
505-
[
506-
("ical", Path(dir_path, "data", "telia", "telia1")),
507-
],
508-
[
509-
Path(dir_path, "data", "telia", "telia1_result.json"),
510-
],
511-
),
512-
(
513-
Telia,
514-
[
515-
("ical", Path(dir_path, "data", "telia", "telia2")),
516-
],
517-
[
518-
Path(dir_path, "data", "telia", "telia2_result.json"),
519-
],
520-
),
521521
# Telstra
522522
(
523523
Telstra,

0 commit comments

Comments
 (0)