Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NSX specific RestClient in API implementation (NiciraNvpApi)
- Simplify public API to return Lists instead of NiciraNvpLists
- Loading branch information
1 parent
c6602ee
commit 09f7153
Showing
12 changed files
with
539 additions
and
617 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
...s/network-elements/nicira-nvp/src/main/java/com/cloud/network/nicira/NiciraConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
|
||
package com.cloud.network.nicira; | ||
|
||
public class NiciraConstants { | ||
|
||
public static final String SEC_PROFILE_URI_PREFIX = "/ws.v1/security-profile"; | ||
public static final String ACL_URI_PREFIX = "/ws.v1/acl"; | ||
public static final String SWITCH_URI_PREFIX = "/ws.v1/lswitch"; | ||
public static final String ROUTER_URI_PREFIX = "/ws.v1/lrouter"; | ||
public static final String LOGIN_URL = "/ws.v1/login"; | ||
public static final String CONTROL_CLUSTER_STATUS_URL = "/ws.v1/control-cluster/status"; | ||
|
||
public static final String ATTACHMENT_PATH_SEGMENT = "/attachment"; | ||
public static final String NAT_PATH_SEGMENT = "/nat"; | ||
public static final String LPORT_PATH_SEGMENT = "/lport"; | ||
|
||
public static final String ATTACHMENT_VIF_UUID_QUERY_PARAMETER_NAME = "attachment_vif_uuid"; | ||
public static final String ATTACHMENT_VLAN_PARAMETER = "attachment_vlan"; | ||
public static final String ATTACHMENT_GWSVC_UUID_QUERY_PARAMETER = "attachment_gwsvc_uuid"; | ||
public static final String WILDCARD_QUERY_PARAMETER = "*"; | ||
public static final String UUID_QUERY_PARAMETER = "uuid"; | ||
public static final String FIELDS_QUERY_PARAMETER = "fields"; | ||
|
||
} |
323 changes: 179 additions & 144 deletions
323
plugins/network-elements/nicira-nvp/src/main/java/com/cloud/network/nicira/NiciraNvpApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.