Skip to content

Commit 4005c54

Browse files
author
fgp
committed
add volumev2 api to catalog
1 parent 82a0b30 commit 4005c54

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/bupt/openstack/keystone/model/CatalogType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package bupt.openstack.keystone.model;
22

33
public enum CatalogType {
4-
compute,image,identity, cloudformation, volume, orchestration;
4+
compute,image,identity, cloudformation, volume, volumev2, orchestration;
55
public static CatalogType of(String type) {
66
return CatalogType.valueOf(type);
77
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package bupt.openstack.test;
2+
3+
import bupt.openstack.common.OpenstackSession;
4+
import bupt.openstack.common.OperationException;
5+
import bupt.openstack.nova.Nova;
6+
7+
public class SessionTest {
8+
public static void main(String[] args) throws OperationException {
9+
OpenstackSession session = OpenstackSession.getSession("admin", "ADMIN_PASS");
10+
Nova nova = session.getNovaClient();
11+
System.out.println(nova.hypervisors.uptime("2").toString(4));
12+
//System.out.println(nova.images.get("d9475eec-d319-494f-921f-58ec1e229ded").toString(4));
13+
14+
}
15+
}

0 commit comments

Comments
 (0)