-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
49 lines (35 loc) · 782 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
41
42
43
44
45
46
47
48
49
clean: netsim-clean nso-clean
# netsim targets
netsim:
ncs-netsim create-device cisco-ios ios1
ncs-netsim add-device cisco-nx nx1
ncs-netsim start
netsim-clean:
-ncs-netsim stop
rm -rf netsim
ios1_cli:
ncs-netsim cli-c ios1
nx1_cli:
ncs-netsim cli-c nx1
# NSO targetss
nso:
ncs-setup --dest .
ncs
nso-clean:
-@echo "Stopping NSO"
-@ncs --stop
-@rm -Rf README.ncs agentStore state.yml logs/ ncs-cdb/ ncs-java-vm.log ncs-python-vm.log ncs.conf state/ storedstate target/
packages-clean:
make -C packages/vlan/src clean
compile:
make -C packages/vlan/src
reload:
echo "packages reload" | ncs_cli -u admin -C
packages: packages-clean compile reload
# Handy CLI targets
.PHONY: cli cli-c cli-j
cli: cli-c
cli-c:
ncs_cli -u admin -C
cli-j:
ncs_cli -u admin