mirror of https://github.com/apache/cloudstack.git
Added new commands for the following:
a. Logical edge firewall creation in VNMC b. Asa1kv vservice node creation and updating asa1kv inside port profile with guest network vlan id in n1kv VSM
This commit is contained in:
parent
d6cdfe35f8
commit
dc402eaa7a
|
|
@ -0,0 +1,95 @@
|
|||
// 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.agent.api;
|
||||
|
||||
/*
|
||||
* Command for configuring n1kv VSM for asa1kv device. It does the following in VSM:
|
||||
* a. creating vservice node for asa1kv
|
||||
* b. updating vlan of inside port profile associated with asa1kv
|
||||
*/
|
||||
public class ConfigureNexusVsmForAsaCommand extends Command {
|
||||
private long _vlanId;
|
||||
private String _ipAddress;
|
||||
private String _vsmUsername;
|
||||
private String _vsmPassword;
|
||||
private String _vsmIp;
|
||||
private String _asaInPortProfile;
|
||||
|
||||
public ConfigureNexusVsmForAsaCommand(long vlanId, String ipAddress,
|
||||
String vsmUsername, String vsmPassword, String vsmIp, String asaInPortProfile) {
|
||||
super();
|
||||
this._vlanId = vlanId;
|
||||
this._ipAddress = ipAddress;
|
||||
this._vsmUsername = vsmUsername;
|
||||
this._vsmPassword = vsmPassword;
|
||||
this._vsmIp = vsmIp;
|
||||
this._asaInPortProfile = asaInPortProfile;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean executeInSequence() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public long getVlanId() {
|
||||
return _vlanId;
|
||||
}
|
||||
|
||||
public void setVlanId(long _vlanId) {
|
||||
this._vlanId = _vlanId;
|
||||
}
|
||||
|
||||
public String getIpAddress() {
|
||||
return _ipAddress;
|
||||
}
|
||||
|
||||
public void setIpAddress(String _ipAddress) {
|
||||
this._ipAddress = _ipAddress;
|
||||
}
|
||||
|
||||
public String getVsmUsername() {
|
||||
return _vsmUsername;
|
||||
}
|
||||
|
||||
public void setVsmUsername(String _vsmUsername) {
|
||||
this._vsmUsername = _vsmUsername;
|
||||
}
|
||||
|
||||
public String getVsmPassword() {
|
||||
return _vsmPassword;
|
||||
}
|
||||
|
||||
public void setVsmPassword(String _vsmPassword) {
|
||||
this._vsmPassword = _vsmPassword;
|
||||
}
|
||||
|
||||
public String getVsmIp() {
|
||||
return _vsmIp;
|
||||
}
|
||||
|
||||
public void setVsmIp(String _vsmIp) {
|
||||
this._vsmIp = _vsmIp;
|
||||
}
|
||||
|
||||
public String getAsaInPortProfile() {
|
||||
return _asaInPortProfile;
|
||||
}
|
||||
|
||||
public void setAsaInPortProfile(String _asaInPortProfile) {
|
||||
this._asaInPortProfile = _asaInPortProfile;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
// 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.agent.api;
|
||||
|
||||
/*
|
||||
* Command for creating a logical edge firewall in VNMC
|
||||
*/
|
||||
public class CreateLogicalEdgeFirewallCommand extends Command {
|
||||
private long _vlanId;
|
||||
private String _publicIp;
|
||||
private String _internalIp;
|
||||
private String _publicSubnet;
|
||||
private String _internalSubnet;
|
||||
|
||||
public CreateLogicalEdgeFirewallCommand(long vlanId,
|
||||
String publicIp, String internalIp,
|
||||
String publicSubnet, String internalSubnet) {
|
||||
super();
|
||||
this._vlanId = vlanId;
|
||||
this._publicIp = publicIp;
|
||||
this._internalIp = internalIp;
|
||||
this._publicSubnet = publicSubnet;
|
||||
this.setInternalSubnet(internalSubnet);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean executeInSequence() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public long getVlanId() {
|
||||
return _vlanId;
|
||||
}
|
||||
|
||||
public void setVlanId(long vlanId) {
|
||||
this._vlanId = vlanId;
|
||||
}
|
||||
|
||||
public String getPublicIp() {
|
||||
return _publicIp;
|
||||
}
|
||||
|
||||
public void setPublicIp(String publicIp) {
|
||||
this._publicIp = publicIp;
|
||||
}
|
||||
|
||||
public String getInternalIp() {
|
||||
return _internalIp;
|
||||
}
|
||||
|
||||
public void setInternalIp(String internalIp) {
|
||||
this._internalIp = internalIp;
|
||||
}
|
||||
|
||||
public String getPublicSubnet() {
|
||||
return _publicSubnet;
|
||||
}
|
||||
|
||||
public void setPublicSubnet(String publicSubnet) {
|
||||
this._publicSubnet = publicSubnet;
|
||||
}
|
||||
|
||||
public String getInternalSubnet() {
|
||||
return _internalSubnet;
|
||||
}
|
||||
|
||||
public void setInternalSubnet(String _internalSubnet) {
|
||||
this._internalSubnet = _internalSubnet;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue