Commit de244d29 authored by Sebastien Merle's avatar Sebastien Merle
Browse files

Add basic PCE server and virtual testbed setup

parent 8651b126
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -e

########################################################################################################################
# Read deployment settings
+4 −0
Original line number Diff line number Diff line
@@ -73,3 +73,7 @@ spec:
    protocol: TCP
    port: 11010
    targetPort: 11010
  - name: pcep
    protocol: TCP
    port: 4189
    targetPort: 4189
+2 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
# Build stage 0
FROM erlang:24.3-alpine

RUN apk add --no-cache bash
RUN apk add --no-cache bash git

RUN mkdir /var/teraflow
WORKDIR /var/teraflow
@@ -42,6 +42,7 @@ COPY --from=0 /var/teraflow/src/te/_build/prod/rel/tfte /tfte

# Expose relevant ports
EXPOSE 11010
EXPOSE 4189

ARG ERLANG_LOGGER_LEVEL_DEFAULT=debug
ARG ERLANG_COOKIE_DEFAULT=tfte-unsafe-cookie
+16 −0
Original line number Diff line number Diff line
{application, epce,
 [{description, "An Erlang PCE"},
  {vsn, "0.1.0"},
  {registered, []},
  {mod, {epce_app, []}},
  {applications,
   [kernel,
    stdlib,
    pcep_server
   ]},
  {env,[]},
  {modules, []},

  {licenses, ["Apache 2.0"]},
  {links, []}
 ]}.
+18 −0
Original line number Diff line number Diff line
-module(epce_app).

-behaviour(application).


%%% EXPORTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Behaviour application functions
-export([start/2, stop/1]).


%%% BEHAVIOUR application FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

start(_StartType, _StartArgs) ->
    epce_sup:start_link().

stop(_State) ->
    ok.
Loading