Browse Source

refresh

master
zeus 4 years ago
parent
commit
916f7c3647
  1. 15
      src-local/instance/swarmlab-sec/peiraia/.vimrc
  2. 33
      src-local/instance/swarmlab-sec/peiraia/Dockerfile
  3. 1
      src-local/instance/swarmlab-sec/peiraia/ROOT_PASSWORD
  4. 11
      src-local/instance/swarmlab-sec/peiraia/auto_update_hosts
  5. 37
      src-local/instance/swarmlab-sec/peiraia/docker-compose.yml
  6. 8
      src-local/instance/swarmlab-sec/peiraia/get_hosts
  7. 74
      src-local/instance/swarmlab-sec/peiraia/install-vim-plugin.sh
  8. 164
      src-local/instance/swarmlab-sec/peiraia/out.log
  9. 1
      src-local/instance/swarmlab-sec/peiraia/project/hello_world.sh
  10. 72
      src-local/instance/swarmlab-sec/peiraia/sec_bootstrap
  11. 6
      src-local/instance/swarmlab-sec/peiraia/shorewall/interfaces
  12. 11
      src-local/instance/swarmlab-sec/peiraia/shorewall/policy
  13. 11
      src-local/instance/swarmlab-sec/peiraia/shorewall/rules
  14. 6
      src-local/instance/swarmlab-sec/peiraia/shorewall/zones
  15. 27
      src-local/instance/swarmlab-sec/peiraia/ssh/id_rsa
  16. 1
      src-local/instance/swarmlab-sec/peiraia/ssh/id_rsa.pub
  17. 4
      src-local/instance/swarmlab-sec/swarmlab-sec/Dockerfile
  18. 180
      src-local/instance/swarmlab-sec/swarmlab-sec/out.log
  19. 2
      src-local/instance/swarmlab-sec/swarmlab-sec/start.sh
  20. 51
      src-local/instance/swarmlab-sec/vpn/create-vpn.sh
  21. 12
      src-local/instance/swarmlab-sec/vpn/openvpn-services/crl.pem
  22. 31
      src-local/instance/swarmlab-sec/vpn/openvpn-services/openvpn.conf
  23. 25
      src-local/instance/swarmlab-sec/vpn/openvpn-services/ovpn_env.sh
  24. 109
      src-local/instance/swarmlab-sec/vpn/sec1.vpn
  25. 110
      src-local/instance/swarmlab-sec/vpn/sec2.vpn
  26. 107
      src-local/instance/swarmlab-sec/vpn/test1.ovpn
  27. 107
      src-local/instance/swarmlab-sec/vpn/test2.ovpn
  28. 110
      src-local/instance/swarmlab-sec/vpn/testsec1.user
  29. 109
      src-local/instance/swarmlab-sec/vpn/testsec2.user
  30. 69
      src-local/llo/new.js
  31. 4
      src/App.vue
  32. 40
      src/components/mynetwork/availableservices.vue
  33. 2
      src/components/mynetwork/mytable.vue
  34. 26
      src/store/modules/create_pipelineLLO.js
  35. 79
      viwsession/session1

15
src-local/instance/swarmlab-sec/peiraia/.vimrc

@ -1,15 +0,0 @@
map <C-e> :NERDTreeToggle<CR>
autocmd BufNewFile,BufRead *.vue,*.js set syntax=verilog tabstop=2|set shiftwidth=2|set noexpandtab autoindent
augroup remember_folds
autocmd!
autocmd BufWinLeave * mkview
autocmd BufWinEnter * silent! loadview
augroup END
" Useful for my Quick Notes feature in my tmuxrc
augroup QuickNotes
au BufWrite,VimLeave NOTES.otl mkview
au BufRead NOTES.otl silent loadview
augroup END
set swapfile
set dir=~/tmp

33
src-local/instance/swarmlab-sec/peiraia/Dockerfile

@ -1,33 +0,0 @@
FROM localhost:5000/sec
#
USER root
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
RUN apt-get autoremove --purge && apt clean
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/run/sshd
RUN echo 'root:pass' | chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
#
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
#
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
#RUN wget -k https://raw.githubusercontent.com/egalpin/apt-vim/master/install.sh
#
#
#
COPY sec_bootstrap /usr/bin
COPY get_hosts /usr/bin
COPY auto_update_hosts /usr/bin
RUN mkdir -p /etc/shorewall
COPY shorewall /etc/shorewall
RUN mkdir -p /etc/opt
RUN mkdir -p /project
WORKDIR /project
COPY install-vim-plugin.sh .
#RUN bash ./install-vim-plugin.sh
#RUN apt-vim install -y https://github.com/scrooloose/nerdtree.git
RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
COPY .vimrc /home/docker
USER docker

1
src-local/instance/swarmlab-sec/peiraia/ROOT_PASSWORD

@ -1 +0,0 @@
ROOT_PASSWORD="pass"

11
src-local/instance/swarmlab-sec/peiraia/auto_update_hosts

@ -1,11 +0,0 @@
#!/bin/sh
hosts=$(get_hosts)
printf "%s" "$hosts" > "$1"
while sleep 2
do
current_hosts=$(get_hosts)
[ "$hosts" != "$current_hosts" ] && printf "%s" "$current_hosts" > "$1"
hosts=$current_hosts
done

37
src-local/instance/swarmlab-sec/peiraia/docker-compose.yml

@ -1,37 +0,0 @@
version: "2"
services:
registry:
image: registry
ports:
- "5000:5000"
master:
image: localhost:5000/sec
privileged: true
cap_add:
- NET_ADMIN
user: root
entrypoint: ["sec_bootstrap", "role=master", "sec_master_service_name=master", "sec_worker_service_name=worker"]
ports:
- "2222:22"
networks:
- net
volumes:
- /data/appl/ok/gitversion/examples-services/swarmlab-sec/peiraia/project:/project
worker:
image: localhost:5000/sec
privileged: true
cap_add:
- NET_ADMIN
user: root
entrypoint: ["sec_bootstrap", "role=worker", "sec_master_service_name=master", "sec_worker_service_name=worker"]
networks:
- net
volumes:
- /data/appl/ok/gitversion/examples-services/swarmlab-sec/peiraia/project:/project
networks:
net:

8
src-local/instance/swarmlab-sec/peiraia/get_hosts

@ -1,8 +0,0 @@
#!/bin/sh
# Include the variables that store the Docker service names
# shellcheck disable=SC1091
. /etc/opt/service_names
( netstat -t | grep ESTABLISHED | awk '{print $5}' | grep "$MPI_WORKER_SERVICE_NAME" | cut -d: -f1 \
& getent hosts "$MPI_MASTER_SERVICE_NAME" | cut -d' ' -f1 ) | sort -u

74
src-local/instance/swarmlab-sec/peiraia/install-vim-plugin.sh

@ -1,74 +0,0 @@
#! /usr/bin/env sh
start_dir=$(pwd)
bin_string="export PATH=\"${PATH}:${HOME}/.vimpkg/bin\""
# Download the apt-vim files
curl -fSsLo ${HOME}/apt-vim/apt-vim --create-dirs \
https://raw.githubusercontent.com/egalpin/apt-vim/master/apt-vim
curl -fSsLo ${HOME}/apt-vim/vim_config.json \
https://raw.githubusercontent.com/egalpin/apt-vim/master/vim_config.json
# Add vimrc if there isn't one already
[ -f ${HOME}/.vimrc ] || touch ${HOME}/.vimrc
# Make sure vimrc is using pathogen
if [ $(grep -c "execute pathogen#infect()" ${HOME}/.vimrc) -eq 0 ]; then
echo "execute pathogen#infect()" >> ${HOME}/.vimrc
fi
if [ $(grep -c "call pathogen#helptags()" ${HOME}/.vimrc) -eq 0 ]; then
echo "call pathogen#helptags()" >> ${HOME}/.vimrc
fi
# Update path for executing shell
eval "$bin_string"
added_to_profile=false
already_present=false
for rc in bashrc zshrc bash_profile; do
if [ -s "$HOME/.$rc" ]; then
if grep -q "$bin_string" "$HOME/.$rc"; then
already_present=true
else
printf "\n$bin_string\n" >> "$HOME/.$rc"
printf "== Added apt-vim PATH to '~/.$rc'\n"
added_to_profile=true
fi
fi
done
# Execute apt-vim init
cd ${HOME}/apt-vim
python - <<EOF
import imp, os
print('apt-vim setup starting')
HOME = os.path.expanduser("~")
APT_VIM_DIR = os.path.abspath(os.path.join(HOME, 'apt-vim'))
SCRIPT_ROOT_DIR = os.path.abspath(os.path.join(HOME, '.vimpkg'))
BIN_DIR = os.path.abspath(os.path.join(SCRIPT_ROOT_DIR, 'bin'))
os.environ['PATH'] += os.pathsep + BIN_DIR
os.chdir(APT_VIM_DIR)
aptvim = imp.load_source("aptvim", "./apt-vim")
av = aptvim.aptvim(ASSUME_YES=True, VIM_CONFIG='', INSTALL_TARGET='')
av.first_run()
av.handle_install(None, None, None)
EOF
python_result=$?
cd $start_dir
echo
if [ "$python_result" -ne 0 ]; then
echo "== Error:"
echo " Installation failed."
elif [ "$added_to_profile" = false ] && [ "$already_present" = false ]; then
echo "== Error:"
echo " Found no profile to add apt-vim PATH to."
echo " Add the following line to your shell profile and source it to install manually:"
printf " $bin_string\n"
else
echo "== apt-vim installation succeeded! Run 'source ~/.bashrc || source ~/.bash_profile' or 'source ~/.zshrc'"
echo " to access the executable script."
fi

164
src-local/instance/swarmlab-sec/peiraia/out.log

File diff suppressed because one or more lines are too long

1
src-local/instance/swarmlab-sec/peiraia/project/hello_world.sh

@ -1 +0,0 @@
echo "Hello World"

72
src-local/instance/swarmlab-sec/peiraia/sec_bootstrap

@ -1,72 +0,0 @@
#!/bin/sh
ROLE="undefined"
MPI_MASTER_SERVICE_NAME="sec_master"
MPI_WORKER_SERVICE_NAME="sec_worker"
HOSTNAMES="/etc/nethosts"
#######################
# ARGUMENTS PARSER
while [ "$1" != "" ];
do
PARAM=$(echo "$1" | awk -F= '{print $1}')
VALUE=$(echo "$1" | awk -F= '{print $2}')
case $PARAM in
role)
[ "$VALUE" ] && ROLE=$VALUE
;;
sec_master_service_name)
[ "$VALUE" ] && MPI_MASTER_SERVICE_NAME=$VALUE
;;
sec_worker_service_name)
[ "$VALUE" ] && MPI_WORKER_SERVICE_NAME=$VALUE
;;
*)
echo "ERROR: unknown parameter \"$PARAM\""
exit 1
;;
esac
shift
done
cat > /etc/opt/service_names <<- EOF
MPI_MASTER_SERVICE_NAME=${MPI_MASTER_SERVICE_NAME}
MPI_WORKER_SERVICE_NAME=${MPI_WORKER_SERVICE_NAME}
EOF
case $ROLE in
"master")
# Auto update default host file in background and dumb all output
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 &
# Start ssh server
/usr/sbin/sshd -D
;;
"worker")
# Start ssh server in background
/usr/sbin/sshd -D &
# Keep trying to connect to master node and stay there indefinitely so that master node can see
# the connected hosts that are ready for MPI work
while sleep 1
do
# shellcheck disable=SC2086
ssh -T -o "StrictHostKeyChecking no" \
-i "${USER_HOME}/.ssh/id_rsa" \
${USER}@${MPI_MASTER_SERVICE_NAME} \
"tail -f /dev/null"
done
;;
*)
echo 'role argument only accepts "master" or "worker"'
esac

6
src-local/instance/swarmlab-sec/peiraia/shorewall/interfaces

@ -1,6 +0,0 @@
### Comments, comments, and more comments.
#
#ZONE INTERFACE BROADCAST OPTIONS
#
net eth0 detect tcpflags,nosmurfs
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE

11
src-local/instance/swarmlab-sec/peiraia/shorewall/policy

@ -1,11 +0,0 @@
### Comments, comments, and more comments.
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
#
net fw ACCEPT
fw net ACCEPT
net all DROP
# THE FOLLOWING POLICY MUST BE LAST
all all REJECT info
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE

11
src-local/instance/swarmlab-sec/peiraia/shorewall/rules

@ -1,11 +0,0 @@
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/
# PORT PORT(S) DEST LIMIT GROUP
#ACCEPT net fw tcp 80
#ACCEPT fw net tcp 80
#ACCEPT net fw udp 53
#ACCEPT fw net udp 53
#REJECT net fw udp 53
#REJECT fw net udp 53
#ACCEPT net:14.15.16.112/27 fw icmp 8
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE

6
src-local/instance/swarmlab-sec/peiraia/shorewall/zones

@ -1,6 +0,0 @@
### Comments, comments, and more comments.
#ZONE TYPE OPTIONS IN OUT
# OPTIONS OPTIONS
fw firewall
net ipv4
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE

27
src-local/instance/swarmlab-sec/peiraia/ssh/id_rsa

@ -1,27 +0,0 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpQIBAAKCAQEAoKG1DtjMXHDJfF59Y5nO7Yl38fkjRL1LQhF7RZKbGScWBNIW
foAS0wrd3wUnd5YMtIeiBj98H+V8IEn0ChAAxGfHXqqmmYlU6ABESINob+h70Bnm
UwiRbRnA64o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Pcp9xpRtIFQs4T4t7d
jNgVq5XQDm/BaHedPOZX8HcCgYEAuKpu31vqO7wUt/vTtUMx3JpHqxz9P/FgqPAf
H/WiC0EMJEMJKAO2c/z4qO9dHiJnCL0qQraDQw/DfClJtC7b+2DVwd8dnQyowscR
o1MNUmueWcAo5vEag6c/gx/+vQuOBJ1JyxaeSmUZSTOhTUeVns64NRz2IJWWY5Cn
+fn1KwUCgYEAjYYeQX/W+2r8SFipPQQi/36EqLPwko58C/sbJR0gySP6El7hNQRt
Sdmd9hfMXRR+VCZWmmzb6T4fc80XxteI9eANkZ7xhNuQe11EDvPqmc9WSF0s+l1T
eQnkt+an7Qv2prDSU6d1KlOrOuCXU8IhbkuffvRSYXwK9T79bTG8iIQ=
-----END RSA PRIVATE KEY-----

1
src-local/instance/swarmlab-sec/peiraia/ssh/id_rsa.pub

@ -1 +0,0 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgobUO2MxccMl8Xn1jmc7tiXfx+SNEvUtCEXtFkpsZJxYE0hZ+gBLTCt3fBSd3lgy0h6IGP3wf5XwgSfQKEADEZ8deqqaZiVToAERIg2hv6HvQGeZTCJFtGcDrijd335zPZPxgt/7Wnv//9nwsDxT7utL6S8q+1gJD2WUMDG1t7f0LEKzYcBJqbdTpUCur1J1KqmHky50FpiFrHHhXxUN1cSEbamKaWHx7vN09nwBhtgssOGpi137Cf1rMtc9DfD+8L4+fi1pQFieURENjjm9pWw92dH5qj1yQwtRLoTAlVCaAzMHbLI0Js9Bi9E8vSvGgay18KaaNjcTM6HqQQDrD nlknguyen@NN-Ubuntu

4
src-local/instance/swarmlab-sec/swarmlab-sec/Dockerfile

@ -1,4 +1,4 @@
FROM ubuntu:18.04
FROM localhost:5000/sec
#
USER root
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
@ -22,8 +22,8 @@ COPY get_hosts /usr/bin
COPY auto_update_hosts /usr/bin
RUN mkdir -p /etc/shorewall
COPY shorewall /etc/shorewall
RUN mkdir -p /project
RUN mkdir -p /etc/opt
RUN mkdir -p /project
WORKDIR /project
COPY install-vim-plugin.sh .
#RUN bash ./install-vim-plugin.sh

180
src-local/instance/swarmlab-sec/swarmlab-sec/out.log

File diff suppressed because one or more lines are too long

2
src-local/instance/swarmlab-sec/swarmlab-sec/start.sh

@ -1,2 +0,0 @@
../install/usr/share/swarmlab.io/sec/swarmlab-sec up size=3

51
src-local/instance/swarmlab-sec/vpn/create-vpn.sh

@ -1,51 +0,0 @@
#!/bin/bash
#IP=192.168.1.5 # Server IP
IP=127.0.0.1 # Server IP
P=1194 # Server Port
OVPN_SERVER='10.80.0.0/16' # VPN Network
#vpn_data=/var/lib/swarmlab/openvpn/openvpn-services/ # Dir to save data ** this must exist **
vpn_data=$PWD/openvpn-services/ # Dir to save data ** this must exist **
NAME=swarmlab-vpn-services # name of docker service
DOCKERnetwork=swarmlab-vpn-services-network # docker network
docker=registry.vlabs.uniwa.gr:5080/myownvpn # docker image
docker stop $NAME #stop container
sleep 3
docker container rm $NAME #rm container
# rm config files
rm -f $vpn_data/openvpn.conf.*.bak
rm -f $vpn_data/openvpn.conf
rm -f $vpn_data/ovpn_env.sh.*.bak
rm -f $vpn_data/ovpn_env.sh
# create network
sleep 2
docker network create --attachable=true --driver=bridge --subnet=172.50.0.0/16 --gateway=172.50.0.1 $DOCKERnetwork
#run container
sleep 2
docker run --net=none -it -v $vpn_data:/etc/openvpn -p 1194:1194 --rm $docker ovpn_genconfig -u udp://$IP:1194 \
-N -d -c -p "route 172.50.20.0 255.255.255.0" -e "topology subnet" -s $OVPN_SERVER
# create pki
sleep 3
echo "new pki is disabled"
docker run --net=none -v $vpn_data:/etc/openvpn --rm -it $docker ovpn_initpki
#sleep 3
#docker run --net=none -v $vpn_data:/etc/openvpn --rm $docker ovpn_copy_server_files
#create vpn
sleep 3
docker run --detach --name $NAME -v $vpn_data:/etc/openvpn --net=$DOCKERnetwork --ip=172.50.0.2 -p $P:1194/udp --cap-add=NET_ADMIN $docker
sleep 5
#sudo sysctl -w net.ipv4.ip_forward=1
#show created
docker ps

12
src-local/instance/swarmlab-sec/vpn/openvpn-services/crl.pem

@ -1,12 +0,0 @@
-----BEGIN X509 CRL-----
MIIBtjCBnwIBATANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDDAtFYXN5LVJTQSBD
QRcNMjAxMjE2MTQwODI3WhcNMzAxMjE0MTQwODI3WqBVMFMwUQYDVR0jBEowSIAU
vrukPCQne21S3V2qXlpRU/gimF2hGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENB
ghRywv6rT4UtGmHLjySqq1WY6KblATANBgkqhkiG9w0BAQsFAAOCAQEAUrBTGvwA
VyVAvXKbI5YLED+n1iL4PCgN/Rx+/69qpfPEqqOBSCbhUVSB56+S3FzscE96hwdT
rWYxPhdVg0uF2Onz6K52edtJwX39UaBI/oP76j8naCiRk8G3Zet715JyVopKOvQ5
QS2yEJ2WKFNCoPWymXoYboqvvLd961oNHG3QUOmx85wI6k54pjb8IopOt0htNJ+I
IAQJbGr47IM7ZrTXvinLi3xgiD/RPz7hUa3Ojk9EZF619gSJrXio4HoLSO+iL3QF
bSeIgFPej+24tsdBhwGEt1c3oTcDfY27eHDPa3UQjWCR26mft4a8wMdIQBviiyFu
ZLHT8HdXtLceEg==
-----END X509 CRL-----

31
src-local/instance/swarmlab-sec/vpn/openvpn-services/openvpn.conf

@ -1,31 +0,0 @@
server 10.80.0.0 255.255.0.0
verb 3
key /etc/openvpn/pki/private/127.0.0.1.key
ca /etc/openvpn/pki/ca.crt
cert /etc/openvpn/pki/issued/127.0.0.1.crt
dh /etc/openvpn/pki/dh.pem
tls-auth /etc/openvpn/pki/ta.key
key-direction 0
keepalive 10 60
persist-key
persist-tun
proto udp
# Rely on Docker to do port mapping, internally always 1194
port 1194
dev tun0
status /tmp/openvpn-status.log
user nobody
group nogroup
client-to-client
comp-lzo no
### Push Configurations Below
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "comp-lzo no"
push "route 172.50.20.0 255.255.255.0"
### Extra Configurations Below
topology subnet

25
src-local/instance/swarmlab-sec/vpn/openvpn-services/ovpn_env.sh

@ -1,25 +0,0 @@
declare -x OVPN_AUTH=
declare -x OVPN_CIPHER=
declare -x OVPN_CLIENT_TO_CLIENT=1
declare -x OVPN_CN=127.0.0.1
declare -x OVPN_COMP_LZO=0
declare -x OVPN_DEFROUTE=0
declare -x OVPN_DEVICE=tun
declare -x OVPN_DEVICEN=0
declare -x OVPN_DISABLE_PUSH_BLOCK_DNS=1
declare -x OVPN_DNS=1
declare -x OVPN_DNS_SERVERS=([0]="8.8.8.8" [1]="8.8.4.4")
declare -x OVPN_ENV=/etc/openvpn/ovpn_env.sh
declare -x OVPN_EXTRA_CLIENT_CONFIG=()
declare -x OVPN_EXTRA_SERVER_CONFIG=([0]="topology subnet")
declare -x OVPN_FRAGMENT=
declare -x OVPN_KEEPALIVE='10 60'
declare -x OVPN_MTU=
declare -x OVPN_NAT=1
declare -x OVPN_PORT=1194
declare -x OVPN_PROTO=udp
declare -x OVPN_PUSH=([0]="route 172.50.20.0 255.255.255.0")
declare -x OVPN_ROUTES=()
declare -x OVPN_SERVER=10.80.0.0/16
declare -x OVPN_SERVER_URL=udp://127.0.0.1:1194
declare -x OVPN_TLS_CIPHER=

109
src-local/instance/swarmlab-sec/vpn/sec1.vpn

@ -1,109 +0,0 @@
client
nobind
dev tun
comp-lzo
resolv-retry infinite
keepalive 15 60
remote-cert-tls server
remote 192.168.1.5 1194 udp
<key>
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDEKX1RLDhwLIHL
ccQ1SyPfcZdzlG1obYLfsXoyxV+QuTMkjidzBjtkBw7RscQK9uSWt6c/89DRAiao
zSwCUF0t+13kd0TXGe6b5qGVOnlAnNeyEuFYk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0HXsthZDw+2KPw4w1zkD9MtexD/JMJaDHwz3biZyoVhucdbLNa
uxPlK1LdzHVXcuN58q0VTOYYpmQvh/rEhFTjObAWWRF8JXcCAwEAAaOBkDCBjTAd
BgNVHQ4EFgQU92QhHH9sVPh6UUHvnKaKZJzlN/YwUQYDVR0jBEowSIAU92QhHH9s
VPh6UUHvnKaKZJzlN/ahGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghQC21um
s0zDfPWZMpYIqaq8sgRDTTAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBBjANBgkq
hkiG9w0BAQsFAAOCAQEAQUVJZVzk0eXOfA5qaHdYE29cW37ImVy9gMQGS0Mg6tT6
lwBQyXG9Gd/KvCG8WyzgEtuloHqknCRdLDb/N/X2oG5ib7ypCv4j+VeVOXCwAq2N
dhEJdQxMxDYrpcAMFpcr7oZA8jEQBtLG2sKRw/3MMwk2rBaKbTxk+SVnM7EOR5rV
plOc84Y+hZ2trQEUV9iussxWlr7GUbFeKaE8qYvVmqqoXxl9plt5VOgTnZHCNyN9
jxGnOdcKq3KERPVhwBwfNpfYDqLjKp+A8TTDkhjRm80ayeMCStYjVaH3ud+/jmn3
ye6/XUOrsn9aZhHBCN9pCJUsIRsGemTvQVH74tusew==
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
b3a5e1e4f76a13d2d496ca397897d6e4
644f28ac1fd6e1edba47aadbcdb1c692
5203f522ed18b66b5df5a0259bc9581d
5601c534f6a6f0c34939fc743553b5e7
140e2d1c467bfe5d99ad423a726f4b42
e760f0f0b660293866953b4fafdaf683
362c589a3db5feb3456d84a8f219521e
ee8dca14b3d0c56814da63f01a7ef89e
b4b3df8c6b85c051f5997b8b3360d7d2
6b51203b03ec07e66726d894791dfa90
a3ccf3703799ab1ba9905828b4f2baf8
5c13530607d6f227f13bb897785b2ccd
140bc95f7333037df6a65b6c96c8fcd6
d28226af3b1b084bffb92016312a4ca7
f6cca31f281b03d45ed7d13145837ba3
130ae15c5d868ba25f7ba702c6161f56
-----END OpenVPN Static key V1-----
</tls-auth>

110
src-local/instance/swarmlab-sec/vpn/sec2.vpn

@ -1,110 +0,0 @@
client
nobind
dev tun
comp-lzo
resolv-retry infinite
keepalive 15 60
remote-cert-tls server
remote 192.168.1.5 1194 udp
<key>
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDtX8bpeD7m1Rzc
0InKb33Hoznp4MRqCr6YKQrr/o5qJeK262NIhGKJp0bPnvYULzGWwJRl49b8kE5F
R7wuuSuPRjULhm87VRZH3SNFzRVBfiifjOSiQcBBcOGq1knmR4VoHEEP99EuHWfW
ls2wdAm4nyDBkwmxs951pamMR7wtY3q6tvqQ8Edp5EuNG1/Y4O4P32lPG+z7kx7L
dY9XCN1FKyZlngVQtAK+gvQcFYyotogSPFhcu0DDr81VxbEwr3HqUKU0+l93Vbo4
B7FYMKZ4eSUneY+qG4S06ELdkJARGWIOeIJ0bg0j4bNHepTNEmFjB9o+Ax66LJu+
4YrQ2pE5AgMBAAECggEAL2PbtmjHRhZt+Le5iqzPk7fGrCavj+wtOPuYrpzXmeGO
ba5419V2Rr0aqgC2aDkz0UEJX34pQasdtT8pFrrpM2V02aQxOMs384j2rczP3Y9u
VMwwKSSvWWFL7GtzvYGx5KMfaiyzml1Mic75qazA9Bbw1zSfztZ2J063lsYLj5PW
Ulm13RpOQUSdYGGxMa36cJeYKg5LNO8wK3hG6ErWBHfZiGSbzsxgUZgIr3sIMUIS
iq9VXart/5UmX0og2+RTaTsWJfDr/CC7QPXNDo95Ah+4+eg0aPj445yFnnfuqIjt
sJSwl9pDJXXz6Ix1vM4pDew4GinVs0bPQBaXvbZ/8QKBgQD314c5YM/7j3w6l/Z/
/fGYVJdLLcgu6waesx6n+OYwBnKUFYmeXyuXWiQe+Gh7dZvy32JOQPjgLWFBgIMR
keWp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CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
b3a5e1e4f76a13d2d496ca397897d6e4
644f28ac1fd6e1edba47aadbcdb1c692
5203f522ed18b66b5df5a0259bc9581d
5601c534f6a6f0c34939fc743553b5e7
140e2d1c467bfe5d99ad423a726f4b42
e760f0f0b660293866953b4fafdaf683
362c589a3db5feb3456d84a8f219521e
ee8dca14b3d0c56814da63f01a7ef89e
b4b3df8c6b85c051f5997b8b3360d7d2
6b51203b03ec07e66726d894791dfa90
a3ccf3703799ab1ba9905828b4f2baf8
5c13530607d6f227f13bb897785b2ccd
140bc95f7333037df6a65b6c96c8fcd6
d28226af3b1b084bffb92016312a4ca7
f6cca31f281b03d45ed7d13145837ba3
130ae15c5d868ba25f7ba702c6161f56
-----END OpenVPN Static key V1-----
</tls-auth>

107
src-local/instance/swarmlab-sec/vpn/test1.ovpn

@ -1,107 +0,0 @@
client
nobind
dev tun
remote-cert-tls server
remote 127.0.0.1 1194 udp
<key>
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDicLw3VHI0jo+n
HJmGe6Q1HYQDov5GaLPcigf68G9WQdbEwASkasfT9QsqjteH/YfnuE9J+5DZBwKp
3zSjVC6+/DaWqL9yu8al89UHU70TNAD6hDyU+5Cc+4SmbWtYbkxA6TV+OsoBxj3j
aCeLhiVqc4bLFnr8zXsJYlr3GqTOZb4Oe3snSo+bynt2M31kciEMyeoLXHkxyJF+
DKDRNVqq5gv2tUERLVmYlVQ12O4MhvS0dyOQNqB/tGv5IJ7dtQyg4oQerwhiIbRY
TegyI+M6cXSLi/JwSuOfuxcMOScl6ttiLtuODE89KNL1gPKyOiKbb6mX0vYXUw/0
MoAjkph/AgMBAAECggEBANDBxBNya9NeNruGl1cvN6SsMF+17Zv1vROtwUusS8iG
7Dv5Fo6Jzu3udDvo8nTx3FBZT+fR36jlWKR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eSx4HCWrzB2s1NxuOPQdxgRzCrLoG29TI
j2iGCK3Uat5j1AuzY+tt1qUszft4Ulgaf8v6EkstHRhXL0Xt8/rERUpAy7ja1t14
VOBlHf49N1WXum603pX08Ri4z8qMhToQ9F+vhmcoaZosKAgNdNevmoE5k7roExzm
fSP9qwTX+3M85cxAcR5UPdffZOKIKMIfxF08v0+DoXKYqIW6S+qZFkGvH5SykkHe
mKgWFq3fslx3RYHEKg9xuaGXewDD15TOl4AWKUXz+WJw4TM2vozhMhnMIGdKhu+/
tvMeyTWsLkM9SDf0fmBYjqXRwS/2lGpXssIhDINlVw==
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
a8d4abd1d142fe5b9ee88efb478d61e7
004f6dad5069e430d51c7529f20fc8c2
c8472bf9fae194eee690dc624f690d80
53407f22c7e3731e8b3ba37618252d4d
a69dd841e5490dc21c665be24579eb22
635feeeb0b2a6b3ab1371dbc9d233f0e
2c8ed62f80c8f65f493dbe4cc4ee34e0
5515c8b09b2054765e5446e71901ccfa
1b50cd8c6dd554e32b14638dc5829118
6e5200172887f1d798738fe7b520ecba
18c6e4749d75a005f8a8b41af7ee788f
f5c7ad68fd35bb134560b4d2d31ab253
eb6e108f6e345fd553bc733ff1a327dd
55ae0d6fae884cd1c370257e66c6676c
df977aac8fa9b584091119807dbe6661
d05293cbe8c905092679aced47204824
-----END OpenVPN Static key V1-----
</tls-auth>

107
src-local/instance/swarmlab-sec/vpn/test2.ovpn

@ -1,107 +0,0 @@
client
nobind
dev tun
remote-cert-tls server
remote 127.0.0.1 1194 udp
<key>
-----BEGIN PRIVATE KEY-----
MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBAQDjk7U8/A8vcYXx
Z3uCgwDsnfA4SjZywFRpef5vl2P/qugedPg7oBrxE9dIx8pXCKnpgwxLr4wLk322
JRPt4eAFFU6pmlJ3Ls40QM2cLXErX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0yrimI4yhI6PKVmcQ9f7yOVh0iuk82v+zzEDiPVRNQWWPYuhaqx76V71LfTJIW
+H9CQ91sKDcNapkL9ceF3ZzB7aJYy8pGxL9WMhOT2GpTfBkCAwEAAaOBkDCBjTAd
BgNVHQ4EFgQU+L2/4l3be37cNhNRa4CvLNNWJNwwUQYDVR0jBEowSIAU+L2/4l3b
e37cNhNRa4CvLNNWJNyhGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghRFxzX5
+NhWfASzbdi09AfzY/rrITAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBBjANBgkq
hkiG9w0BAQsFAAOCAQEANmCJGqJoH8BeSx4HCWrzB2s1NxuOPQdxgRzCrLoG29TI
j2iGCK3Uat5j1AuzY+tt1qUszft4Ulgaf8v6EkstHRhXL0Xt8/rERUpAy7ja1t14
VOBlHf49N1WXum603pX08Ri4z8qMhToQ9F+vhmcoaZosKAgNdNevmoE5k7roExzm
fSP9qwTX+3M85cxAcR5UPdffZOKIKMIfxF08v0+DoXKYqIW6S+qZFkGvH5SykkHe
mKgWFq3fslx3RYHEKg9xuaGXewDD15TOl4AWKUXz+WJw4TM2vozhMhnMIGdKhu+/
tvMeyTWsLkM9SDf0fmBYjqXRwS/2lGpXssIhDINlVw==
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
a8d4abd1d142fe5b9ee88efb478d61e7
004f6dad5069e430d51c7529f20fc8c2
c8472bf9fae194eee690dc624f690d80
53407f22c7e3731e8b3ba37618252d4d
a69dd841e5490dc21c665be24579eb22
635feeeb0b2a6b3ab1371dbc9d233f0e
2c8ed62f80c8f65f493dbe4cc4ee34e0
5515c8b09b2054765e5446e71901ccfa
1b50cd8c6dd554e32b14638dc5829118
6e5200172887f1d798738fe7b520ecba
18c6e4749d75a005f8a8b41af7ee788f
f5c7ad68fd35bb134560b4d2d31ab253
eb6e108f6e345fd553bc733ff1a327dd
55ae0d6fae884cd1c370257e66c6676c
df977aac8fa9b584091119807dbe6661
d05293cbe8c905092679aced47204824
-----END OpenVPN Static key V1-----
</tls-auth>

110
src-local/instance/swarmlab-sec/vpn/testsec1.user

@ -1,110 +0,0 @@
client
nobind
dev tun
comp-lzo
resolv-retry infinite
keepalive 15 60
remote-cert-tls server
remote 192.168.1.9 1194 udp
float
<key>
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDNBPNW1mjZPC53
FPVwAD576uALJO/YTJEkEofKjqe3ju8TqXC7Y9ycax27pAfImpbkP6bzyvrKHmUx
dBaZp6vYeP2W30LnSm8O7+2H3ntJskziIhKP/hCBRbC80H9QruIlm0EIvAU9dwHt
rqOTViJkUuEdQHFG6ITmT9INpYeEHzlfZYkL/oSMG0+0xEF6t9nTdDEdw70TjvD5
qSnBh6Y1JOrTVdjrrGIGzLRrMOVr1dCECMsZjgNFg8QHSpsdFQejz+0KWBHkMnxU
aWwsr1lONttdxMFRdNnugKg60mr79+tjXYRFwSY0L7tpd4LJiRi8V53Mfxv0Nsyu
so/j8b/LAgMBAAECggEBAKSjphqFIjvZZWMBtLvVplfy3Sp15hnoGuJB80RJ3Qu+
P+WlOz9wyVffeUgXSJzi7+up5hN/XHh1gkP9eqy4BntXZiYDcoG0t4ziRfjHRHCB
O9aZEBkMKQr3ASAPuz36wub6T3aJLxgV+rl5dii6kfHI0Lih6JXN4fPmA8QrurDw
xgXow7Nw3pNm/Rj/kZ+z4qvtnhoSq7gO1nUvSWPZ/2ADVxGONjKOHunKDFibVlac
9SJDGiFkT5xy3Isq00GChW04b2caof6cl4eRMuYrp4IdNXgFn/I3xOV2s9OnFj0g
o3qBFrOUTTbyXE1XfYyB/V7iGGDkFyLAoqAxHvTFD1kCgYEA7MQjZ/uvoOujFrHo
bbcYm1MLeE1ReLNRkTFlZiLTf0HZxuEQyevv+Vb3RavfDlmovxMl8SJXQVrBLgsY
uvDq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IFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
763e227713a0f9f0c66fc3aac17507e8
cf4e1668d1c417d57f8ba854c6fea7a5
f96995243f17dcaa0bbd75978e7064d0
602379b06dc955376a97186a2339051b
feec13a3532f4c6b7ca093dae0e2d03e
022b968e360f38127432b9c5724c7931
ad0eb2642d85b6cec0cd4de5d423e13b
9de553ad039cf28dc89e024a67f27590
de56e62ce8396f6644b892f45915c38d
d0dcf018c745587332cfe89a193d465b
6c9d4a2fb8e710862f918efd21945898
53036f0a1814b78d943d37f265fa2272
b5bd1f876c7fd8c634ef4581918966d4
77d789ece3aacf6d74a5bb52146bee09
56a012def292a07abbf9a5131883a9a5
a63feffc680e4f89ea8d0dc2681be2fd
-----END OpenVPN Static key V1-----
</tls-auth>

109
src-local/instance/swarmlab-sec/vpn/testsec2.user

@ -1,109 +0,0 @@
client
nobind
dev tun
comp-lzo
resolv-retry infinite
keepalive 15 60
remote-cert-tls server
remote 192.168.1.9 1194 udp
float
<key>
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDcPvwkSyM4mydF
4BPiWKl8n0UprWSVgXwZZb68V+syegPGwg2Y4nubB0niMRy1lmlBHz8xE4PqsOBe
ybFQo+JdLfPPtIAzuQqB230xuuww1GkPts5l/BeHTRXPB4y3my3Jxr+TnT/gn543
BCf65GkSAZp46pUGcLVYEk1kBim9tvaVKh10fL/WMCauGhlqkKSMBw5k9ACpYCmS
MNEdhSOyl9vZ3rBhvROq8KyzCLCFgi5DsGQcZscDVQsqd/eAUwx+9ODFzO8tHfs4
tLVb6AylIUxVzVCtVw/H0JuNcq272VS6QbHJ7i2tCwpV2UT2SWnJjvaI2P4dtsG+
QCR7Z/bJAgMBAAECggEAKAPdha6NGKS/zuc2VaJsMLMzOq5BHxSmemrM66VBmysl
8n+hPsyvTmxVlR39LFTGjMljjsQP7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AAOCAQEABNPKuzm19OtcfjdjYe1kC43f9H/2d/gzecnrryefGKfI
0LfQYgPPZ42jTI17GAhWxIFh8rBKeQPRntkS+khBLrDbcNivPCpU6FJWx9WGiqyJ
he/q3zMtaJowKeKBw7MAD4DsWq9j9ut8CdsJa/RhIwMe1QET0BfzmrnPxOqTM68b
0lh9xHxb7dKJCJj6+2rxpnYeh/sZ/DCZuV8resxSOLdCdwlgtuhsJVy094gdgg4w
iqcAIDi8ZQmdV0lUSM63GkjRLNPrwFUn5URDliSJ3zBJZaWnz2/7/5wJhs7rrPlh
HJ3NggoBlmyXcTRABKiKavH7e+Vap1Nhzy3VpzE/aw==
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
763e227713a0f9f0c66fc3aac17507e8
cf4e1668d1c417d57f8ba854c6fea7a5
f96995243f17dcaa0bbd75978e7064d0
602379b06dc955376a97186a2339051b
feec13a3532f4c6b7ca093dae0e2d03e
022b968e360f38127432b9c5724c7931
ad0eb2642d85b6cec0cd4de5d423e13b
9de553ad039cf28dc89e024a67f27590
de56e62ce8396f6644b892f45915c38d
d0dcf018c745587332cfe89a193d465b
6c9d4a2fb8e710862f918efd21945898
53036f0a1814b78d943d37f265fa2272
b5bd1f876c7fd8c634ef4581918966d4
77d789ece3aacf6d74a5bb52146bee09
56a012def292a07abbf9a5131883a9a5
a63feffc680e4f89ea8d0dc2681be2fd
-----END OpenVPN Static key V1-----
</tls-auth>

69
src-local/llo/new.js

@ -147,7 +147,6 @@ app.get('/getservicesinfo', (req, res, next) => {
RES.instance = req.query["instance"]
var services_path = './instance/'+RES.instance
console.log(services_path)
var showexec = 'ls -l /'
if (fs.existsSync(services_path)) {
var found = 'yes'
RES.error = false
@ -164,6 +163,47 @@ app.get('/getservicesinfo', (req, res, next) => {
});
app.get('/getservicesstatus', (req, res, next) => {
var RES = new Object();
RES.instance = req.query["instance"]
var showexec = `docker ps --format '{"Names":"{{ .Names }}", "Status":"{{.Status}}"}' | jq . -s `
exec(showexec, (err, stdout, stderr) => {
if (err) {
console.error(`exec error: ${err}`);
return;
}
if (stdout) {
var string = stdout.toString()
var datajson = JSON.parse(string);
console.log(JSON.stringify(datajson.length))
console.log(JSON.stringify(datajson))
var extenderror = new RegExp(RES.instance);
var found = 'no';
for(var i = 0; i < datajson.length; i++) {
var servicename = datajson[i].Names
console.log(JSON.stringify(servicename))
if(extenderror.test(servicename)){
found = 'yes';
}
}
RES.error = false
RES.error_msg = "ok"
RES.test = datajson;
RES.data = found;
res.json(RES)
}else{
var found = 'no'
RES.error = false
RES.error_msg = "ok"
RES.data = found;
res.json(RES)
}
});
});
let child = [];
var ppid = ''
io.on('connection', function(socket) {
@ -204,33 +244,6 @@ io.on('connection', function(socket) {
});
});
socket.on('start1', () => {
//const childstart = spawn('/bin/sh ./swarmlab-sec/hybrid//start.sh');
const start = spawn('/bin/sh ./start.sh', {
stdio: 'pipe',
shell: true,
cwd: './swarmlab-sec/hybrid'
});
start.stdout.on('data', function (data) {
var n = {}
n.data = data.toString()
io.emit('message_out', n);
});
start.stderr.on('data', function (data) {
var n = {}
n.data = data.toString()
io.emit('message_err', n);
});
start.on('close', function (code) {
var n = {}
n.data = code
io.emit('message_close', n);
});
console.log('hi from server');
});
socket.on('stop', (service) => {
var services_path = './instance/'+service+'/'+service

4
src/App.vue

@ -11,12 +11,12 @@
<a class="nav-link" href="#"
@click="hybrid('services')"
>
Manage Your Services</a>
Manage_Your_Lab_Instances</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"
@click="hybrid('bootstrap')"
>myNetwork</a>
>Containers</a>
</li>
<li class="nav-item my-auto">
<a class="nav-link navbar-brand mx-0 d-none d-md-inline" href="">Hybrid</a>

40
src/components/mynetwork/availableservices.vue

@ -71,7 +71,7 @@
<div slot="actionsenabled" slot-scope="props">
<div class="d-flex justify-content-center">
<button
v-if="testactionrowindex[props.rowIndex] == props.rowIndex"
v-if="testactionrowindex[props.rowData.swarmlabname] == props.rowIndex"
class="ti-thumb-up btn btn-info btn-sm"
title="Stop Lan_Instance"
round
@ -79,7 +79,7 @@
>
</button>
<button
v-if="testactionrowindex[props.rowIndex] == props.rowIndex && teststatusindex[props.rowIndex] != props.rowIndex"
v-if="testactionrowindex[props.rowData.swarmlabname] != props.rowIndex && testactionrowindex[props.rowIndex] == props.rowIndex"
class="ti-thumb-down btn btn-secondary btn-sm"
title="Stop Lan_Instance"
round
@ -298,7 +298,21 @@ export default {
},
async checkactionrowindex(data,index){
if(this.testactionrowindex[index] == index){
console.log('is set '+index)
var obj = {}
obj.token = this.token
obj.instance = data.swarmlabname
var res1 = await store.dispatch('pipelineLLO/getservicesstatus', obj)
console.log('res8 all '+JSON.stringify(res1))
if(res1.data.data == 'yes'){
Vue.set(this.testactionrowindex, data.swarmlabname, index)
console.log('res8 YES '+JSON.stringify(res1.data))
}else{
console.log('res8 NO '+JSON.stringify(res1.data))
Vue.delete(this.testactionrowindex, data.swarmlabname)
}
console.log('is set '+index)
}else{
console.log('not set '+index)
@ -307,10 +321,17 @@ export default {
obj.instance = data.swarmlabname
var res = await store.dispatch('pipelineLLO/getservicesinfo', obj)
if(res.data.data == 'yes'){
var obj1 = {}
obj1.index = index
console.log('resi YES '+JSON.stringify(res))
Vue.set(this.testactionrowindex, index, index)
//console.log('resi yes '+JSON.stringify(this.testactionrowindex))
var res1 = await store.dispatch('pipelineLLO/getservicesstatus', obj)
console.log('res8 all '+JSON.stringify(res1))
if(res1.data.data == 'yes'){
Vue.set(this.testactionrowindex, data.swarmlabname, index)
console.log('res8 YES '+JSON.stringify(res1.data))
}else{
console.log('res8 NO '+JSON.stringify(res1.data))
Vue.delete(this.testactionrowindex, data.swarmlabname)
}
//console.log('resiiiiiiii yes '+JSON.stringify(this.testactionrowindex[index]))
}else{
//Vue.delete(this.testactionrowindex, index)
@ -380,16 +401,19 @@ export default {
focusCancel: true,
confirmButtonText: 'Yes, Delete it!'
})
Vue.nextTick( () => this.$refs.vuetable.refresh())
}else if(action == 'run-item' ){
console.log('RUN 1 '+ JSON.stringify(data.swarmlabname))
// run on mytable.vue
this.$root.$emit('hybrid_start_instance', data.swarmlabname)
Vue.set(this.teststatusindex, index, index)
Vue.set(this.testactionrowindex, data.swarmlabname, index)
Vue.nextTick( () => this.$refs.vuetable.refresh())
}else if(action == 'down-item' ){
console.log('RUN 1 '+ JSON.stringify(data.swarmlabname))
// run on mytable.vue
this.$root.$emit('hybrid_stop_instance', data.swarmlabname)
Vue.delete(this.teststatusindex, index)
Vue.delete(this.testactionrowindex, index)
Vue.nextTick( () => this.$refs.vuetable.refresh())
}
},
refreshVuetable() {

2
src/components/mynetwork/mytable.vue

@ -419,6 +419,8 @@ export default {
async message_close(val) {
console.log(" socket close "+JSON.stringify(val))
this.$root.$emit('hybrid_log_in',val)
// refresh table mynework.vue
this.$root.$emit('hybrid_refresh_table')
}
},

26
src/store/modules/create_pipelineLLO.js

@ -130,6 +130,32 @@ export default {
}
}
},
async getservicesstatus({commit,rootGetters}, value) {
console.log('value '+JSON.stringify(value))
try {
var token = value.token
var params = {
instance: value.instance
}
var options = {
params: params,
headers: { 'content-type': 'application/x-www-form-urlencoded',Authorization: `Bearer ${token}` },
};
var p = await axios.get('https://localhost:3000/getservicesstatus',options);
return p
} catch (e) {
if(e.message == "Request failed with status code 401" || /401/i.test(e.message)){
//console.log('error '+JSON.stringify(e))
window.location.href = 'https://api-login.swarmlab.io:8089';
}else{
var R = {
ERROR_str: e,
ERROR: 'yes'
}
return R;
}
}
},
async getswarmlabinfo({commit,rootGetters}, value) {
try {
var token = rootGetters['pipelineLLO/gettoken']

79
viwsession/session1

@ -13,8 +13,8 @@ badd +147 /data/appl/ok/swarmlab-hybrid-agent/src-local/llo/new.js
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork/mytable.vue
badd +50 /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork/dockerservices.vue
badd +43 /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork/availableservices.vue
badd +0 /data/appl/ok/swarmlab-hybrid-agent/src/App.vue
badd +0 /data/appl/ok/swarmlab-hybrid-agent/src/components/myservices.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork.vue
badd +1 /data/appl/ok/swarmlab-hybrid-agent/src/store/modules/create_pipelineLLO.js
argglobal
silent! argdel *
$argadd mynetwork.vue
@ -38,13 +38,13 @@ set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe '1resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 200)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 200)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 3resize ' . ((&columns * 100 + 100) / 200)
exe '4resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 4resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 4resize ' . ((&columns * 100 + 100) / 200)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -74,17 +74,17 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 167 - ((12 * winheight(0) + 11) / 22)
let s:l = 190 - ((19 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
167
normal! 03|
190
normal! 032|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components
wincmd w
argglobal
enew
file /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork.vue
file /data/appl/ok/swarmlab-hybrid-agent/src/components/myservices.vue
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
@ -96,7 +96,7 @@ setlocal fen
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components
wincmd w
argglobal
if bufexists('/data/appl/ok/swarmlab-hybrid-agent/src/components/myservices.vue') | buffer /data/appl/ok/swarmlab-hybrid-agent/src/components/myservices.vue | else | edit /data/appl/ok/swarmlab-hybrid-agent/src/components/myservices.vue | endif
if bufexists('/data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork.vue') | buffer /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork.vue | else | edit /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork.vue | endif
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
@ -106,23 +106,22 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 27 - ((9 * winheight(0) + 11) / 22)
let s:l = 3 - ((2 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
27
3
normal! 0
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components
wincmd w
4wincmd w
exe '1resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 200)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 200)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 3resize ' . ((&columns * 100 + 100) / 200)
exe '4resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 4resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 4resize ' . ((&columns * 100 + 100) / 200)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src-local/llo/new.js
set splitbelow splitright
wincmd _ | wincmd |
@ -137,11 +136,11 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 200)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 100 + 100) / 200)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 3resize ' . ((&columns * 100 + 100) / 200)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -152,12 +151,12 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 82 - ((24 * winheight(0) + 22) / 45)
let s:l = 172 - ((29 * winheight(0) + 22) / 45)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
82
normal! 08|
172
normal! 09|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
@ -171,7 +170,7 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 191 - ((2 * winheight(0) + 11) / 22)
let s:l = 191 - ((21 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
@ -190,20 +189,20 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 98 - ((21 * winheight(0) + 11) / 22)
let s:l = 317 - ((17 * winheight(0) + 11) / 22)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
98
normal! 015|
317
normal! 073|
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components
wincmd w
exe 'vert 1resize ' . ((&columns * 99 + 100) / 201)
exe 'vert 1resize ' . ((&columns * 99 + 100) / 200)
exe '2resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 2resize ' . ((&columns * 101 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 100 + 100) / 200)
exe '3resize ' . ((&lines * 22 + 24) / 48)
exe 'vert 3resize ' . ((&columns * 101 + 100) / 201)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/App.vue
exe 'vert 3resize ' . ((&columns * 100 + 100) / 200)
tabedit /data/appl/ok/swarmlab-hybrid-agent/src/store/modules/create_pipelineLLO.js
set splitbelow splitright
wincmd _ | wincmd |
vsplit
@ -213,8 +212,8 @@ set nosplitbelow
set nosplitright
wincmd t
set winminheight=1 winheight=1 winminwidth=1 winwidth=1
exe 'vert 1resize ' . ((&columns * 100 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 100 + 100) / 201)
exe 'vert 1resize ' . ((&columns * 100 + 100) / 200)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 200)
argglobal
setlocal fdm=manual
setlocal fde=0
@ -225,17 +224,17 @@ setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let s:l = 51 - ((27 * winheight(0) + 22) / 45)
let s:l = 1 - ((0 * winheight(0) + 22) / 45)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
51
1
normal! 0
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
argglobal
enew
file /data/appl/ok/swarmlab-hybrid-agent/src/store/modules/create_pipelineLLO.js
file /data/appl/ok/swarmlab-hybrid-agent/src/App.vue
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
@ -246,9 +245,9 @@ setlocal fdn=20
setlocal fen
lcd /data/appl/ok/swarmlab-hybrid-agent/src/components/mynetwork
wincmd w
exe 'vert 1resize ' . ((&columns * 100 + 100) / 201)
exe 'vert 2resize ' . ((&columns * 100 + 100) / 201)
tabnext 1
exe 'vert 1resize ' . ((&columns * 100 + 100) / 200)
exe 'vert 2resize ' . ((&columns * 99 + 100) / 200)
tabnext 3
set stal=1
if exists('s:wipebuf')
silent exe 'bwipe ' . s:wipebuf

Loading…
Cancel
Save