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
4d0a6629
authored
Apr 26, 2019
by
Adam Torok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update methods added to impls.
parent
4d452b14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
2 deletions
+29
-2
implementation/network/OpenstackNetworkManager.py
+8
-0
implementation/network/OpenstackPortManager.py
+5
-2
implementation/network/OpenstackRouterManager.py
+8
-0
implementation/network/OpenstackSubnetManager.py
+8
-0
No files found.
implementation/network/OpenstackNetworkManager.py
View file @
4d0a6629
...
...
@@ -36,6 +36,14 @@ class OpenstackNetworkManager(NetworkManager):
return
self
.
os_network_to_rc_network
(
os_network
)
def
update
(
self
,
id
,
params
)
->
Optional
[
Network
]:
try
:
os_network
=
self
.
openstack
.
network
.
update_network
(
id
,
**
params
)
except
ResourceNotFound
:
return
None
return
self
.
os_network_to_rc_network
(
os_network
)
def
delete
(
self
,
id
)
->
bool
:
try
:
self
.
openstack
.
network
.
delete_network
(
id
)
...
...
implementation/network/OpenstackPortManager.py
View file @
4d0a6629
...
...
@@ -38,8 +38,11 @@ class OpenstackPortManager(PortManager):
return
self
.
os_port_to_rc_port
(
os_port
)
def
update
(
self
,
id
,
params
):
os_port
=
self
.
openstack
.
network
.
update_port
(
id
,
**
params
)
def
update
(
self
,
id
,
params
)
->
Optional
[
Port
]:
try
:
os_port
=
self
.
openstack
.
network
.
update_port
(
id
,
**
params
)
except
ResourceNotFound
:
return
None
return
self
.
os_port_to_rc_port
(
os_port
)
...
...
implementation/network/OpenstackRouterManager.py
View file @
4d0a6629
...
...
@@ -35,6 +35,14 @@ class OpenstackRouterManager(RouterManager):
return
self
.
os_router_to_rc_router
(
os_router
)
def
update
(
self
,
id
,
params
)
->
Optional
[
Router
]:
try
:
os_router
=
self
.
openstack
.
network
.
update_router
(
id
,
**
params
)
except
ResourceNotFound
:
return
None
return
self
.
os_router_to_rc_router
(
os_router
)
def
delete
(
self
,
id
)
->
bool
:
try
:
self
.
openstack
.
network
.
delete_router
(
id
)
...
...
implementation/network/OpenstackSubnetManager.py
View file @
4d0a6629
...
...
@@ -43,6 +43,14 @@ class OpenstackSubnetManager(SubnetManager):
return
self
.
os_subnet_to_rc_subnet
(
os_subnet
)
def
update
(
self
,
params
)
->
Optional
[
Subnet
]:
try
:
os_subnet
=
self
.
openstack
.
network
.
update_subnet
(
id
,
**
params
)
except
ResourceNotFound
:
return
None
return
self
.
os_subnet_to_rc_subnet
(
os_subnet
)
def
delete
(
self
,
id
)
->
bool
:
try
:
self
.
openstack
.
network
.
delete_subnet
(
id
=
id
)
...
...
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