Code Review
/
oam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Reformat files according to template
[oam.git]
/
code
/
network-generator
/
network_generation
/
model
/
python
/
top.py
diff --git
a/code/network-generator/network_generation/model/python/top.py
b/code/network-generator/network_generation/model/python/top.py
index
214a773
..
5d6ac02
100644
(file)
--- a/
code/network-generator/network_generation/model/python/top.py
+++ b/
code/network-generator/network_generation/model/python/top.py
@@
-19,13
+19,14
@@
An abstract Class for all classes
"""
import uuid
from abc import ABC
"""
import uuid
from abc import ABC
+
from network_generation.model.python.type_definitions import (
AdministrativeState,
from network_generation.model.python.type_definitions import (
AdministrativeState,
+ AlarmState,
+ LifeCycleState,
OperationalState,
UsageState,
Utilization,
OperationalState,
UsageState,
Utilization,
- LifeCycleState,
- AlarmState,
)
)
@@
-76,11
+77,17
@@
class Top(ABC, ITop):
if data and "lifeCycleState" in data
else LifeCycleState.PLANNED
)
if data and "lifeCycleState" in data
else LifeCycleState.PLANNED
)
- self._alarmState = data["alarmState"] if data and "alarmState" in data else 0
+ self._alarmState = (
+ data["alarmState"] if data and "alarmState" in data else 0
+ )
self._usageState = (
self._usageState = (
- data["usageState"] if data and "usageState" in data else UsageState.UNUSED
+ data["usageState"]
+ if data and "usageState" in data
+ else UsageState.UNUSED
+ )
+ self._utilization = (
+ data["utilization"] if data and "utilization" in data else 0
)
)
- self._utilization = data["utilization"] if data and "utilization" in data else 0
@property
def id(self) -> str:
@property
def id(self) -> str: