-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
lab_hash
to Docker networks names (#256)
This commit adds the `lab_hash` to Docker networks names and adds an option in the Shared Collision Domain of the `DockerSettingsAddon` to share collision domains between network scenarios of the same user or between different users.
- Loading branch information
Showing
8 changed files
with
177 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from enum import IntEnum | ||
|
||
|
||
class SharedCollisionDomainsOption(IntEnum): | ||
"""Enum representing options for shared collision domains option. | ||
Attributes: | ||
NOT_SHARED (int): Represents the option for not sharing collision domains (value: 1). | ||
LABS (int): Represents the option for sharing collision domains among network scenarios of the same user | ||
(value: 2). | ||
USERS (int): Represents the option for sharing collision domains among network scenarios of different0 users | ||
(value: 3). | ||
""" | ||
NOT_SHARED = 1 | ||
LABS = 2 | ||
USERS = 3 | ||
|
||
@staticmethod | ||
def to_string(value): | ||
if value == 1: | ||
return "Not shared" | ||
elif value == 2: | ||
return "Share collision domain between network scenarios" | ||
elif value == 3: | ||
return "Share collision domain between users" |
Oops, something went wrong.