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
5ae804b6
authored
6 years ago
by
edems
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FloatingIP model added
parent
6f9ca0f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
interface/network/FloatingIP.py
+36
-0
No files found.
interface/network/FloatingIP.py
0 → 100644
View file @
5ae804b6
import
json
class
FloatingIP
:
def
__init__
(
self
,
id
,
router_id
,
floating_network_id
,
subnet_id
,
port_id
,
name
,
fixed_ip_address
,
floating_ip_address
,
status
,
created_at
,
updated_at
)
->
None
:
super
()
.
__init__
()
self
.
id
=
id
self
.
router_id
=
router_id
self
.
floating_network_id
=
floating_network_id
self
.
subnet_id
=
subnet_id
self
.
port_id
=
port_id
self
.
name
=
name
self
.
fixed_ip_address
=
fixed_ip_address
self
.
floating_ip_address
=
floating_ip_address
self
.
status
=
status
self
.
created_at
=
created_at
self
.
updated_at
=
updated_at
def
__str__
(
self
)
->
str
:
return
self
.
toJSON
()
def
toJSON
(
self
):
return
json
.
dumps
(
self
.
__dict__
)
This diff is collapsed.
Click to expand it.
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