Add license headers and .gitreview file
Change-Id: Ia658a979c73175948944d249641e455cdb90c2a8
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..c70a26b
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.opencord.org
+port=29418
+project=voltha-go.git
+defaultremote=origin
diff --git a/adapters/__init__.py b/adapters/__init__.py
index e69de29..58aca1e 100644
--- a/adapters/__init__.py
+++ b/adapters/__init__.py
@@ -0,0 +1,13 @@
+# Copyright 2018 the original author or authors.
+#
+# 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/adapters/interface.py b/adapters/interface.py
index 860c8ba..d1ac455 100644
--- a/adapters/interface.py
+++ b/adapters/interface.py
@@ -767,4 +767,4 @@
# :param packet: the actual packet; can be a serialized string or a
# scapy Packet.
# :return: None returned on success
- # """
\ No newline at end of file
+ # """
diff --git a/adapters/kafka/__init__.py b/adapters/kafka/__init__.py
index e69de29..58aca1e 100644
--- a/adapters/kafka/__init__.py
+++ b/adapters/kafka/__init__.py
@@ -0,0 +1,13 @@
+# Copyright 2018 the original author or authors.
+#
+# 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/adapters/kafka/kafka_inter_container_library.py b/adapters/kafka/kafka_inter_container_library.py
index ad53812..f5bb720 100644
--- a/adapters/kafka/kafka_inter_container_library.py
+++ b/adapters/kafka/kafka_inter_container_library.py
@@ -1,5 +1,19 @@
#!/usr/bin/env python
+# Copyright 2018 the original author or authors.
+#
+# 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 zope.interface import Interface, implementer
from adapters.kafka.kafka_proxy import KafkaProxy, get_kafka_proxy
from twisted.internet import reactor
diff --git a/adapters/ponsim_olt/ponsim_olt.yml b/adapters/ponsim_olt/ponsim_olt.yml
index fdb647a..7c7fac3 100644
--- a/adapters/ponsim_olt/ponsim_olt.yml
+++ b/adapters/ponsim_olt/ponsim_olt.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
logging:
version: 1
diff --git a/adapters/ponsim_onu/ponsim_onu.yml b/adapters/ponsim_onu/ponsim_onu.yml
index 1afafdf..aa9d43c 100644
--- a/adapters/ponsim_onu/ponsim_onu.yml
+++ b/adapters/ponsim_onu/ponsim_onu.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
logging:
version: 1
diff --git a/compose/docker-compose-zk-kafka-test.yml b/compose/docker-compose-zk-kafka-test.yml
index 30eea0a..44aa7c2 100644
--- a/compose/docker-compose-zk-kafka-test.yml
+++ b/compose/docker-compose-zk-kafka-test.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
version: '2'
services:
#
diff --git a/compose/ponsim-adapters.yml b/compose/ponsim-adapters.yml
index fff3730..0e4b9f8 100644
--- a/compose/ponsim-adapters.yml
+++ b/compose/ponsim-adapters.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
version: '2'
services:
ponsim_olt_adapter:
@@ -38,4 +53,4 @@
networks:
default:
- driver: bridge
\ No newline at end of file
+ driver: bridge
diff --git a/compose/ponsim.yml b/compose/ponsim.yml
index fde48df..cae0cb4 100644
--- a/compose/ponsim.yml
+++ b/compose/ponsim.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
version: '2'
services:
ponsim_olt:
@@ -54,4 +69,4 @@
networks:
default:
- driver: bridge
\ No newline at end of file
+ driver: bridge
diff --git a/compose/ponsim_olt.yml b/compose/ponsim_olt.yml
index be3f61e..0ff5ca7 100644
--- a/compose/ponsim_olt.yml
+++ b/compose/ponsim_olt.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
version: '2'
services:
ponsim_olt:
@@ -28,4 +43,4 @@
networks:
default:
- driver: bridge
\ No newline at end of file
+ driver: bridge
diff --git a/compose/ponsim_onu.yml b/compose/ponsim_onu.yml
index 7462f11..216df56 100644
--- a/compose/ponsim_onu.yml
+++ b/compose/ponsim_onu.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
version: '2'
services:
ponsim_onu:
@@ -28,4 +43,4 @@
networks:
default:
- driver: bridge
\ No newline at end of file
+ driver: bridge
diff --git a/compose/rw_core.yml b/compose/rw_core.yml
index 5df0147..3759e96 100644
--- a/compose/rw_core.yml
+++ b/compose/rw_core.yml
@@ -1,3 +1,18 @@
+---
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
version: '2'
services:
rw_core:
diff --git a/protos/scripts/build_protos.sh b/protos/scripts/build_protos.sh
index faac725..0b2e17a 100644
--- a/protos/scripts/build_protos.sh
+++ b/protos/scripts/build_protos.sh
@@ -1,5 +1,19 @@
#!/bin/sh
+# Copyright 2018 the original author or authors.
+#
+# 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.
+
export SRC_DIR="$1"
echo $SRC_DIR