gha: fix EOF and license

This commit is contained in:
Wei Zhou 2026-04-15 09:45:34 +02:00
parent b39eeac0d7
commit b3dea2673b
6 changed files with 39 additions and 10 deletions

View File

@ -50,4 +50,3 @@ public interface NetworkCustomActionProvider {
*/
String runCustomAction(Network network, String actionName, Map<String, Object> parameters);
}

View File

@ -1,3 +1,20 @@
// 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;
import org.junit.Test;
@ -37,4 +54,3 @@ public class NetworkTest {
assertTrue("List should contain the new transient provider with same name", providers.contains(transientProviderNew));
}
}

View File

@ -114,4 +114,3 @@ public class UpdateRegisteredExtensionCmd extends BaseCmd {
return getExtensionId();
}
}

View File

@ -1,3 +1,22 @@
<!--
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.
-->
# Network Extension Script Protocol
This document describes the complete interface between Apache CloudStack's
@ -1068,9 +1087,7 @@ esac
exit 0
```
For a full production implementation see:
- `extensions/network-namespace/network-namespace.sh` — management-server
entry-point (SSH proxy).
- `extensions/network-namespace/network-namespace-wrapper.sh` — KVM-host
wrapper that implements all commands using Linux network namespaces.
For a full production implementation see https://github.com/apache/cloudstack-extensions/tree/network-namespace/Network-Namespace:
- `network-namespace.sh` — management-server entry-point (SSH proxy).
- `enetwork-namespace-wrapper.sh` — KVM-host wrapper that implements all commands using Linux network namespaces.

View File

@ -112,4 +112,3 @@ public class UpdateRegisteredExtensionCmdTest {
}
}
}

View File

@ -2586,4 +2586,3 @@ class TestNetworkExtensionNamespace(cloudstackTestCase):
self._teardown_extension()
except Exception:
pass