Skip to content

Commit 2a0d1ba

Browse files
Initial commit
fbshipit-source-id: 6d68a963afd293f7c8d231393075627a52f60da1
0 parents  commit 2a0d1ba

File tree

3,777 files changed

+594049
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,777 files changed

+594049
-0
lines changed

.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
### vagrant ###
2+
.vagrant
3+
*.retry
4+
5+
### vim ###
6+
[._]*.s[a-w][a-z]
7+
[._]s[a-w][a-z]
8+
*.un~
9+
Session.vim
10+
.netrwhist
11+
*~
12+
13+
### python ###
14+
# Byte-compiled / optimized / DLL files
15+
__pycache__/
16+
*.py[cod]
17+
# Virtual environments
18+
.env
19+
20+
# C extensions
21+
*.so
22+
23+
# Distribution / packaging
24+
.Python
25+
env/
26+
build/
27+
develop-eggs/
28+
dist/
29+
eggs/
30+
lib/
31+
lib64/
32+
parts/
33+
sdist/
34+
var/
35+
*.egg-info/
36+
.installed.cfg
37+
*.egg
38+
39+
# Ignore test certs
40+
orc8r/cloud/test_certs/*.csr
41+
orc8r/cloud/test_certs/*.crt
42+
orc8r/cloud/test_certs/*.key
43+
orc8r/cloud/test_certs/*.pem
44+
orc8r/cloud/test_certs/*.srl
45+
orc8r/cloud/test_certs/*.pfx
46+
47+
# Ignore generated swagger file
48+
orc8r/cloud/deploy/files/static/apidocs/swagger.yml
49+
orc8r/cloud/deploy/files/static/apidocs/temp
50+
51+
# Ignore apt/build cache
52+
.cache/*
53+
54+
# Packer build artifacts
55+
*.box
56+
*.iso
57+
*.vdi
58+
59+
# Terraform
60+
.terraform
61+
*.plan
62+
aws_keys.tfvars
63+
64+
# Certs for accessing the cloud
65+
.certs

.hgignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
syntax: glob
2+
src/python/**/*.egg-info
3+
third-party/packages/*.changes
4+
third-party/packages/*.debian.tar.*
5+
c/oai/code_coverage/**
6+
.cache/*
7+
reports/**

.python3

Whitespace-only changes.

.travis.yml

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
# All rights reserved.
3+
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
matrix:
7+
include:
8+
- language: go
9+
name: Verifying generated files are in-sync
10+
go:
11+
- 1.11.x
12+
os: linux
13+
dist: xenial
14+
15+
env:
16+
- MAGMA_ROOT=$TRAVIS_BUILD_DIR GO111MODULE=on
17+
18+
before_install:
19+
- ./travis/golang_before_install.sh
20+
21+
before_script:
22+
- sudo mkdir -p /etc/magma/configs
23+
- ./travis/link_cloud_configs.sh
24+
25+
script:
26+
- make -C $MAGMA_ROOT/orc8r/cloud gen
27+
- make -C $MAGMA_ROOT/feg/gateway gen
28+
- cd $MAGMA_ROOT
29+
- git add .
30+
- git status
31+
# This command will exit 1 if there are any changes to the git clone
32+
- git diff-index --quiet HEAD
33+
34+
- language: go
35+
name: Cloud precommit
36+
go:
37+
- 1.11.x
38+
os: linux
39+
dist: xenial
40+
41+
env:
42+
- MAGMA_ROOT=$TRAVIS_BUILD_DIR GO111MODULE=on
43+
44+
before_install:
45+
- ./travis/golang_before_install.sh
46+
- ./travis/start_dynamo_local.sh
47+
48+
before_script:
49+
- sudo mkdir -p /etc/magma/configs
50+
- ./travis/link_cloud_configs.sh
51+
52+
script:
53+
- make -C $MAGMA_ROOT/orc8r/cloud precommit
54+
55+
- language: go
56+
name: FeG precommit
57+
go:
58+
- 1.11.x
59+
os: linux
60+
dist: xenial
61+
62+
env:
63+
- MAGMA_ROOT=$TRAVIS_BUILD_DIR GO111MODULE=on
64+
65+
before_install:
66+
- ./travis/golang_before_install.sh
67+
68+
before_script:
69+
- sudo ln -s $MAGMA_ROOT/config/feg /etc/magma
70+
71+
script:
72+
- make -C $MAGMA_ROOT/feg/gateway precommit
73+
74+
- language: minimal
75+
name: LTE gateway python unit tests
76+
os: linux
77+
dist: xenial
78+
79+
env:
80+
- MAGMA_ROOT=$TRAVIS_BUILD_DIR PYTHON_BUILD=$TRAVIS_BUILD_DIR/build PIP_CACHE_HOME=$TRAVIS_BUILD_DIR/.pipcache MAGMA_DEV_MODE=1 SKIP_SUDO_TESTS=1
81+
82+
before_install:
83+
- sudo apt-get update -qq
84+
- sudo apt-get install -y libsystemd-dev pkg-config
85+
- sudo apt-get install -y virtualenv python-babel python-dev build-essential python3-setuptools python-setuptools autogen autoconf libtool python3-apt python3-aioeventlet python3-requests python3-pip python-protobuf
86+
87+
# Install protobuf compiler
88+
- sudo curl -Lfs https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip -o protoc3.zip
89+
- sudo unzip protoc3.zip -d protoc3
90+
- sudo mv protoc3/bin/protoc /bin/protoc
91+
- sudo chmod a+rx /bin/protoc
92+
- sudo mv protoc3/include/google /usr/include/
93+
- sudo chmod -R a+Xr /usr/include/google
94+
- sudo rm -rf protoc3.zip protoc3
95+
96+
script:
97+
- make -C $MAGMA_ROOT/lte/gateway/python test_all
98+
99+
notifications:
100+
slack:
101+
rooms:
102+
- secure: "aUV+pBw7lLDeog/Q7KTi5BrmH1y6IOUPhK42vYTaKT6/fZ1SlhU78VvgPK406kejRRuJSuYhd3hRt5xS2kJegWik14+y+/uxi6OxiI8GTwJrSnyiAiSGt+lWX+vOTIdWQ1RXTnNuxkWu4KmFJHhffZHlc9z3IalIQP6M19xEzVLr53eJTWg2rcVl4zsw9Wpjnl8yt9UhuHP+S36PWcbEm+aEgdWQONm/fRNH4pV4aTevMaBLDp6sxfrLh/yRlq51rXM2JMAECiTaOrO7YPG+Hb3l1z1GAw2e9zPUsaEFl53xKjtvWfLEZmDuD8OjnNlQJerI44XtGzV8SU7gpMan3974LqJ9cENAOklphV2vpNZKTr0P2OHC1k6apG4eGs/nGCkfhwquE6NvAQHKBWDEvY0tocl1runYRAKsqKbVxPB4sdEFzslsskBu9yS215DXPJ6khQS8HbO+/IHClv8Vm8/YpTS+8hRyPvP1u9zMX+VbslpYYZiOtriETyJIi8C/Jc8QS4uzsn5hHolmnJpCkDv3YyOVOZLpMaE46BR3D1kuZssnmrLPT7ChE5dygtHXAOr54CgXc/jBvn2+JvTNdTCuOZNe191P3cLnHjImW2B8+TRmE+GjAVvc5MA9n9+8nKUkooXLvt7uNckrIrwwWuSmqni6gDcXjKm1fjKVciY="
103+
on_success: change
104+
on_failure: always
105+
on_pull_requests: false
106+

CODE_OF_CONDUCT.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Code of Conduct
2+
3+
Facebook has adopted a Code of Conduct that we expect project participants to adhere to.
4+
Please read the [full text](https://code.fb.com/codeofconduct/)
5+
so that you can understand what actions will and will not be tolerated.

CONTRIBUTING.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Contributing to Magma
2+
We want to make contributing to this project as easy and transparent as
3+
possible.
4+
5+
## Our Development Process
6+
... (in particular how this is synced with internal changes to the project)
7+
8+
## Pull Requests
9+
We actively welcome your pull requests.
10+
11+
1. Fork the repo and create your branch from `master`.
12+
2. If you've added code that should be tested, add tests.
13+
3. If you've changed APIs, update the documentation.
14+
4. Ensure the test suite passes.
15+
5. Make sure your code lints.
16+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
17+
18+
## Contributor License Agreement ("CLA")
19+
In order to accept your pull request, we need you to submit a CLA. You only need
20+
to do this once to work on any of Facebook's open source projects.
21+
22+
Complete your CLA here: <https://code.facebook.com/cla>
23+
24+
## Issues
25+
We use GitHub issues to track public bugs. Please ensure your description is
26+
clear and has sufficient instructions to be able to reproduce the issue.
27+
28+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
29+
disclosure of security bugs. In those cases, please go through the process
30+
outlined on that page and do not file a public issue.
31+
32+
## Coding Style
33+
* 2 spaces for indentation rather than tabs
34+
* 80 character line length
35+
* ...
36+
37+
## License
38+
By contributing to Magma, you agree that your contributions will be licensed
39+
under the LICENSE file in the root directory of this source tree.

LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
BSD License
2+
3+
For Magma software
4+
5+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this
11+
list of conditions and the following disclaimer.
12+
13+
* Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
* Neither the name Facebook nor the names of its contributors may be used to
18+
endorse or promote products derived from this software without specific
19+
prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)