Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
interface-openstack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
4
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cd55b09d
authored
Apr 26, 2019
by
Adam Torok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Network & NetworkManager interface added
parent
08f0fe9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
interface/network/Network.py
+24
-0
interface/network/NetworkManager.py
+18
-0
No files found.
interface/network/Network.py
0 → 100644
View file @
cd55b09d
import
json
class
Network
:
def
__init__
(
self
,
id
,
name
,
status
,
subnet_ids
,
created_at
)
->
None
:
super
()
.
__init__
()
self
.
id
=
id
self
.
name
=
name
self
.
status
=
status
self
.
subnet_ids
=
subnet_ids
self
.
created_at
=
created_at
def
__str__
(
self
)
->
str
:
return
self
.
toJSON
()
def
toJSON
(
self
):
return
json
.
dumps
(
self
.
__dict__
)
interface/network/NetworkManager.py
0 → 100644
View file @
cd55b09d
from
interface.network.Network
import
Network
class
NetworkManager
:
def
__init__
(
self
)
->
None
:
super
()
.
__init__
()
def
create
(
self
)
->
Network
:
raise
NotImplementedError
def
get
(
self
,
id
)
->
Network
:
raise
NotImplementedError
def
delete
(
self
,
id
)
->
bool
:
raise
NotImplementedError
def
list
(
self
)
->
[]:
raise
NotImplementedError
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment