forked from ipdk-io/stratum-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (27 loc) · 772 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2019-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.0
onos_url := http://localhost:8181/onos
onos_post := curl -sSL --user onos:rocks --noproxy localhost -X POST -H 'Content-Type:application/json'
pull:
docker-compose pull
start:
docker-compose up -d
stop:
docker-compose down -t0
restart: stop start
onos-cli:
ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 8101 onos@localhost
onos-log:
docker-compose logs -f onos
onos-ui:
open ${onos_url}/ui
mn-cli:
docker-compose exec mininet screen -Urx -S cli
mn-log:
docker-compose logs -f mininet
mn-host:
docker-compose exec mininet m $@
netcfg:
${onos_post} ${onos_url}/v1/network/configuration/ -d@./topo/netcfg.json
reset: stop
-rm -rf ./tmp