From f0810a55cb4e4e833ba9144a6f552411f1c36b81 Mon Sep 17 00:00:00 2001 From: Jeremy Mordkoff Date: Fri, 1 Apr 2016 17:13:43 -0400 Subject: [PATCH] Update license headers Signed-off-by: Jeremy Mordkoff --- .../rwvx/rwcal/include/riftware/rwcal-api.h | 16 +++++++++++++++- .../tasklets/rwcalproxytasklet/__init__.py | 15 +++++++++++++++ .../rwcalproxytasklet/rwcalproxytasklet.py | 18 ++++++++++++++++-- .../rwcalproxytasklet/rwcalproxytasklet.py | 18 ++++++++++++++++-- .../vala/rwcal_aws/rift/rwcal/aws/__init__.py | 15 +++++++++++++++ .../vala/rwcal_aws/rift/rwcal/aws/aws_drv.py | 18 ++++++++++++++++-- .../rwcal_aws/rift/rwcal/aws/aws_table.py | 19 ++++++++++++++++--- .../rwcal_aws/rift/rwcal/aws/delete_vm.py | 19 ++++++++++++++++--- .../rwcal_aws/rift/rwcal/aws/exceptions.py | 19 ++++++++++++++++--- .../rwcal_aws/rift/rwcal/aws/prepare_vm.py | 19 ++++++++++++++++--- .../rwcal/plugins/vala/rwcal_aws/rwcal_aws.py | 18 ++++++++++++++++-- .../rift/rwcal/cloudsim/__init__.py | 15 +++++++++++++++ .../rift/rwcal/cloudsim/core.py | 18 ++++++++++++++++-- .../rift/rwcal/cloudsim/exceptions.py | 19 ++++++++++++++++--- .../rift/rwcal/cloudsim/image.py | 18 ++++++++++++++++-- .../rwcal_cloudsim/rift/rwcal/cloudsim/lvm.py | 19 ++++++++++++++++--- .../rwcal_cloudsim/rift/rwcal/cloudsim/lxc.py | 18 ++++++++++++++++-- .../rwcal_cloudsim/rift/rwcal/cloudsim/net.py | 19 ++++++++++++++++--- .../rift/rwcal/cloudsim/shell.py | 19 ++++++++++++++++--- .../vala/rwcal_cloudsim/rwcal_cloudsim.py | 18 ++++++++++++++++-- .../test/cloudsim_module_test.py | 18 ++++++++++++++++-- .../rwcal_cloudsimproxy.py | 18 ++++++++++++++++-- .../plugins/vala/rwcal_mock/rwcal_mock.py | 19 ++++++++++++++++--- .../vala/rwcal_openmano/rwcal_openmano.py | 18 ++++++++++++++++-- .../rift/rwcal/openstack/__init__.py | 15 +++++++++++++++ .../rift/rwcal/openstack/openstack_drv.py | 18 ++++++++++++++++-- .../rift/rwcal/openstack/prepare_vm.py | 19 ++++++++++++++++--- .../vala/rwcal_openstack/rwcal_openstack.py | 18 ++++++++++++++++-- .../rwcal_vsphere/rift/vsphere/vsphere.py | 18 ++++++++++++++++-- .../vala/rwcal_vsphere/rwcal_vsphere.py | 18 ++++++++++++++++-- .../rwcal/plugins/vala/rwcal_zk/rwcal_zk.py | 19 ++++++++++++++++--- .../core/rwvx/rwcal/plugins/yang/rwcal.yang | 1 - modules/core/rwvx/rwcal/rift/cal/rwzk.py | 19 ++++++++++++++++--- modules/core/rwvx/rwcal/src/rwcal_py.c | 16 +++++++++++++++- modules/core/rwvx/rwcal/src/rwcal_rwzk.c | 16 +++++++++++++++- modules/core/rwvx/rwcal/src/rwvim.py | 19 ++++++++++++++++--- .../core/rwvx/rwcal/test/RIFT.ware-ready.py | 18 ++++++++++++++++-- modules/core/rwvx/rwcal/test/aws_resources.py | 17 ++++++++++++++++- .../cal_module_test/pytest/cal_module_test.py | 18 ++++++++++++++++-- .../test/cal_module_test/pytest/conftest.py | 18 ++++++++++++++++-- modules/core/rwvx/rwcal/test/cloudtool_cal.py | 18 ++++++++++++++++-- modules/core/rwvx/rwcal/test/ec2.py | 18 ++++++++++++++++-- .../rwvx/rwcal/test/openstack_resources.py | 18 ++++++++++++++++-- .../rwvx/rwcal/test/rwcal_callback_gtest.cpp | 17 ++++++++++++++++- modules/core/rwvx/rwcal/test/rwcal_dump.cpp | 17 ++++++++++++++++- .../core/rwvx/rwcal/test/rwcal_zk_gtest.cpp | 17 ++++++++++++++++- .../rwvx/rwcal/test/test_container_cal.py | 18 ++++++++++++++++-- .../rwvx/rwcal/test/test_openstack_install.py | 18 ++++++++++++++++-- .../rwvx/rwcal/test/test_rwcal_openstack.py | 18 ++++++++++++++++-- .../rwvx/rwcal/test/test_rwlxc_rwlaunchpad.py | 18 ++++++++++++++++-- 50 files changed, 777 insertions(+), 97 deletions(-) diff --git a/modules/core/rwvx/rwcal/include/riftware/rwcal-api.h b/modules/core/rwvx/rwcal/include/riftware/rwcal-api.h index 9765b16..fa11a2b 100644 --- a/modules/core/rwvx/rwcal/include/riftware/rwcal-api.h +++ b/modules/core/rwvx/rwcal/include/riftware/rwcal-api.h @@ -1,7 +1,21 @@ +/* * Copyright 2016 RIFT.IO Inc + * + * Licensed 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. + */ + /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * */ diff --git a/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/__init__.py b/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/__init__.py index 94af0b3..0ee7885 100644 --- a/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/__init__.py +++ b/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/__init__.py @@ -1 +1,16 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + from .rwcalproxytasklet import RwCalProxyTasklet diff --git a/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/rwcalproxytasklet.py b/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/rwcalproxytasklet.py index b6cbf56..2f03cb4 100644 --- a/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/rwcalproxytasklet.py +++ b/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rift/tasklets/rwcalproxytasklet/rwcalproxytasklet.py @@ -1,6 +1,20 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + """ # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @file rwcalproxytasklet.py @@ -616,4 +630,4 @@ class RwCalProxyTasklet(rift.tasklets.Tasklet): # Transition dts to next state next_state = switch.get(state, None) if next_state is not None: - self._dts.handle.set_state(next_state) + self._dts.handle.set_state(next_state) \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rwcalproxytasklet.py b/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rwcalproxytasklet.py index cafdc21..096d332 100644 --- a/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rwcalproxytasklet.py +++ b/modules/core/rwvx/rwcal/plugins/rwcalproxytasklet/rwcalproxytasklet.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # # Workaround RIFT-6485 - rpmbuild defaults to python2 for @@ -14,4 +28,4 @@ import rift.tasklets.rwcalproxytasklet class Tasklet(rift.tasklets.rwcalproxytasklet.RwCalProxyTasklet): pass -# vim: sw=4 +# vim: sw=4 \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/__init__.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/__init__.py index 4ce1fa2..30a446e 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/__init__.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/__init__.py @@ -1 +1,16 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + from .aws_drv import AWSDriver diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_drv.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_drv.py index c816677..f5bb7ff 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_drv.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_drv.py @@ -1,7 +1,21 @@ #!/usr/bin/python +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import boto3 @@ -960,4 +974,4 @@ class AWSDriver(object): """ self._ec2_client_handle.delete_key_pair(KeyName=key_name) - + \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_table.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_table.py index c28c452..2e28387 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_table.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/aws_table.py @@ -1,7 +1,21 @@ #!/usr/bin/python +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @@ -447,5 +461,4 @@ INSTANCE_TYPES = { 'cpu': 36 } } -} - +} \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/delete_vm.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/delete_vm.py index d1f3f92..4433b5d 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/delete_vm.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/delete_vm.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import rift.rwcal.aws as aws_drv @@ -108,5 +122,4 @@ def main(): if __name__ == "__main__": main() - - + \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/exceptions.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/exceptions.py index 7b426db..0588bc9 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/exceptions.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/exceptions.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # # @@ -38,5 +52,4 @@ class RWErrorNotConnected(Exception): pass class RWErrorNotSupported(Exception): - pass - + pass \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/prepare_vm.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/prepare_vm.py index e4154ce..7179b54 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/prepare_vm.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rift/rwcal/aws/prepare_vm.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import rift.rwcal.aws as aws_drv @@ -117,5 +131,4 @@ def main(): if __name__ == "__main__": main() - - + \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rwcal_aws.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rwcal_aws.py index b61294c..236420a 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rwcal_aws.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_aws/rwcal_aws.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import time @@ -1080,4 +1094,4 @@ class RwcalAWSPlugin(GObject.Object, RwCal.Cloud): vdu = RwcalAWSPlugin._fill_vdu_info(vm, port_list) vnf_resources.vdu_info_list.append(vdu) - return vnf_resources + return vnf_resources \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/__init__.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/__init__.py index e69de29..00f74ea 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/__init__.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/__init__.py @@ -0,0 +1,15 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/core.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/core.py index 69261fc..93197c7 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/core.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/core.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import functools @@ -352,4 +366,4 @@ class Cloud(object): @param account - a cloud account """ - pass + pass \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/exceptions.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/exceptions.py index 7b426db..0588bc9 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/exceptions.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/exceptions.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # # @@ -38,5 +52,4 @@ class RWErrorNotConnected(Exception): pass class RWErrorNotSupported(Exception): - pass - + pass \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/image.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/image.py index 3b733b1..00c3b22 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/image.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/image.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import math @@ -25,4 +39,4 @@ def qcow2_virtual_size_mbytes(qcow2_filepath): num_mbytes = num_bytes / 1024 / 1024 return math.ceil(num_mbytes) - raise ImageInfoError("Could not image virtual size field in output") + raise ImageInfoError("Could not image virtual size field in output") \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lvm.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lvm.py index 1101685..99e2af2 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lvm.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lvm.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import collections @@ -264,5 +278,4 @@ def volume_groups(): groups.append(VolumeGroup(**group)) - return groups - + return groups \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lxc.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lxc.py index 52eb745..a281cff 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lxc.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/lxc.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import collections @@ -486,4 +500,4 @@ class MountConfig(collections.namedtuple( self.local, self.remote, "" if not self.read_only else "ro," - ) + ) \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/net.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/net.py index 7c7786b..8af55e1 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/net.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/net.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import collections @@ -131,5 +145,4 @@ def virsh_initialize_default(): def virsh_destroy(network_name): - shell.command('virsh net-destroy %s' % network_name) - + shell.command('virsh net-destroy %s' % network_name) \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/shell.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/shell.py index 86a9463..59869a3 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/shell.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/shell.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import logging @@ -30,5 +44,4 @@ def command(cmd): if process.returncode != 0: raise ProcessError(stderr.decode()) - return stdout.decode().splitlines() - + return stdout.decode().splitlines() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rwcal_cloudsim.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rwcal_cloudsim.py index 0b7797b..38f2ac6 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rwcal_cloudsim.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rwcal_cloudsim.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import collections @@ -1382,4 +1396,4 @@ class CloudSimPlugin(GObject.Object, RwCal.Cloud): vdu = CloudSimPlugin.fill_vdu_info(vm, port_list) vnf_resources.vdu_info_list.append(vdu) - return vnf_resources + return vnf_resources \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/test/cloudsim_module_test.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/test/cloudsim_module_test.py index 090dd27..c133a80 100755 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/test/cloudsim_module_test.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/test/cloudsim_module_test.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @@ -207,4 +221,4 @@ class CloudsimTest(unittest.TestCase): if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG) - unittest.main() + unittest.main() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsimproxy/rwcal_cloudsimproxy.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsimproxy/rwcal_cloudsimproxy.py index dcda6ed..669d707 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsimproxy/rwcal_cloudsimproxy.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsimproxy/rwcal_cloudsimproxy.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import logging @@ -644,4 +658,4 @@ class CloudSimProxyPlugin(GObject.Object, RwCal.Cloud): A list of objects of type RwcalYang.VDUInfoParams """ self._set_host_from_account(account) - return self._proxy_rpc_call("get_vdu_list") + return self._proxy_rpc_call("get_vdu_list") \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_mock/rwcal_mock.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_mock/rwcal_mock.py index d5f478c..f98d509 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_mock/rwcal_mock.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_mock/rwcal_mock.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import random @@ -586,5 +600,4 @@ class MockPlugin(GObject.Object, RwCal.Cloud): vdu.copy_from(r) vnf_resources.vdu_info_list.append(vdu) logger.debug("Returning list of vdu-info of size: %d", len(vnf_resources.vdu_info_list)) - return vnf_resources - + return vnf_resources \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openmano/rwcal_openmano.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openmano/rwcal_openmano.py index 7cce731..2cabb4d 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openmano/rwcal_openmano.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openmano/rwcal_openmano.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import logging @@ -235,4 +249,4 @@ class RwcalOpenmanoPlugin(GObject.Object, RwCal.Cloud): @rwstatus(ret_on_failure=[""]) def do_get_vdu_list(self, account): - raise NotImplementedError() + raise NotImplementedError() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/__init__.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/__init__.py index 9e7ec9d..a465d1f 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/__init__.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/__init__.py @@ -1 +1,16 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + from .openstack_drv import OpenstackDriver diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/openstack_drv.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/openstack_drv.py index e0efba6..2393e93 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/openstack_drv.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/openstack_drv.py @@ -1,7 +1,21 @@ #!/usr/bin/python +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import json @@ -1683,4 +1697,4 @@ class OpenstackDriver(object): if disk_usage: metrics["disk_usage"] = disk_usage[-1].volume - return metrics + return metrics \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/prepare_vm.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/prepare_vm.py index 0aeb0b0..3899e5b 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/prepare_vm.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rift/rwcal/openstack/prepare_vm.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import rift.rwcal.openstack as openstack_drv @@ -209,5 +223,4 @@ def main(): if __name__ == "__main__": main() - - + \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rwcal_openstack.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rwcal_openstack.py index 869b439..68d5f59 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rwcal_openstack.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_openstack/rwcal_openstack.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import time @@ -1413,4 +1427,4 @@ class RwcalOpenstackPlugin(GObject.Object, RwCal.Cloud): vnf_resources.vdu_info_list.append(vdu) return vnf_resources - + \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rift/vsphere/vsphere.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rift/vsphere/vsphere.py index 774b536..bf20f06 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rift/vsphere/vsphere.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rift/vsphere/vsphere.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import libcloud.compute.providers @@ -71,4 +85,4 @@ class Vsphere(core.Cloud): """ node = Node() node.id = vm_id - self.driver(account).reboot_node(node) + self.driver(account).reboot_node(node) \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rwcal_vsphere.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rwcal_vsphere.py index 698af19..ac05f85 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rwcal_vsphere.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_vsphere/rwcal_vsphere.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import logging @@ -219,4 +233,4 @@ class RwcalVspherePlugin(GObject.Object, RwCal.Cloud): @rwstatus(ret_on_failure=[""]) def do_get_vdu_list(self, account): - raise NotImplementedError() + raise NotImplementedError() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/vala/rwcal_zk/rwcal_zk.py b/modules/core/rwvx/rwcal/plugins/vala/rwcal_zk/rwcal_zk.py index a1cfcbb..892441c 100644 --- a/modules/core/rwvx/rwcal/plugins/vala/rwcal_zk/rwcal_zk.py +++ b/modules/core/rwvx/rwcal/plugins/vala/rwcal_zk/rwcal_zk.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import logging @@ -159,5 +173,4 @@ def main(): assert(blah2.__doc__ == "Some function") if __name__ == '__main__': - main() - + main() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/plugins/yang/rwcal.yang b/modules/core/rwvx/rwcal/plugins/yang/rwcal.yang index be50dba..043ba51 100755 --- a/modules/core/rwvx/rwcal/plugins/yang/rwcal.yang +++ b/modules/core/rwvx/rwcal/plugins/yang/rwcal.yang @@ -1,7 +1,6 @@ /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * * */ diff --git a/modules/core/rwvx/rwcal/rift/cal/rwzk.py b/modules/core/rwvx/rwcal/rift/cal/rwzk.py index 479ac66..8eab22f 100644 --- a/modules/core/rwvx/rwcal/rift/cal/rwzk.py +++ b/modules/core/rwvx/rwcal/rift/cal/rwzk.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import abc @@ -550,5 +564,4 @@ class Kazoo(ZkClient): self._client_context.add_listener(self.my_listener) self._client_context.start(timeout) -# vim: sw=4 ts=4 - +# vim: sw=4 ts=4 \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/src/rwcal_py.c b/modules/core/rwvx/rwcal/src/rwcal_py.c index c4d7834..a89968b 100644 --- a/modules/core/rwvx/rwcal/src/rwcal_py.c +++ b/modules/core/rwvx/rwcal/src/rwcal_py.c @@ -1,7 +1,21 @@ +/* * Copyright 2016 RIFT.IO Inc + * + * Licensed 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. + */ + /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * * */ diff --git a/modules/core/rwvx/rwcal/src/rwcal_rwzk.c b/modules/core/rwvx/rwcal/src/rwcal_rwzk.c index c1910ab..bd9685a 100644 --- a/modules/core/rwvx/rwcal/src/rwcal_rwzk.c +++ b/modules/core/rwvx/rwcal/src/rwcal_rwzk.c @@ -1,7 +1,21 @@ +/* * Copyright 2016 RIFT.IO Inc + * + * Licensed 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. + */ + /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * * */ diff --git a/modules/core/rwvx/rwcal/src/rwvim.py b/modules/core/rwvx/rwcal/src/rwvim.py index 674473c..ea4f5ef 100755 --- a/modules/core/rwvx/rwcal/src/rwvim.py +++ b/modules/core/rwvx/rwcal/src/rwvim.py @@ -1,7 +1,21 @@ #!/usr/bin/python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # # Author(s): Anil Gunturu # Creation Date: 07/24/2014 @@ -401,5 +415,4 @@ def main(args=sys.argv[1:]): cmdargs.func(rwcloud, cmdargs) if __name__ == "__main__": - main() - + main() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/RIFT.ware-ready.py b/modules/core/rwvx/rwcal/test/RIFT.ware-ready.py index f4192c6..b4cf214 100755 --- a/modules/core/rwvx/rwcal/test/RIFT.ware-ready.py +++ b/modules/core/rwvx/rwcal/test/RIFT.ware-ready.py @@ -1,5 +1,20 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + import re import sys from rift.rwcal.openstack.openstack_drv import OpenstackDriver @@ -61,5 +76,4 @@ else: # need to check if any public urls are loopbacks # need to check DNS is set up right # neutron subnet-show private_subnet -# host repo.riftio.com 10.64.1.3 - +# host repo.riftio.com 10.64.1.3 \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/aws_resources.py b/modules/core/rwvx/rwcal/test/aws_resources.py index e0bde5b..3058d3c 100644 --- a/modules/core/rwvx/rwcal/test/aws_resources.py +++ b/modules/core/rwvx/rwcal/test/aws_resources.py @@ -1,5 +1,20 @@ #!/usr/bin/python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + import os import sys import uuid @@ -347,4 +362,4 @@ def main(): drv.create_launchpad_vm(argument.salt_master) if __name__ == '__main__': - main() + main() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/cal_module_test/pytest/cal_module_test.py b/modules/core/rwvx/rwcal/test/cal_module_test/pytest/cal_module_test.py index d544aee..2557cd5 100644 --- a/modules/core/rwvx/rwcal/test/cal_module_test/pytest/cal_module_test.py +++ b/modules/core/rwvx/rwcal/test/cal_module_test/pytest/cal_module_test.py @@ -1,6 +1,20 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + """ # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @file cal_test.py @@ -465,4 +479,4 @@ class TestCalTeardown: cal = cloud_config.cal status = cal.delete_vdu(account, cloud_config.vdu_id) - assert status == RwStatus.SUCCESS + assert status == RwStatus.SUCCESS \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/cal_module_test/pytest/conftest.py b/modules/core/rwvx/rwcal/test/cal_module_test/pytest/conftest.py index 7e10444..134bacf 100644 --- a/modules/core/rwvx/rwcal/test/cal_module_test/pytest/conftest.py +++ b/modules/core/rwvx/rwcal/test/cal_module_test/pytest/conftest.py @@ -1,6 +1,20 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + """ # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @file conftest.py @@ -22,4 +36,4 @@ def pytest_addoption(parser): parser.addoption("--aws-password", action="store", default="cjCRtJxVylVkbYvOUQeyvCuOWAHieU6gqcQw29Hw") parser.addoption("--aws-region", action="store", default="us-east-1") parser.addoption("--aws-zone", action="store", default="us-east-1c") - parser.addoption("--aws-ssh-key", action="store", default="vprasad-sshkey") + parser.addoption("--aws-ssh-key", action="store", default="vprasad-sshkey") \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/cloudtool_cal.py b/modules/core/rwvx/rwcal/test/cloudtool_cal.py index 89b072d..6db835b 100755 --- a/modules/core/rwvx/rwcal/test/cloudtool_cal.py +++ b/modules/core/rwvx/rwcal/test/cloudtool_cal.py @@ -1,5 +1,19 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # # @@ -974,4 +988,4 @@ if __name__ == "__main__": elif cmdargs.provider_type == 'VSPHERE': driver = cls(cmdargs.user, cmdargs.passwd, host='vcenter' ) - cmdargs.func(driver, cmdargs) + cmdargs.func(driver, cmdargs) \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/ec2.py b/modules/core/rwvx/rwcal/test/ec2.py index 4709500..c37a6ac 100644 --- a/modules/core/rwvx/rwcal/test/ec2.py +++ b/modules/core/rwvx/rwcal/test/ec2.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import glob @@ -260,4 +274,4 @@ class RWEC2(object): return ret -# vim: sw=4 +# vim: sw=4 \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/openstack_resources.py b/modules/core/rwvx/rwcal/test/openstack_resources.py index 45c0ff1..f52e23c 100755 --- a/modules/core/rwvx/rwcal/test/openstack_resources.py +++ b/modules/core/rwvx/rwcal/test/openstack_resources.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # from gi.repository import RwcalYang @@ -465,4 +479,4 @@ def main(): if __name__ == '__main__': main() - + \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/rwcal_callback_gtest.cpp b/modules/core/rwvx/rwcal/test/rwcal_callback_gtest.cpp index f3f85d1..ce9d79b 100644 --- a/modules/core/rwvx/rwcal/test/rwcal_callback_gtest.cpp +++ b/modules/core/rwvx/rwcal/test/rwcal_callback_gtest.cpp @@ -1,7 +1,22 @@ +// +// Copyright 2016 RIFT.IO Inc +// +// Licensed 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. +// + /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * */ diff --git a/modules/core/rwvx/rwcal/test/rwcal_dump.cpp b/modules/core/rwvx/rwcal/test/rwcal_dump.cpp index 3dc307d..61065d3 100644 --- a/modules/core/rwvx/rwcal/test/rwcal_dump.cpp +++ b/modules/core/rwvx/rwcal/test/rwcal_dump.cpp @@ -1,7 +1,22 @@ +// +// Copyright 2016 RIFT.IO Inc +// +// Licensed 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. +// + /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * */ diff --git a/modules/core/rwvx/rwcal/test/rwcal_zk_gtest.cpp b/modules/core/rwvx/rwcal/test/rwcal_zk_gtest.cpp index f445694..4d36be7 100644 --- a/modules/core/rwvx/rwcal/test/rwcal_zk_gtest.cpp +++ b/modules/core/rwvx/rwcal/test/rwcal_zk_gtest.cpp @@ -1,7 +1,22 @@ +// +// Copyright 2016 RIFT.IO Inc +// +// Licensed 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. +// + /* * - * (c) Copyright RIFT.io, 2013-2016, All Rights Reserved * */ diff --git a/modules/core/rwvx/rwcal/test/test_container_cal.py b/modules/core/rwvx/rwcal/test/test_container_cal.py index 29624e2..912aab5 100644 --- a/modules/core/rwvx/rwcal/test/test_container_cal.py +++ b/modules/core/rwvx/rwcal/test/test_container_cal.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @@ -144,4 +158,4 @@ def main(argv=sys.argv[1:]): if __name__ == "__main__": - main() + main() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/test_openstack_install.py b/modules/core/rwvx/rwcal/test/test_openstack_install.py index 8115364..1043e26 100644 --- a/modules/core/rwvx/rwcal/test/test_openstack_install.py +++ b/modules/core/rwvx/rwcal/test/test_openstack_install.py @@ -1,7 +1,21 @@ + +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + """ # # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # # # @file test_openstack_install.py @@ -552,4 +566,4 @@ echo "banner RDO test" >> /etc/profile $SNIPPET('kickstart_done') %end -""" +""" \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/test_rwcal_openstack.py b/modules/core/rwvx/rwcal/test/test_rwcal_openstack.py index a091d5f..f8a462f 100644 --- a/modules/core/rwvx/rwcal/test/test_rwcal_openstack.py +++ b/modules/core/rwvx/rwcal/test/test_rwcal_openstack.py @@ -1,6 +1,20 @@ +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import datetime @@ -1035,4 +1049,4 @@ class VmData(object): if __name__ == "__main__": logging.basicConfig(level=logging.INFO) - unittest.main() + unittest.main() \ No newline at end of file diff --git a/modules/core/rwvx/rwcal/test/test_rwlxc_rwlaunchpad.py b/modules/core/rwvx/rwcal/test/test_rwlxc_rwlaunchpad.py index de0c588..d7d40bb 100644 --- a/modules/core/rwvx/rwcal/test/test_rwlxc_rwlaunchpad.py +++ b/modules/core/rwvx/rwcal/test/test_rwlxc_rwlaunchpad.py @@ -1,7 +1,21 @@ #!/usr/bin/env python3 +# Copyright 2016 RIFT.IO Inc +# +# Licensed 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. + + # -# (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # @@ -39,4 +53,4 @@ def main(): if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG) - main() + main() \ No newline at end of file -- 2.25.1