From 36a95e757754be5115075f9a3bd5bec578f54afb Mon Sep 17 00:00:00 2001 From: wrodrigues Date: Mon, 13 Oct 2014 18:45:10 +0200 Subject: [PATCH] TK-2925 Add support for loadbalancer config in ConfigHelper Adding new ConfigItem classes, that will be used to decouple the configureation from the ConfigHelper class. The idea is to use mix of Flyweight and Facade implementation in order to the correct classes without having so many ifs and private static methods. --- .../facade/AbstractConfigItemFacade.java | 32 +++++++++++++++++ .../facade/BumUpPriorityConfigItem.java | 36 +++++++++++++++++++ .../facade/CreateIpAliasConfigItem.java | 36 +++++++++++++++++++ .../facade/DeleteIpAliasConfigItem.java | 36 +++++++++++++++++++ .../facade/DhcpEntryConfigItem.java | 36 +++++++++++++++++++ .../facade/DnsMasqConfigItem.java | 36 +++++++++++++++++++ .../facade/IpAssociationConfigItem.java | 36 +++++++++++++++++++ .../facade/LoadBalancerConfigItem.java | 36 +++++++++++++++++++ .../facade/RemoteAccessVpnConfigItem.java | 36 +++++++++++++++++++ .../facade/SavePasswordConfigItem.java | 36 +++++++++++++++++++ .../facade/SetFirewallRulesConfigItem.java | 36 +++++++++++++++++++ .../facade/SetGuestNetworkConfigItem.java | 36 +++++++++++++++++++ .../facade/SetMonitorServiceConfigItem.java | 36 +++++++++++++++++++ .../facade/SetNetworkAclConfigItem.java | 36 +++++++++++++++++++ .../SetPortForwardingRulusConfigItem.java | 36 +++++++++++++++++++ .../SetPortForwardingRulusVpcConfigItem.java | 36 +++++++++++++++++++ .../facade/SetSourceNatConfigItem.java | 36 +++++++++++++++++++ .../facade/SetStaticNatRulesConfigItem.java | 36 +++++++++++++++++++ .../facade/SetStaticRouteConfigItem.java | 36 +++++++++++++++++++ .../facade/Site2SiteVpnConfigItem.java | 36 +++++++++++++++++++ .../facade/VmDataConfigItem.java | 36 +++++++++++++++++++ .../facade/VpnUsersConfigItem.java | 36 +++++++++++++++++++ 22 files changed, 788 insertions(+) create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/AbstractConfigItemFacade.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/BumUpPriorityConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/CreateIpAliasConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/DeleteIpAliasConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/DhcpEntryConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/DnsMasqConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/IpAssociationConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/LoadBalancerConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/RemoteAccessVpnConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SavePasswordConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetFirewallRulesConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetGuestNetworkConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetMonitorServiceConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusVpcConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetSourceNatConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticNatRulesConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticRouteConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/Site2SiteVpnConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/VmDataConfigItem.java create mode 100644 core/src/com/cloud/agent/resource/virtualnetwork/facade/VpnUsersConfigItem.java diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/AbstractConfigItemFacade.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/AbstractConfigItemFacade.java new file mode 100644 index 00000000000..80e10ad7968 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/AbstractConfigItemFacade.java @@ -0,0 +1,32 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public abstract class AbstractConfigItemFacade { + public abstract List generateConfig(NetworkElementCommand cmd); + + public abstract List generateConfigItems(ConfigBase configuration); +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/BumUpPriorityConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/BumUpPriorityConfigItem.java new file mode 100644 index 00000000000..af65d8d9ad8 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/BumUpPriorityConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class BumUpPriorityConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/CreateIpAliasConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/CreateIpAliasConfigItem.java new file mode 100644 index 00000000000..9cd4cb6e36d --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/CreateIpAliasConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class CreateIpAliasConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/DeleteIpAliasConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/DeleteIpAliasConfigItem.java new file mode 100644 index 00000000000..6b889b2e636 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/DeleteIpAliasConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class DeleteIpAliasConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/DhcpEntryConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/DhcpEntryConfigItem.java new file mode 100644 index 00000000000..53f6230d2f0 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/DhcpEntryConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class DhcpEntryConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/DnsMasqConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/DnsMasqConfigItem.java new file mode 100644 index 00000000000..87413cb526a --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/DnsMasqConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class DnsMasqConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/IpAssociationConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/IpAssociationConfigItem.java new file mode 100644 index 00000000000..cd1c7ebdb58 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/IpAssociationConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class IpAssociationConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/LoadBalancerConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/LoadBalancerConfigItem.java new file mode 100644 index 00000000000..fc20d1e2642 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/LoadBalancerConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class LoadBalancerConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/RemoteAccessVpnConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/RemoteAccessVpnConfigItem.java new file mode 100644 index 00000000000..261525f822a --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/RemoteAccessVpnConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class RemoteAccessVpnConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SavePasswordConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SavePasswordConfigItem.java new file mode 100644 index 00000000000..249517164e8 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SavePasswordConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SavePasswordConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetFirewallRulesConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetFirewallRulesConfigItem.java new file mode 100644 index 00000000000..ad41cd6921e --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetFirewallRulesConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetFirewallRulesConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetGuestNetworkConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetGuestNetworkConfigItem.java new file mode 100644 index 00000000000..bc7f177acfe --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetGuestNetworkConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetGuestNetworkConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetMonitorServiceConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetMonitorServiceConfigItem.java new file mode 100644 index 00000000000..ef4d8f7bfe2 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetMonitorServiceConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetMonitorServiceConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java new file mode 100644 index 00000000000..65976701922 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetNetworkAclConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetNetworkAclConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusConfigItem.java new file mode 100644 index 00000000000..d19e0d52dd2 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetPortForwardingRulusConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusVpcConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusVpcConfigItem.java new file mode 100644 index 00000000000..e8ff3698e09 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetPortForwardingRulusVpcConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetPortForwardingRulusVpcConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetSourceNatConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetSourceNatConfigItem.java new file mode 100644 index 00000000000..61031d1c189 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetSourceNatConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetSourceNatConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticNatRulesConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticNatRulesConfigItem.java new file mode 100644 index 00000000000..f0e3e107f99 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticNatRulesConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetStaticNatRulesConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticRouteConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticRouteConfigItem.java new file mode 100644 index 00000000000..d7fda102dc5 --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/SetStaticRouteConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class SetStaticRouteConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/Site2SiteVpnConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/Site2SiteVpnConfigItem.java new file mode 100644 index 00000000000..c9711582d0a --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/Site2SiteVpnConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class Site2SiteVpnConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/VmDataConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/VmDataConfigItem.java new file mode 100644 index 00000000000..a8c4685188d --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/VmDataConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class VmDataConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file diff --git a/core/src/com/cloud/agent/resource/virtualnetwork/facade/VpnUsersConfigItem.java b/core/src/com/cloud/agent/resource/virtualnetwork/facade/VpnUsersConfigItem.java new file mode 100644 index 00000000000..630e48984ce --- /dev/null +++ b/core/src/com/cloud/agent/resource/virtualnetwork/facade/VpnUsersConfigItem.java @@ -0,0 +1,36 @@ +// +// 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.resource.virtualnetwork.facade; + +import java.util.List; + +import com.cloud.agent.api.routing.NetworkElementCommand; +import com.cloud.agent.resource.virtualnetwork.ConfigItem; +import com.cloud.agent.resource.virtualnetwork.model.ConfigBase; + +public class VpnUsersConfigItem { + public List generateConfig(final NetworkElementCommand cmd) { + return null; + } + + public List generateConfigItems(final ConfigBase configuration) { + return null; + } +} \ No newline at end of file