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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
56309ef2
authored
Apr 26, 2019
by
Adam Torok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update port params
parent
56cede34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
implementation/network/OpenstackPortManager.py
+5
-0
interface/network/PortManager.py
+3
-0
No files found.
implementation/network/OpenstackPortManager.py
View file @
56309ef2
...
...
@@ -38,6 +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
)
return
self
.
os_port_to_rc_port
(
os_port
)
def
delete
(
self
,
id
)
->
bool
:
try
:
self
.
openstack
.
network
.
delete_port
(
id
)
...
...
interface/network/PortManager.py
View file @
56309ef2
...
...
@@ -11,6 +11,9 @@ class PortManager:
def
get
(
self
,
id
)
->
Port
:
raise
NotImplementedError
def
update
(
self
,
id
,
params
):
raise
NotImplementedError
def
delete
(
self
,
id
)
->
bool
:
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