Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
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
0ab76a05
authored
Nov 25, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
occi: rename remaining disk strings to storage
parent
e25aba23
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
circle/occi/occi.py
+2
-1
circle/occi/urls.py
+1
-1
No files found.
circle/occi/occi.py
View file @
0ab76a05
...
@@ -453,7 +453,8 @@ class StorageLink(Link):
...
@@ -453,7 +453,8 @@ class StorageLink(Link):
def
init_attrs
(
self
,
instance
,
disk
):
def
init_attrs
(
self
,
instance
,
disk
):
self
.
attrs
=
{}
self
.
attrs
=
{}
self
.
attrs
[
'occi.core.id'
]
=
"vm_
%
d_disk_
%
d"
%
(
instance
.
pk
,
disk
.
pk
)
self
.
attrs
[
'occi.core.id'
]
=
"vm_
%
d_storage_
%
d"
%
(
instance
.
pk
,
disk
.
pk
)
self
.
attrs
[
'occi.core.target'
]
=
Storage
(
disk
)
.
render_location
()
self
.
attrs
[
'occi.core.target'
]
=
Storage
(
disk
)
.
render_location
()
self
.
attrs
[
'occi.core.source'
]
=
Compute
(
instance
)
.
render_location
()
self
.
attrs
[
'occi.core.source'
]
=
Compute
(
instance
)
.
render_location
()
# deviceid? mountpoint?
# deviceid? mountpoint?
...
...
circle/occi/urls.py
View file @
0ab76a05
...
@@ -36,7 +36,7 @@ urlpatterns = patterns(
...
@@ -36,7 +36,7 @@ urlpatterns = patterns(
url
(
r'^storage/(?P<pk>\d+)/?$'
,
DiskInterface
.
as_view
(),
name
=
"occi.disk"
),
url
(
r'^storage/(?P<pk>\d+)/?$'
,
DiskInterface
.
as_view
(),
name
=
"occi.disk"
),
url
(
r'^link/storagelink/$'
,
StorageLinkInterface
.
as_view
()),
url
(
r'^link/storagelink/$'
,
StorageLinkInterface
.
as_view
()),
url
(
r'^link/storagelink/vm
(?P<vm_pk>\d+)_disk
(?P<disk_pk>\d+)/?$'
,
url
(
r'^link/storagelink/vm
_(?P<vm_pk>\d+)_storage_
(?P<disk_pk>\d+)/?$'
,
StorageLinkInterface
.
as_view
(),
name
=
"occi.storagelink"
),
StorageLinkInterface
.
as_view
(),
name
=
"occi.storagelink"
),
url
(
r'^network2/?$'
,
NetworkInterfaceView
.
as_view
(),
),
url
(
r'^network2/?$'
,
NetworkInterfaceView
.
as_view
(),
),
...
...
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