From 9a41f68c32a74b0186a88820589beb023b464cd9 Mon Sep 17 00:00:00 2001
From: Darrin Husselmann
Date: Thu, 27 Feb 2020 09:58:38 +0200
Subject: [PATCH 1/2] Updated vmware virtual hardware version in
systemvmtemplate build script
---
tools/appliance/build.sh | 2 +-
tools/appliance/cloud_scripts_shar_archive.sh | 208895 +++++++++++++++
2 files changed, 208896 insertions(+), 1 deletion(-)
create mode 100755 tools/appliance/cloud_scripts_shar_archive.sh
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index 25d73f1d95fb..1c83f9aba510 100755
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -227,7 +227,7 @@ function stage_vmx() {
displayname = "${1}"
annotation = "${1}"
guestos = "otherlinux-64"
-virtualHW.version = "8"
+virtualHW.version = "11"
config.version = "8"
numvcpus = "1"
cpuid.coresPerSocket = "1"
diff --git a/tools/appliance/cloud_scripts_shar_archive.sh b/tools/appliance/cloud_scripts_shar_archive.sh
new file mode 100755
index 000000000000..b2395cd65c77
--- /dev/null
+++ b/tools/appliance/cloud_scripts_shar_archive.sh
@@ -0,0 +1,208895 @@
+#!/bin/sh
+# This is a shell archive (produced by GNU sharutils 4.15.2).
+# To extract the files from this archive, save it to some FILE, remove
+# everything before the '#!/bin/sh' line above, then type 'sh FILE'.
+#
+lock_dir=_sh57448
+# Made on 2020-02-27 09:37 SAST by .
+# Source directory was '/tmp/shar_cloud.XnZHhBXb'.
+#
+# Existing files will *not* be overwritten, unless '-c' is specified.
+#
+# This shar contains:
+# length mode name
+# ------ ---------- ------------------------------------------
+# 253 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0003.json
+# 77 -rw-r--r-- cloud_scripts/opt/cloud/testdata/vmp0001.json
+# 267 -rw-r--r-- cloud_scripts/opt/cloud/testdata/gn0001.json
+# 250 -rw-r--r-- cloud_scripts/opt/cloud/testdata/dhcp0001.json
+# 1405 -rw-r--r-- cloud_scripts/opt/cloud/testdata/acl0001.json
+# 70 -rw-r--r-- cloud_scripts/opt/cloud/testdata/README
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0001.json
+# 1062 -rwxr-xr-x cloud_scripts/opt/cloud/testdata/test.sh
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0002.json
+# 380 -rw-r--r-- cloud_scripts/opt/cloud/testdata/s2s0001.json
+# 1177 -rw-r--r-- cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+# 1357 -rwxr-xr-x cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+# 853 -rwxr-xr-x cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+# 15888 -rw-r--r-- cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+# 2037 -rwxr-xr-x cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+# 822 -rw-r--r-- cloud_scripts/opt/cloud/templates/check_bumpup.sh
+# 1429 -rw-r--r-- cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+# 1792 -rwxr-xr-x cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+# 3239 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+# 3377 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+# 45920 -rwxr-xr-x cloud_scripts/opt/cloud/bin/configure.py
+# 1126 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmp.py
+# 1526 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterMonitorResults.sh
+# 2725 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vr_cfg.sh
+# 2346 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_snat.sh
+# 3043 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_staticroute.sh
+# 5587 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal-vr.py
+# 1141 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_firewallrules.py
+# 3478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/netusage.sh
+# 2294 -rwxr-xr-x cloud_scripts/opt/cloud/bin/monitor_service.sh
+# 2581 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_ip.py
+# 824 -rwxr-xr-x cloud_scripts/opt/cloud/bin/bumpup_priority.sh
+# 1706 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterAlerts.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 8234 -rwxr-xr-x cloud_scripts/opt/cloud/bin/loadbalancer.sh
+# 1717 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal_snat.sh
+# 1469 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vpnusers.py
+# 13492 -rwxr-xr-x cloud_scripts/opt/cloud/bin/merge.py
+# 2040 -rwxr-xr-x cloud_scripts/opt/cloud/bin/master.py
+# 1663 -rwxr-xr-x cloud_scripts/opt/cloud/bin/set_redundant.py
+# 1178 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checks2svpn.sh
+# 994 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_remoteaccessvpn.py
+# 952 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_staticroutes.py
+# 996 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_site2sitevpn.py
+# 7020 -rwxr-xr-x cloud_scripts/opt/cloud/bin/passwd_server_ip.py
+# 881 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_network_acl.py
+# 986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cleanup.sh
+# 1016 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_loadbalancer.py
+# 1849 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_func.sh
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 4723 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vmdata.py
+# 4478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_diagnostics_files.py
+# 1445 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkrouter.sh
+# 5644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ilb.sh
+# 924 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkbatchs2svpn.sh
+# 1525 -rwxr-xr-x cloud_scripts/opt/cloud/bin/savepassword.sh
+# 2632 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cloud-nic.sh
+# 8769 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipsectunnel.sh
+# 13401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipassoc.sh
+# 7961 -rwxr-xr-x cloud_scripts/opt/cloud/bin/line_edit.py
+# 1449 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_template_version.sh
+# 5136 -rwxr-xr-x cloud_scripts/opt/cloud/bin/update_config.py
+# 5502 -rwxr-xr-x cloud_scripts/opt/cloud/bin/edithosts.sh
+# 2012 -rwxr-xr-x cloud_scripts/opt/cloud/bin/diagnostics.py
+# 1541 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_monitorservice.py
+# 6986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpn_l2tp.sh
+# 1401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_guestnetwork.py
+# 892 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmdata.py
+# 4359 -rwxr-xr-x cloud_scripts/opt/cloud/bin/dnsmasq.sh
+# 1533 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_dhcp.py
+# 1045 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_cmdline.py
+# 1454 -rwxr-xr-x cloud_scripts/root/reconfigLB.sh
+# 12747 -rwxr-xr-x cloud_scripts/root/monitorServices.py
+# 3349 -rw-r--r-- cloud_scripts/root/health_checks/iptables_check.py
+# 1966 -rw-r--r-- cloud_scripts/root/health_checks/memory_usage_check.py
+# 5274 -rw-r--r-- cloud_scripts/root/health_checks/haproxy_check.py
+# 2773 -rw-r--r-- cloud_scripts/root/health_checks/router_version_check.py
+# 1865 -rw-r--r-- cloud_scripts/root/health_checks/utility/sharedFunctions.py
+# 864 -rw-r--r-- cloud_scripts/root/health_checks/utility/__init__.py
+# 1626 -rw-r--r-- cloud_scripts/root/health_checks/disk_space_check.py
+# 1869 -rw-r--r-- cloud_scripts/root/health_checks/gateways_check.py
+# 942 -rw-r--r-- cloud_scripts/root/health_checks/__init__.py
+# 1972 -rw-r--r-- cloud_scripts/root/health_checks/dns_check.py
+# 2078 -rw-r--r-- cloud_scripts/root/health_checks/cpu_usage_check.py
+# 2386 -rwxr-xr-x cloud_scripts/root/health_checks/dhcp_check.py
+# 3567 -rw-r--r-- cloud_scripts/root/func.sh
+# 1461 -rwxr-xr-x cloud_scripts/root/clearUsageRules.sh
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 94 -rw-r--r-- cloud_scripts/etc/ipsec.conf
+# 80 -rw-r--r-- cloud_scripts/etc/systemd/journald.conf
+# 156 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-vss-daemon.service
+# 143 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service
+# 298 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud.service
+# 280 -rw-r--r-- cloud_scripts/etc/systemd/system/open-vm-tools.service
+# 257 -rw-r--r-- cloud_scripts/etc/systemd/system/baremetal-vr.service
+# 398 -rw-r--r-- cloud_scripts/etc/systemd/system/xe-daemon.service
+# 190 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service
+# 348 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-early-config.service
+# 244 -rw-r--r-- cloud_scripts/etc/systemd/system/[email protected]
+# 287 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-postinit.service
+# 1731 -rw-r--r-- cloud_scripts/etc/iptables/rules
+# 1601 -rw-r--r-- cloud_scripts/etc/iptables/iptables-consoleproxy
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-router
+# 1465 -rw-r--r-- cloud_scripts/etc/iptables/iptables-vpcrouter
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-dhcpsrvr
+# 1256 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-elbvm
+# 1375 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-secstorage
+# 1192 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-ilbvm
+# 897 -rw-r--r-- cloud_scripts/etc/iptables/rt_tables_init
+# 2049 -rw-r--r-- cloud_scripts/etc/sysctl.conf
+# 139 -rw-r--r-- cloud_scripts/etc/xl2tpd/xl2tpd.conf
+# 25321 -rw-r--r-- cloud_scripts/etc/dnsmasq.conf.tmpl
+# 107 -rwxr-xr-x cloud_scripts/etc/cron.daily/clear_cache
+# 477 -rw-r--r-- cloud_scripts/etc/vmware-tools/tools.conf
+# 507 -rw-r--r-- cloud_scripts/etc/logrotate.conf
+# 3603 -rw-r--r-- cloud_scripts/etc/ssh/sshd_config
+# 141 -rw-r--r-- cloud_scripts/etc/ppp/options.xl2tpd
+# 1234 -rw-r--r-- cloud_scripts/etc/ipsec.d/l2tp.conf
+# 2298 -rw-r--r-- cloud_scripts/etc/rsyslog.conf
+# 801 -rw-r--r-- cloud_scripts/etc/modprobe.d/pcspkr.conf
+# 807 -rw-r--r-- cloud_scripts/etc/modprobe.d/aesni_intel.conf
+# 183 -rwxr-xr-x cloud_scripts/etc/cron.hourly/clear_cache
+# 54 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/security.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 8 -rw-r--r-- cloud_scripts/etc/apache2/httpd.conf
+# 9955 -rw-r--r-- cloud_scripts/etc/apache2/vhost.template
+# 17942 -rw-r--r-- cloud_scripts/etc/vpcdnsmasq.conf
+# 80 -rw-r--r-- cloud_scripts/etc/ipsec.secrets
+# 272 -rw-r--r-- cloud_scripts/etc/logrotate.d/dnsmasq
+# 1124 -rw-r--r-- cloud_scripts/etc/logrotate.d/cloud
+# 263 -rw-r--r-- cloud_scripts/etc/logrotate.d/conntrackd
+# 922 -rw-r--r-- cloud_scripts/etc/logrotate.d/monitor
+# 935 -rw-r--r-- cloud_scripts/etc/logrotate.d/routerServiceMonitor
+# 98 -rw-r--r-- cloud_scripts/etc/logrotate.d/ppp
+# 148 -rw-r--r-- cloud_scripts/etc/logrotate.d/apache2
+# 517 -rw-r--r-- cloud_scripts/etc/logrotate.d/rsyslog
+# 194 -rw-r--r-- cloud_scripts/etc/logrotate.d/haproxy
+# 861 -rwxr-xr-x cloud_scripts/etc/profile.d/cloud.sh
+# 83 -rw-r--r-- cloud_scripts/etc/cloud-nic.rules
+# 483 -rw-r--r-- cloud_scripts/etc/haproxy/haproxy.cfg
+# 696320 -rw-r--r-- cloud_scripts/usr/share/cloud/cloud-scripts.tar
+# 253 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0003.json
+# 77 -rw-r--r-- cloud_scripts/opt/cloud/testdata/vmp0001.json
+# 267 -rw-r--r-- cloud_scripts/opt/cloud/testdata/gn0001.json
+# 250 -rw-r--r-- cloud_scripts/opt/cloud/testdata/dhcp0001.json
+# 1405 -rw-r--r-- cloud_scripts/opt/cloud/testdata/acl0001.json
+# 70 -rw-r--r-- cloud_scripts/opt/cloud/testdata/README
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0001.json
+# 1062 -rwxr-xr-x cloud_scripts/opt/cloud/testdata/test.sh
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0002.json
+# 380 -rw-r--r-- cloud_scripts/opt/cloud/testdata/s2s0001.json
+# 1177 -rw-r--r-- cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+# 1357 -rwxr-xr-x cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+# 853 -rwxr-xr-x cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+# 15888 -rw-r--r-- cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+# 2037 -rwxr-xr-x cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+# 822 -rw-r--r-- cloud_scripts/opt/cloud/templates/check_bumpup.sh
+# 1429 -rw-r--r-- cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+# 1792 -rwxr-xr-x cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+# 3239 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+# 3377 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+# 45920 -rwxr-xr-x cloud_scripts/opt/cloud/bin/configure.py
+# 1126 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmp.py
+# 1526 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterMonitorResults.sh
+# 2725 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vr_cfg.sh
+# 2346 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_snat.sh
+# 3043 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_staticroute.sh
+# 5587 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal-vr.py
+# 1141 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_firewallrules.py
+# 3478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/netusage.sh
+# 2294 -rwxr-xr-x cloud_scripts/opt/cloud/bin/monitor_service.sh
+# 2581 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_ip.py
+# 824 -rwxr-xr-x cloud_scripts/opt/cloud/bin/bumpup_priority.sh
+# 1706 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterAlerts.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 8234 -rwxr-xr-x cloud_scripts/opt/cloud/bin/loadbalancer.sh
+# 1717 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal_snat.sh
+# 1469 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vpnusers.py
+# 13492 -rwxr-xr-x cloud_scripts/opt/cloud/bin/merge.py
+# 2040 -rwxr-xr-x cloud_scripts/opt/cloud/bin/master.py
+# 1663 -rwxr-xr-x cloud_scripts/opt/cloud/bin/set_redundant.py
+# 1178 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checks2svpn.sh
+# 994 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_remoteaccessvpn.py
+# 952 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_staticroutes.py
+# 996 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_site2sitevpn.py
+# 7020 -rwxr-xr-x cloud_scripts/opt/cloud/bin/passwd_server_ip.py
+# 881 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_network_acl.py
+# 986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cleanup.sh
+# 1016 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_loadbalancer.py
+# 1849 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_func.sh
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 4723 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vmdata.py
+# 4478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_diagnostics_files.py
+# 1445 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkrouter.sh
+# 5644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ilb.sh
+# 924 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkbatchs2svpn.sh
+# 1525 -rwxr-xr-x cloud_scripts/opt/cloud/bin/savepassword.sh
+# 2632 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cloud-nic.sh
+# 8769 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipsectunnel.sh
+# 13401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipassoc.sh
+# 7961 -rwxr-xr-x cloud_scripts/opt/cloud/bin/line_edit.py
+# 1449 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_template_version.sh
+# 5136 -rwxr-xr-x cloud_scripts/opt/cloud/bin/update_config.py
+# 5502 -rwxr-xr-x cloud_scripts/opt/cloud/bin/edithosts.sh
+# 2012 -rwxr-xr-x cloud_scripts/opt/cloud/bin/diagnostics.py
+# 1541 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_monitorservice.py
+# 6986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpn_l2tp.sh
+# 1401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_guestnetwork.py
+# 892 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmdata.py
+# 4359 -rwxr-xr-x cloud_scripts/opt/cloud/bin/dnsmasq.sh
+# 1533 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_dhcp.py
+# 1045 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_cmdline.py
+# 1454 -rwxr-xr-x cloud_scripts/root/reconfigLB.sh
+# 12747 -rwxr-xr-x cloud_scripts/root/monitorServices.py
+# 3349 -rw-r--r-- cloud_scripts/root/health_checks/iptables_check.py
+# 1966 -rw-r--r-- cloud_scripts/root/health_checks/memory_usage_check.py
+# 5274 -rw-r--r-- cloud_scripts/root/health_checks/haproxy_check.py
+# 2773 -rw-r--r-- cloud_scripts/root/health_checks/router_version_check.py
+# 1865 -rw-r--r-- cloud_scripts/root/health_checks/utility/sharedFunctions.py
+# 864 -rw-r--r-- cloud_scripts/root/health_checks/utility/__init__.py
+# 1626 -rw-r--r-- cloud_scripts/root/health_checks/disk_space_check.py
+# 1869 -rw-r--r-- cloud_scripts/root/health_checks/gateways_check.py
+# 942 -rw-r--r-- cloud_scripts/root/health_checks/__init__.py
+# 1972 -rw-r--r-- cloud_scripts/root/health_checks/dns_check.py
+# 2078 -rw-r--r-- cloud_scripts/root/health_checks/cpu_usage_check.py
+# 2386 -rwxr-xr-x cloud_scripts/root/health_checks/dhcp_check.py
+# 3567 -rw-r--r-- cloud_scripts/root/func.sh
+# 1461 -rwxr-xr-x cloud_scripts/root/clearUsageRules.sh
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 94 -rw-r--r-- cloud_scripts/etc/ipsec.conf
+# 80 -rw-r--r-- cloud_scripts/etc/systemd/journald.conf
+# 156 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-vss-daemon.service
+# 143 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service
+# 298 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud.service
+# 280 -rw-r--r-- cloud_scripts/etc/systemd/system/open-vm-tools.service
+# 257 -rw-r--r-- cloud_scripts/etc/systemd/system/baremetal-vr.service
+# 398 -rw-r--r-- cloud_scripts/etc/systemd/system/xe-daemon.service
+# 190 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service
+# 348 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-early-config.service
+# 244 -rw-r--r-- cloud_scripts/etc/systemd/system/[email protected]
+# 287 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-postinit.service
+# 1731 -rw-r--r-- cloud_scripts/etc/iptables/rules
+# 1601 -rw-r--r-- cloud_scripts/etc/iptables/iptables-consoleproxy
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-router
+# 1465 -rw-r--r-- cloud_scripts/etc/iptables/iptables-vpcrouter
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-dhcpsrvr
+# 1256 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-elbvm
+# 1375 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-secstorage
+# 1192 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-ilbvm
+# 897 -rw-r--r-- cloud_scripts/etc/iptables/rt_tables_init
+# 2049 -rw-r--r-- cloud_scripts/etc/sysctl.conf
+# 139 -rw-r--r-- cloud_scripts/etc/xl2tpd/xl2tpd.conf
+# 25321 -rw-r--r-- cloud_scripts/etc/dnsmasq.conf.tmpl
+# 107 -rwxr-xr-x cloud_scripts/etc/cron.daily/clear_cache
+# 477 -rw-r--r-- cloud_scripts/etc/vmware-tools/tools.conf
+# 507 -rw-r--r-- cloud_scripts/etc/logrotate.conf
+# 3603 -rw-r--r-- cloud_scripts/etc/ssh/sshd_config
+# 141 -rw-r--r-- cloud_scripts/etc/ppp/options.xl2tpd
+# 1234 -rw-r--r-- cloud_scripts/etc/ipsec.d/l2tp.conf
+# 2298 -rw-r--r-- cloud_scripts/etc/rsyslog.conf
+# 801 -rw-r--r-- cloud_scripts/etc/modprobe.d/pcspkr.conf
+# 807 -rw-r--r-- cloud_scripts/etc/modprobe.d/aesni_intel.conf
+# 183 -rwxr-xr-x cloud_scripts/etc/cron.hourly/clear_cache
+# 54 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/security.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 8 -rw-r--r-- cloud_scripts/etc/apache2/httpd.conf
+# 9955 -rw-r--r-- cloud_scripts/etc/apache2/vhost.template
+# 17942 -rw-r--r-- cloud_scripts/etc/vpcdnsmasq.conf
+# 80 -rw-r--r-- cloud_scripts/etc/ipsec.secrets
+# 272 -rw-r--r-- cloud_scripts/etc/logrotate.d/dnsmasq
+# 1124 -rw-r--r-- cloud_scripts/etc/logrotate.d/cloud
+# 263 -rw-r--r-- cloud_scripts/etc/logrotate.d/conntrackd
+# 922 -rw-r--r-- cloud_scripts/etc/logrotate.d/monitor
+# 935 -rw-r--r-- cloud_scripts/etc/logrotate.d/routerServiceMonitor
+# 98 -rw-r--r-- cloud_scripts/etc/logrotate.d/ppp
+# 148 -rw-r--r-- cloud_scripts/etc/logrotate.d/apache2
+# 517 -rw-r--r-- cloud_scripts/etc/logrotate.d/rsyslog
+# 194 -rw-r--r-- cloud_scripts/etc/logrotate.d/haproxy
+# 861 -rwxr-xr-x cloud_scripts/etc/profile.d/cloud.sh
+# 83 -rw-r--r-- cloud_scripts/etc/cloud-nic.rules
+# 483 -rw-r--r-- cloud_scripts/etc/haproxy/haproxy.cfg
+# 696320 -rw-r--r-- cloud_scripts/usr/share/cloud/cloud-scripts.tar
+# 253 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0003.json
+# 77 -rw-r--r-- cloud_scripts/opt/cloud/testdata/vmp0001.json
+# 267 -rw-r--r-- cloud_scripts/opt/cloud/testdata/gn0001.json
+# 250 -rw-r--r-- cloud_scripts/opt/cloud/testdata/dhcp0001.json
+# 1405 -rw-r--r-- cloud_scripts/opt/cloud/testdata/acl0001.json
+# 70 -rw-r--r-- cloud_scripts/opt/cloud/testdata/README
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0001.json
+# 1062 -rwxr-xr-x cloud_scripts/opt/cloud/testdata/test.sh
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0002.json
+# 380 -rw-r--r-- cloud_scripts/opt/cloud/testdata/s2s0001.json
+# 1177 -rw-r--r-- cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+# 1357 -rwxr-xr-x cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+# 853 -rwxr-xr-x cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+# 15888 -rw-r--r-- cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+# 2037 -rwxr-xr-x cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+# 822 -rw-r--r-- cloud_scripts/opt/cloud/templates/check_bumpup.sh
+# 1429 -rw-r--r-- cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+# 1792 -rwxr-xr-x cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+# 3239 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+# 3377 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+# 45920 -rwxr-xr-x cloud_scripts/opt/cloud/bin/configure.py
+# 1126 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmp.py
+# 1526 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterMonitorResults.sh
+# 2725 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vr_cfg.sh
+# 2346 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_snat.sh
+# 3043 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_staticroute.sh
+# 5587 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal-vr.py
+# 1141 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_firewallrules.py
+# 3478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/netusage.sh
+# 2294 -rwxr-xr-x cloud_scripts/opt/cloud/bin/monitor_service.sh
+# 2581 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_ip.py
+# 824 -rwxr-xr-x cloud_scripts/opt/cloud/bin/bumpup_priority.sh
+# 1706 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterAlerts.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 8234 -rwxr-xr-x cloud_scripts/opt/cloud/bin/loadbalancer.sh
+# 1717 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal_snat.sh
+# 1469 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vpnusers.py
+# 13492 -rwxr-xr-x cloud_scripts/opt/cloud/bin/merge.py
+# 2040 -rwxr-xr-x cloud_scripts/opt/cloud/bin/master.py
+# 1663 -rwxr-xr-x cloud_scripts/opt/cloud/bin/set_redundant.py
+# 1178 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checks2svpn.sh
+# 994 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_remoteaccessvpn.py
+# 952 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_staticroutes.py
+# 996 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_site2sitevpn.py
+# 7020 -rwxr-xr-x cloud_scripts/opt/cloud/bin/passwd_server_ip.py
+# 881 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_network_acl.py
+# 986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cleanup.sh
+# 1016 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_loadbalancer.py
+# 1849 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_func.sh
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 4723 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vmdata.py
+# 4478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_diagnostics_files.py
+# 1445 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkrouter.sh
+# 5644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ilb.sh
+# 924 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkbatchs2svpn.sh
+# 1525 -rwxr-xr-x cloud_scripts/opt/cloud/bin/savepassword.sh
+# 2632 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cloud-nic.sh
+# 8769 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipsectunnel.sh
+# 13401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipassoc.sh
+# 7961 -rwxr-xr-x cloud_scripts/opt/cloud/bin/line_edit.py
+# 1449 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_template_version.sh
+# 5136 -rwxr-xr-x cloud_scripts/opt/cloud/bin/update_config.py
+# 5502 -rwxr-xr-x cloud_scripts/opt/cloud/bin/edithosts.sh
+# 2012 -rwxr-xr-x cloud_scripts/opt/cloud/bin/diagnostics.py
+# 1541 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_monitorservice.py
+# 6986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpn_l2tp.sh
+# 1401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_guestnetwork.py
+# 892 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmdata.py
+# 4359 -rwxr-xr-x cloud_scripts/opt/cloud/bin/dnsmasq.sh
+# 1533 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_dhcp.py
+# 1045 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_cmdline.py
+# 253 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0003.json
+# 77 -rw-r--r-- cloud_scripts/opt/cloud/testdata/vmp0001.json
+# 267 -rw-r--r-- cloud_scripts/opt/cloud/testdata/gn0001.json
+# 250 -rw-r--r-- cloud_scripts/opt/cloud/testdata/dhcp0001.json
+# 1405 -rw-r--r-- cloud_scripts/opt/cloud/testdata/acl0001.json
+# 70 -rw-r--r-- cloud_scripts/opt/cloud/testdata/README
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0001.json
+# 1062 -rwxr-xr-x cloud_scripts/opt/cloud/testdata/test.sh
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0002.json
+# 380 -rw-r--r-- cloud_scripts/opt/cloud/testdata/s2s0001.json
+# 1177 -rw-r--r-- cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+# 1357 -rwxr-xr-x cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+# 853 -rwxr-xr-x cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+# 15888 -rw-r--r-- cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+# 2037 -rwxr-xr-x cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+# 822 -rw-r--r-- cloud_scripts/opt/cloud/templates/check_bumpup.sh
+# 1429 -rw-r--r-- cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+# 1792 -rwxr-xr-x cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+# 3239 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+# 3377 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+# 45920 -rwxr-xr-x cloud_scripts/opt/cloud/bin/configure.py
+# 1126 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmp.py
+# 1526 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterMonitorResults.sh
+# 2725 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vr_cfg.sh
+# 2346 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_snat.sh
+# 3043 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_staticroute.sh
+# 5587 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal-vr.py
+# 1141 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_firewallrules.py
+# 3478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/netusage.sh
+# 2294 -rwxr-xr-x cloud_scripts/opt/cloud/bin/monitor_service.sh
+# 2581 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_ip.py
+# 824 -rwxr-xr-x cloud_scripts/opt/cloud/bin/bumpup_priority.sh
+# 1706 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterAlerts.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 8234 -rwxr-xr-x cloud_scripts/opt/cloud/bin/loadbalancer.sh
+# 1717 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal_snat.sh
+# 1469 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vpnusers.py
+# 13492 -rwxr-xr-x cloud_scripts/opt/cloud/bin/merge.py
+# 2040 -rwxr-xr-x cloud_scripts/opt/cloud/bin/master.py
+# 1663 -rwxr-xr-x cloud_scripts/opt/cloud/bin/set_redundant.py
+# 1178 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checks2svpn.sh
+# 994 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_remoteaccessvpn.py
+# 952 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_staticroutes.py
+# 996 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_site2sitevpn.py
+# 7020 -rwxr-xr-x cloud_scripts/opt/cloud/bin/passwd_server_ip.py
+# 881 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_network_acl.py
+# 986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cleanup.sh
+# 1016 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_loadbalancer.py
+# 1849 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_func.sh
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 4723 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vmdata.py
+# 4478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_diagnostics_files.py
+# 1445 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkrouter.sh
+# 5644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ilb.sh
+# 924 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkbatchs2svpn.sh
+# 1525 -rwxr-xr-x cloud_scripts/opt/cloud/bin/savepassword.sh
+# 2632 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cloud-nic.sh
+# 8769 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipsectunnel.sh
+# 13401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipassoc.sh
+# 7961 -rwxr-xr-x cloud_scripts/opt/cloud/bin/line_edit.py
+# 1449 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_template_version.sh
+# 5136 -rwxr-xr-x cloud_scripts/opt/cloud/bin/update_config.py
+# 5502 -rwxr-xr-x cloud_scripts/opt/cloud/bin/edithosts.sh
+# 2012 -rwxr-xr-x cloud_scripts/opt/cloud/bin/diagnostics.py
+# 1541 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_monitorservice.py
+# 6986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpn_l2tp.sh
+# 1401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_guestnetwork.py
+# 892 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmdata.py
+# 4359 -rwxr-xr-x cloud_scripts/opt/cloud/bin/dnsmasq.sh
+# 1533 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_dhcp.py
+# 1045 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_cmdline.py
+# 253 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0003.json
+# 77 -rw-r--r-- cloud_scripts/opt/cloud/testdata/vmp0001.json
+# 267 -rw-r--r-- cloud_scripts/opt/cloud/testdata/gn0001.json
+# 250 -rw-r--r-- cloud_scripts/opt/cloud/testdata/dhcp0001.json
+# 1405 -rw-r--r-- cloud_scripts/opt/cloud/testdata/acl0001.json
+# 70 -rw-r--r-- cloud_scripts/opt/cloud/testdata/README
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0001.json
+# 1062 -rwxr-xr-x cloud_scripts/opt/cloud/testdata/test.sh
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0002.json
+# 380 -rw-r--r-- cloud_scripts/opt/cloud/testdata/s2s0001.json
+# 253 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0003.json
+# 77 -rw-r--r-- cloud_scripts/opt/cloud/testdata/vmp0001.json
+# 267 -rw-r--r-- cloud_scripts/opt/cloud/testdata/gn0001.json
+# 250 -rw-r--r-- cloud_scripts/opt/cloud/testdata/dhcp0001.json
+# 1405 -rw-r--r-- cloud_scripts/opt/cloud/testdata/acl0001.json
+# 70 -rw-r--r-- cloud_scripts/opt/cloud/testdata/README
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0001.json
+# 1062 -rwxr-xr-x cloud_scripts/opt/cloud/testdata/test.sh
+# 254 -rw-r--r-- cloud_scripts/opt/cloud/testdata/ips0002.json
+# 380 -rw-r--r-- cloud_scripts/opt/cloud/testdata/s2s0001.json
+# 1177 -rw-r--r-- cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+# 1357 -rwxr-xr-x cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+# 853 -rwxr-xr-x cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+# 15888 -rw-r--r-- cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+# 2037 -rwxr-xr-x cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+# 822 -rw-r--r-- cloud_scripts/opt/cloud/templates/check_bumpup.sh
+# 1429 -rw-r--r-- cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+# 1177 -rw-r--r-- cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+# 1357 -rwxr-xr-x cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+# 853 -rwxr-xr-x cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+# 15888 -rw-r--r-- cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+# 2037 -rwxr-xr-x cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+# 822 -rw-r--r-- cloud_scripts/opt/cloud/templates/check_bumpup.sh
+# 1429 -rw-r--r-- cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+# 1792 -rwxr-xr-x cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+# 3239 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+# 3377 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+# 45920 -rwxr-xr-x cloud_scripts/opt/cloud/bin/configure.py
+# 1126 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmp.py
+# 1526 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterMonitorResults.sh
+# 2725 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vr_cfg.sh
+# 2346 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_snat.sh
+# 3043 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_staticroute.sh
+# 5587 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal-vr.py
+# 1141 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_firewallrules.py
+# 3478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/netusage.sh
+# 2294 -rwxr-xr-x cloud_scripts/opt/cloud/bin/monitor_service.sh
+# 2581 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_ip.py
+# 824 -rwxr-xr-x cloud_scripts/opt/cloud/bin/bumpup_priority.sh
+# 1706 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterAlerts.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 8234 -rwxr-xr-x cloud_scripts/opt/cloud/bin/loadbalancer.sh
+# 1717 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal_snat.sh
+# 1469 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vpnusers.py
+# 13492 -rwxr-xr-x cloud_scripts/opt/cloud/bin/merge.py
+# 2040 -rwxr-xr-x cloud_scripts/opt/cloud/bin/master.py
+# 1663 -rwxr-xr-x cloud_scripts/opt/cloud/bin/set_redundant.py
+# 1178 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checks2svpn.sh
+# 994 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_remoteaccessvpn.py
+# 952 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_staticroutes.py
+# 996 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_site2sitevpn.py
+# 7020 -rwxr-xr-x cloud_scripts/opt/cloud/bin/passwd_server_ip.py
+# 881 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_network_acl.py
+# 986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cleanup.sh
+# 1016 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_loadbalancer.py
+# 1849 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_func.sh
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 4723 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vmdata.py
+# 4478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_diagnostics_files.py
+# 1445 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkrouter.sh
+# 5644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ilb.sh
+# 924 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkbatchs2svpn.sh
+# 1525 -rwxr-xr-x cloud_scripts/opt/cloud/bin/savepassword.sh
+# 2632 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cloud-nic.sh
+# 8769 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipsectunnel.sh
+# 13401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipassoc.sh
+# 7961 -rwxr-xr-x cloud_scripts/opt/cloud/bin/line_edit.py
+# 1449 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_template_version.sh
+# 5136 -rwxr-xr-x cloud_scripts/opt/cloud/bin/update_config.py
+# 5502 -rwxr-xr-x cloud_scripts/opt/cloud/bin/edithosts.sh
+# 2012 -rwxr-xr-x cloud_scripts/opt/cloud/bin/diagnostics.py
+# 1541 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_monitorservice.py
+# 6986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpn_l2tp.sh
+# 1401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_guestnetwork.py
+# 892 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmdata.py
+# 4359 -rwxr-xr-x cloud_scripts/opt/cloud/bin/dnsmasq.sh
+# 1533 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_dhcp.py
+# 1045 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_cmdline.py
+# 1792 -rwxr-xr-x cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+# 3239 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+# 3377 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+# 45920 -rwxr-xr-x cloud_scripts/opt/cloud/bin/configure.py
+# 1126 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmp.py
+# 1526 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterMonitorResults.sh
+# 2725 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vr_cfg.sh
+# 2346 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_snat.sh
+# 3043 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_staticroute.sh
+# 5587 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal-vr.py
+# 1141 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_firewallrules.py
+# 3478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/netusage.sh
+# 2294 -rwxr-xr-x cloud_scripts/opt/cloud/bin/monitor_service.sh
+# 2581 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_ip.py
+# 824 -rwxr-xr-x cloud_scripts/opt/cloud/bin/bumpup_priority.sh
+# 1706 -rwxr-xr-x cloud_scripts/opt/cloud/bin/getRouterAlerts.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 2122 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/postinit.sh
+# 2720 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/secstorage.sh
+# 1442 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/ilbvm.sh
+# 3885 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/vpcrouter.sh
+# 3355 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/router.sh
+# 1578 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/elbvm.sh
+# 7721 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/bootstrap.sh
+# 1658 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/consoleproxy.sh
+# 22472 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/common.sh
+# 1985 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/dhcpsrvr.sh
+# 2765 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/cloud-early-config
+# 1002 -rwxr-xr-x cloud_scripts/opt/cloud/bin/setup/default.sh
+# 8234 -rwxr-xr-x cloud_scripts/opt/cloud/bin/loadbalancer.sh
+# 1717 -rwxr-xr-x cloud_scripts/opt/cloud/bin/baremetal_snat.sh
+# 1469 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vpnusers.py
+# 13492 -rwxr-xr-x cloud_scripts/opt/cloud/bin/merge.py
+# 2040 -rwxr-xr-x cloud_scripts/opt/cloud/bin/master.py
+# 1663 -rwxr-xr-x cloud_scripts/opt/cloud/bin/set_redundant.py
+# 1178 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checks2svpn.sh
+# 994 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_remoteaccessvpn.py
+# 952 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_staticroutes.py
+# 996 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_site2sitevpn.py
+# 7020 -rwxr-xr-x cloud_scripts/opt/cloud/bin/passwd_server_ip.py
+# 881 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_network_acl.py
+# 986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cleanup.sh
+# 1016 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_loadbalancer.py
+# 1849 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpc_func.sh
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 8809 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDhcp.py
+# 16789 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRedundant.py
+# 7644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsHelper.py
+# 2545 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsGuestNetwork.py
+# 3681 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsMonitor.py
+# 11100 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsNetfilter.py
+# 4989 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRoute.py
+# 1655 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsStaticRoutes.py
+# 3393 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsLoadBalancer.py
+# 4159 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsApp.py
+# 6133 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsFile.py
+# 785 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/__init__.py
+# 29236 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsAddress.py
+# 2156 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsProcess.py
+# 3179 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsConfig.py
+# 4808 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsDatabag.py
+# 2192 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs/CsRule.py
+# 4723 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vmdata.py
+# 4478 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_diagnostics_files.py
+# 1445 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkrouter.sh
+# 5644 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ilb.sh
+# 924 -rwxr-xr-x cloud_scripts/opt/cloud/bin/checkbatchs2svpn.sh
+# 1525 -rwxr-xr-x cloud_scripts/opt/cloud/bin/savepassword.sh
+# 2632 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cloud-nic.sh
+# 8769 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipsectunnel.sh
+# 13401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/ipassoc.sh
+# 7961 -rwxr-xr-x cloud_scripts/opt/cloud/bin/line_edit.py
+# 1449 -rwxr-xr-x cloud_scripts/opt/cloud/bin/get_template_version.sh
+# 5136 -rwxr-xr-x cloud_scripts/opt/cloud/bin/update_config.py
+# 5502 -rwxr-xr-x cloud_scripts/opt/cloud/bin/edithosts.sh
+# 2012 -rwxr-xr-x cloud_scripts/opt/cloud/bin/diagnostics.py
+# 1541 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_monitorservice.py
+# 6986 -rwxr-xr-x cloud_scripts/opt/cloud/bin/vpn_l2tp.sh
+# 1401 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_guestnetwork.py
+# 892 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_vmdata.py
+# 4359 -rwxr-xr-x cloud_scripts/opt/cloud/bin/dnsmasq.sh
+# 1533 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_dhcp.py
+# 1045 -rwxr-xr-x cloud_scripts/opt/cloud/bin/cs_cmdline.py
+# 1454 -rwxr-xr-x cloud_scripts/root/reconfigLB.sh
+# 12747 -rwxr-xr-x cloud_scripts/root/monitorServices.py
+# 3349 -rw-r--r-- cloud_scripts/root/health_checks/iptables_check.py
+# 1966 -rw-r--r-- cloud_scripts/root/health_checks/memory_usage_check.py
+# 5274 -rw-r--r-- cloud_scripts/root/health_checks/haproxy_check.py
+# 2773 -rw-r--r-- cloud_scripts/root/health_checks/router_version_check.py
+# 1865 -rw-r--r-- cloud_scripts/root/health_checks/utility/sharedFunctions.py
+# 864 -rw-r--r-- cloud_scripts/root/health_checks/utility/__init__.py
+# 1626 -rw-r--r-- cloud_scripts/root/health_checks/disk_space_check.py
+# 1869 -rw-r--r-- cloud_scripts/root/health_checks/gateways_check.py
+# 942 -rw-r--r-- cloud_scripts/root/health_checks/__init__.py
+# 1972 -rw-r--r-- cloud_scripts/root/health_checks/dns_check.py
+# 2078 -rw-r--r-- cloud_scripts/root/health_checks/cpu_usage_check.py
+# 2386 -rwxr-xr-x cloud_scripts/root/health_checks/dhcp_check.py
+# 3567 -rw-r--r-- cloud_scripts/root/func.sh
+# 1461 -rwxr-xr-x cloud_scripts/root/clearUsageRules.sh
+# 1454 -rwxr-xr-x cloud_scripts/root/reconfigLB.sh
+# 12747 -rwxr-xr-x cloud_scripts/root/monitorServices.py
+# 3349 -rw-r--r-- cloud_scripts/root/health_checks/iptables_check.py
+# 1966 -rw-r--r-- cloud_scripts/root/health_checks/memory_usage_check.py
+# 5274 -rw-r--r-- cloud_scripts/root/health_checks/haproxy_check.py
+# 2773 -rw-r--r-- cloud_scripts/root/health_checks/router_version_check.py
+# 1865 -rw-r--r-- cloud_scripts/root/health_checks/utility/sharedFunctions.py
+# 864 -rw-r--r-- cloud_scripts/root/health_checks/utility/__init__.py
+# 1626 -rw-r--r-- cloud_scripts/root/health_checks/disk_space_check.py
+# 1869 -rw-r--r-- cloud_scripts/root/health_checks/gateways_check.py
+# 942 -rw-r--r-- cloud_scripts/root/health_checks/__init__.py
+# 1972 -rw-r--r-- cloud_scripts/root/health_checks/dns_check.py
+# 2078 -rw-r--r-- cloud_scripts/root/health_checks/cpu_usage_check.py
+# 2386 -rwxr-xr-x cloud_scripts/root/health_checks/dhcp_check.py
+# 3349 -rw-r--r-- cloud_scripts/root/health_checks/iptables_check.py
+# 1966 -rw-r--r-- cloud_scripts/root/health_checks/memory_usage_check.py
+# 5274 -rw-r--r-- cloud_scripts/root/health_checks/haproxy_check.py
+# 2773 -rw-r--r-- cloud_scripts/root/health_checks/router_version_check.py
+# 1865 -rw-r--r-- cloud_scripts/root/health_checks/utility/sharedFunctions.py
+# 864 -rw-r--r-- cloud_scripts/root/health_checks/utility/__init__.py
+# 1865 -rw-r--r-- cloud_scripts/root/health_checks/utility/sharedFunctions.py
+# 864 -rw-r--r-- cloud_scripts/root/health_checks/utility/__init__.py
+# 1626 -rw-r--r-- cloud_scripts/root/health_checks/disk_space_check.py
+# 1869 -rw-r--r-- cloud_scripts/root/health_checks/gateways_check.py
+# 942 -rw-r--r-- cloud_scripts/root/health_checks/__init__.py
+# 1972 -rw-r--r-- cloud_scripts/root/health_checks/dns_check.py
+# 2078 -rw-r--r-- cloud_scripts/root/health_checks/cpu_usage_check.py
+# 2386 -rwxr-xr-x cloud_scripts/root/health_checks/dhcp_check.py
+# 3567 -rw-r--r-- cloud_scripts/root/func.sh
+# 1461 -rwxr-xr-x cloud_scripts/root/clearUsageRules.sh
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 1425 -rw-r--r-- cloud_scripts/var/www/html/latest/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 17 -rw-r--r-- cloud_scripts/var/www/html/userdata/.htaccess
+# 94 -rw-r--r-- cloud_scripts/etc/ipsec.conf
+# 80 -rw-r--r-- cloud_scripts/etc/systemd/journald.conf
+# 156 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-vss-daemon.service
+# 143 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service
+# 298 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud.service
+# 280 -rw-r--r-- cloud_scripts/etc/systemd/system/open-vm-tools.service
+# 257 -rw-r--r-- cloud_scripts/etc/systemd/system/baremetal-vr.service
+# 398 -rw-r--r-- cloud_scripts/etc/systemd/system/xe-daemon.service
+# 190 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service
+# 348 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-early-config.service
+# 244 -rw-r--r-- cloud_scripts/etc/systemd/system/[email protected]
+# 287 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-postinit.service
+# 1731 -rw-r--r-- cloud_scripts/etc/iptables/rules
+# 1601 -rw-r--r-- cloud_scripts/etc/iptables/iptables-consoleproxy
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-router
+# 1465 -rw-r--r-- cloud_scripts/etc/iptables/iptables-vpcrouter
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-dhcpsrvr
+# 1256 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-elbvm
+# 1375 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-secstorage
+# 1192 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-ilbvm
+# 897 -rw-r--r-- cloud_scripts/etc/iptables/rt_tables_init
+# 2049 -rw-r--r-- cloud_scripts/etc/sysctl.conf
+# 139 -rw-r--r-- cloud_scripts/etc/xl2tpd/xl2tpd.conf
+# 25321 -rw-r--r-- cloud_scripts/etc/dnsmasq.conf.tmpl
+# 107 -rwxr-xr-x cloud_scripts/etc/cron.daily/clear_cache
+# 477 -rw-r--r-- cloud_scripts/etc/vmware-tools/tools.conf
+# 507 -rw-r--r-- cloud_scripts/etc/logrotate.conf
+# 3603 -rw-r--r-- cloud_scripts/etc/ssh/sshd_config
+# 141 -rw-r--r-- cloud_scripts/etc/ppp/options.xl2tpd
+# 1234 -rw-r--r-- cloud_scripts/etc/ipsec.d/l2tp.conf
+# 2298 -rw-r--r-- cloud_scripts/etc/rsyslog.conf
+# 801 -rw-r--r-- cloud_scripts/etc/modprobe.d/pcspkr.conf
+# 807 -rw-r--r-- cloud_scripts/etc/modprobe.d/aesni_intel.conf
+# 183 -rwxr-xr-x cloud_scripts/etc/cron.hourly/clear_cache
+# 54 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/security.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 8 -rw-r--r-- cloud_scripts/etc/apache2/httpd.conf
+# 9955 -rw-r--r-- cloud_scripts/etc/apache2/vhost.template
+# 17942 -rw-r--r-- cloud_scripts/etc/vpcdnsmasq.conf
+# 80 -rw-r--r-- cloud_scripts/etc/ipsec.secrets
+# 272 -rw-r--r-- cloud_scripts/etc/logrotate.d/dnsmasq
+# 1124 -rw-r--r-- cloud_scripts/etc/logrotate.d/cloud
+# 263 -rw-r--r-- cloud_scripts/etc/logrotate.d/conntrackd
+# 922 -rw-r--r-- cloud_scripts/etc/logrotate.d/monitor
+# 935 -rw-r--r-- cloud_scripts/etc/logrotate.d/routerServiceMonitor
+# 98 -rw-r--r-- cloud_scripts/etc/logrotate.d/ppp
+# 148 -rw-r--r-- cloud_scripts/etc/logrotate.d/apache2
+# 517 -rw-r--r-- cloud_scripts/etc/logrotate.d/rsyslog
+# 194 -rw-r--r-- cloud_scripts/etc/logrotate.d/haproxy
+# 861 -rwxr-xr-x cloud_scripts/etc/profile.d/cloud.sh
+# 83 -rw-r--r-- cloud_scripts/etc/cloud-nic.rules
+# 483 -rw-r--r-- cloud_scripts/etc/haproxy/haproxy.cfg
+# 94 -rw-r--r-- cloud_scripts/etc/ipsec.conf
+# 80 -rw-r--r-- cloud_scripts/etc/systemd/journald.conf
+# 156 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-vss-daemon.service
+# 143 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service
+# 298 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud.service
+# 280 -rw-r--r-- cloud_scripts/etc/systemd/system/open-vm-tools.service
+# 257 -rw-r--r-- cloud_scripts/etc/systemd/system/baremetal-vr.service
+# 398 -rw-r--r-- cloud_scripts/etc/systemd/system/xe-daemon.service
+# 190 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service
+# 348 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-early-config.service
+# 244 -rw-r--r-- cloud_scripts/etc/systemd/system/[email protected]
+# 287 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-postinit.service
+# 80 -rw-r--r-- cloud_scripts/etc/systemd/journald.conf
+# 156 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-vss-daemon.service
+# 143 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service
+# 298 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud.service
+# 280 -rw-r--r-- cloud_scripts/etc/systemd/system/open-vm-tools.service
+# 257 -rw-r--r-- cloud_scripts/etc/systemd/system/baremetal-vr.service
+# 398 -rw-r--r-- cloud_scripts/etc/systemd/system/xe-daemon.service
+# 190 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service
+# 348 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-early-config.service
+# 244 -rw-r--r-- cloud_scripts/etc/systemd/system/[email protected]
+# 287 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-postinit.service
+# 156 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-vss-daemon.service
+# 143 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-kvp-daemon.service
+# 298 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud.service
+# 280 -rw-r--r-- cloud_scripts/etc/systemd/system/open-vm-tools.service
+# 257 -rw-r--r-- cloud_scripts/etc/systemd/system/baremetal-vr.service
+# 398 -rw-r--r-- cloud_scripts/etc/systemd/system/xe-daemon.service
+# 190 -rw-r--r-- cloud_scripts/etc/systemd/system/hyperv-daemons.hv-fcopy-daemon.service
+# 348 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-early-config.service
+# 244 -rw-r--r-- cloud_scripts/etc/systemd/system/[email protected]
+# 287 -rw-r--r-- cloud_scripts/etc/systemd/system/cloud-postinit.service
+# 1731 -rw-r--r-- cloud_scripts/etc/iptables/rules
+# 1601 -rw-r--r-- cloud_scripts/etc/iptables/iptables-consoleproxy
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-router
+# 1465 -rw-r--r-- cloud_scripts/etc/iptables/iptables-vpcrouter
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-dhcpsrvr
+# 1256 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-elbvm
+# 1375 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-secstorage
+# 1192 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-ilbvm
+# 897 -rw-r--r-- cloud_scripts/etc/iptables/rt_tables_init
+# 1731 -rw-r--r-- cloud_scripts/etc/iptables/rules
+# 1601 -rw-r--r-- cloud_scripts/etc/iptables/iptables-consoleproxy
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-router
+# 1465 -rw-r--r-- cloud_scripts/etc/iptables/iptables-vpcrouter
+# 2348 -rw-r--r-- cloud_scripts/etc/iptables/iptables-dhcpsrvr
+# 1256 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-elbvm
+# 1375 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-secstorage
+# 1192 -rwxr-xr-x cloud_scripts/etc/iptables/iptables-ilbvm
+# 897 -rw-r--r-- cloud_scripts/etc/iptables/rt_tables_init
+# 2049 -rw-r--r-- cloud_scripts/etc/sysctl.conf
+# 139 -rw-r--r-- cloud_scripts/etc/xl2tpd/xl2tpd.conf
+# 139 -rw-r--r-- cloud_scripts/etc/xl2tpd/xl2tpd.conf
+# 25321 -rw-r--r-- cloud_scripts/etc/dnsmasq.conf.tmpl
+# 107 -rwxr-xr-x cloud_scripts/etc/cron.daily/clear_cache
+# 107 -rwxr-xr-x cloud_scripts/etc/cron.daily/clear_cache
+# 477 -rw-r--r-- cloud_scripts/etc/vmware-tools/tools.conf
+# 477 -rw-r--r-- cloud_scripts/etc/vmware-tools/tools.conf
+# 507 -rw-r--r-- cloud_scripts/etc/logrotate.conf
+# 3603 -rw-r--r-- cloud_scripts/etc/ssh/sshd_config
+# 3603 -rw-r--r-- cloud_scripts/etc/ssh/sshd_config
+# 141 -rw-r--r-- cloud_scripts/etc/ppp/options.xl2tpd
+# 141 -rw-r--r-- cloud_scripts/etc/ppp/options.xl2tpd
+# 1234 -rw-r--r-- cloud_scripts/etc/ipsec.d/l2tp.conf
+# 1234 -rw-r--r-- cloud_scripts/etc/ipsec.d/l2tp.conf
+# 2298 -rw-r--r-- cloud_scripts/etc/rsyslog.conf
+# 801 -rw-r--r-- cloud_scripts/etc/modprobe.d/pcspkr.conf
+# 807 -rw-r--r-- cloud_scripts/etc/modprobe.d/aesni_intel.conf
+# 801 -rw-r--r-- cloud_scripts/etc/modprobe.d/pcspkr.conf
+# 807 -rw-r--r-- cloud_scripts/etc/modprobe.d/aesni_intel.conf
+# 183 -rwxr-xr-x cloud_scripts/etc/cron.hourly/clear_cache
+# 183 -rwxr-xr-x cloud_scripts/etc/cron.hourly/clear_cache
+# 54 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/security.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 8 -rw-r--r-- cloud_scripts/etc/apache2/httpd.conf
+# 9955 -rw-r--r-- cloud_scripts/etc/apache2/vhost.template
+# 54 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/security.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 54 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/security.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 669 -rw-r--r-- cloud_scripts/etc/apache2/conf-enabled/mods-enabled/mpm_event.conf
+# 8 -rw-r--r-- cloud_scripts/etc/apache2/httpd.conf
+# 9955 -rw-r--r-- cloud_scripts/etc/apache2/vhost.template
+# 17942 -rw-r--r-- cloud_scripts/etc/vpcdnsmasq.conf
+# 80 -rw-r--r-- cloud_scripts/etc/ipsec.secrets
+# 272 -rw-r--r-- cloud_scripts/etc/logrotate.d/dnsmasq
+# 1124 -rw-r--r-- cloud_scripts/etc/logrotate.d/cloud
+# 263 -rw-r--r-- cloud_scripts/etc/logrotate.d/conntrackd
+# 922 -rw-r--r-- cloud_scripts/etc/logrotate.d/monitor
+# 935 -rw-r--r-- cloud_scripts/etc/logrotate.d/routerServiceMonitor
+# 98 -rw-r--r-- cloud_scripts/etc/logrotate.d/ppp
+# 148 -rw-r--r-- cloud_scripts/etc/logrotate.d/apache2
+# 517 -rw-r--r-- cloud_scripts/etc/logrotate.d/rsyslog
+# 194 -rw-r--r-- cloud_scripts/etc/logrotate.d/haproxy
+# 272 -rw-r--r-- cloud_scripts/etc/logrotate.d/dnsmasq
+# 1124 -rw-r--r-- cloud_scripts/etc/logrotate.d/cloud
+# 263 -rw-r--r-- cloud_scripts/etc/logrotate.d/conntrackd
+# 922 -rw-r--r-- cloud_scripts/etc/logrotate.d/monitor
+# 935 -rw-r--r-- cloud_scripts/etc/logrotate.d/routerServiceMonitor
+# 98 -rw-r--r-- cloud_scripts/etc/logrotate.d/ppp
+# 148 -rw-r--r-- cloud_scripts/etc/logrotate.d/apache2
+# 517 -rw-r--r-- cloud_scripts/etc/logrotate.d/rsyslog
+# 194 -rw-r--r-- cloud_scripts/etc/logrotate.d/haproxy
+# 861 -rwxr-xr-x cloud_scripts/etc/profile.d/cloud.sh
+# 861 -rwxr-xr-x cloud_scripts/etc/profile.d/cloud.sh
+# 83 -rw-r--r-- cloud_scripts/etc/cloud-nic.rules
+# 483 -rw-r--r-- cloud_scripts/etc/haproxy/haproxy.cfg
+# 483 -rw-r--r-- cloud_scripts/etc/haproxy/haproxy.cfg
+# 696320 -rw-r--r-- cloud_scripts/usr/share/cloud/cloud-scripts.tar
+# 696320 -rw-r--r-- cloud_scripts/usr/share/cloud/cloud-scripts.tar
+# 696320 -rw-r--r-- cloud_scripts/usr/share/cloud/cloud-scripts.tar
+# 696320 -rw-r--r-- cloud_scripts/usr/share/cloud/cloud-scripts.tar
+#
+MD5SUM=${MD5SUM-md5sum}
+f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
+test -n "${f}" && md5check=true || md5check=false
+${md5check} || \
+ echo 'Note: not verifying md5sums. Consider installing GNU coreutils.'
+if test "X$1" = "X-c"
+then keep_file=''
+else keep_file=true
+fi
+echo=echo
+save_IFS="${IFS}"
+IFS="${IFS}:"
+gettext_dir=
+locale_dir=
+set_echo=false
+
+for dir in $PATH
+do
+ if test -f $dir/gettext \
+ && ($dir/gettext --version >/dev/null 2>&1)
+ then
+ case `$dir/gettext --version 2>&1 | sed 1q` in
+ *GNU*) gettext_dir=$dir
+ set_echo=true
+ break ;;
+ esac
+ fi
+done
+
+if ${set_echo}
+then
+ set_echo=false
+ for dir in $PATH
+ do
+ if test -f $dir/shar \
+ && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
+ then
+ locale_dir=`$dir/shar --print-text-domain-dir`
+ set_echo=true
+ break
+ fi
+ done
+
+ if ${set_echo}
+ then
+ TEXTDOMAINDIR=$locale_dir
+ export TEXTDOMAINDIR
+ TEXTDOMAIN=sharutils
+ export TEXTDOMAIN
+ echo="$gettext_dir/gettext -s"
+ fi
+fi
+IFS="$save_IFS"
+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
+then if (echo -n test; echo 1,2,3) | grep n >/dev/null
+ then shar_n= shar_c='
+'
+ else shar_n=-n shar_c= ; fi
+else shar_n= shar_c='\c' ; fi
+f=shar-touch.$$
+st1=200112312359.59
+st2=123123592001.59
+st2tr=123123592001.5 # old SysV 14-char limit
+st3=1231235901
+
+if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
+ test ! -f ${st1} && test -f ${f}; then
+ shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
+
+elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
+ test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
+ shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
+
+elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
+ test ! -f ${st3} && test -f ${f}; then
+ shar_touch='touch -am $3$4$5$6$2 "$8"'
+
+else
+ shar_touch=:
+ echo
+ ${echo} 'WARNING: not restoring timestamps. Consider getting and
+installing GNU '\''touch'\'', distributed in GNU coreutils...'
+ echo
+fi
+rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
+#
+if test ! -d ${lock_dir} ; then :
+else ${echo} "lock directory ${lock_dir} exists"
+ exit 1
+fi
+if mkdir ${lock_dir}
+then ${echo} "x - created lock directory ${lock_dir}."
+else ${echo} "x - failed to create lock directory ${lock_dir}."
+ exit 1
+fi
+# ============= cloud_scripts/opt/cloud/testdata/ips0003.json ==============
+if test ! -d 'cloud_scripts'; then
+ mkdir 'cloud_scripts'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts."
+else ${echo} "x - failed to create directory cloud_scripts."
+ exit 1
+fi
+fi
+if test ! -d 'cloud_scripts/opt'; then
+ mkdir 'cloud_scripts/opt'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt."
+else ${echo} "x - failed to create directory cloud_scripts/opt."
+ exit 1
+fi
+fi
+if test ! -d 'cloud_scripts/opt/cloud'; then
+ mkdir 'cloud_scripts/opt/cloud'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud."
+ exit 1
+fi
+fi
+if test ! -d 'cloud_scripts/opt/cloud/testdata'; then
+ mkdir 'cloud_scripts/opt/cloud/testdata'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud/testdata."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud/testdata."
+ exit 1
+fi
+fi
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/ips0003.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/ips0003.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/ips0003.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/ips0003.json' &&
+{"ip_address":
+[{"public_ip":"10.0.3.10",
+"source_nat":true,
+"add":true,
+"one_to_one_nat":false,
+"first_i_p":false,
+"gateway":"10.0.3.1",
+"netmask":"255.255.255.0",
+"vif_mac_address":"06:cb:aa:00:00:03",
+"nic_dev_id":2,
+"new_nic":false}],
+"type":"ips"}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/ips0003.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/ips0003.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/ips0003.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/ips0003.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+e8113ca4dc70734a2e07e4cd5aa817e7 cloud_scripts/opt/cloud/testdata/ips0003.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/ips0003.json'` -ne 253 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/ips0003.json' is not 253"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/vmp0001.json ==============
+if test ! -d 'cloud_scripts/opt/cloud/testdata'; then
+ mkdir 'cloud_scripts/opt/cloud/testdata'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud/testdata."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud/testdata."
+ exit 1
+fi
+fi
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/vmp0001.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/vmp0001.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/vmp0001.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' | uudecode &&
+begin 600 cloud_scripts/opt/cloud/testdata/vmp0001.json
+M>R)I<%]A9&1R97-S(CHB,3/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/vmp0001.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+a3150c6241b311cbfc2180be23d1ddee cloud_scripts/opt/cloud/testdata/vmp0001.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/vmp0001.json'` -ne 77 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/vmp0001.json' is not 77"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/gn0001.json ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/gn0001.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/gn0001.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/gn0001.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/gn0001.json' &&
+{"add":true,
+"mac_address":"02:00:56:36:00:02",
+"device":"eth3",
+"router_guest_ip":"172.16.1.1",
+"router_guest_gateway":"172.16.1.0",
+"router_guest_netmask":"255.255.255.0",
+"cidr":"24",
+"dns":"8.8.8.8,8.8.8.4",
+"domain_name":"devcloud.local",
+"type":"guestnetwork"}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/gn0001.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/gn0001.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/gn0001.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/gn0001.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+e790842388eb0a3f86ea0dbbcf4608eb cloud_scripts/opt/cloud/testdata/gn0001.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/gn0001.json'` -ne 267 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/gn0001.json' is not 267"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/dhcp0001.json ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/dhcp0001.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/dhcp0001.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/dhcp0001.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/dhcp0001.json' &&
+{
+X "host_name":"VM-58976c22-0832-451e-9ab2-039e9f27e415",
+X "mac_address":"02:00:26:c3:00:02",
+X "ipv4_address":"172.16.1.102",
+X "ipv6_duid":"00:03:00:01:02:00:26:c3:00:02",
+X "default_gateway":"172.16.1.1",
+X "default_entry":true,
+X "type":"dhcpentry"
+}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/dhcp0001.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/dhcp0001.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/dhcp0001.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/dhcp0001.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+0f44da4132b56f2ece9b36bab3213f28 cloud_scripts/opt/cloud/testdata/dhcp0001.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/dhcp0001.json'` -ne 250 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/dhcp0001.json' is not 250"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/acl0001.json ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/acl0001.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/acl0001.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/acl0001.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/acl0001.json' &&
+{
+X "eth2": {
+X "device": "eth2",
+X "egress_rules": [
+X {
+X "allowed": false,
+X "cidr": "10.0.6.0/8",
+X "first_port": 60,
+X "last_port": 60,
+X "type": "tcp"
+X }
+X ],
+X "ingress_rules": [
+X {
+X "allowed": true,
+X "cidr": "10.0.1.0/8",
+X "protocol": 41,
+X "type": "protocol"
+X },
+X {
+X "allowed": true,
+X "cidr": "10.0.4.0/8",
+X "type": "all"
+X },
+X {
+X "allowed": true,
+X "cidr": "10.0.3.0/8",
+X "icmp_code": -1,
+X "icmp_type": -1,
+X "type": "icmp"
+X },
+X {
+X "allowed": true,
+X "cidr": "10.0.2.0/8",
+X "first_port": 40,
+X "last_port": 40,
+X "type": "udp"
+X },
+X {
+X "allowed": true,
+X "cidr": "10.0.1.0/8",
+X "first_port": 30,
+X "last_port": 30,
+X "type": "tcp"
+X }
+X ],
+X "mac_address": "02:00:0d:7b:00:04",
+X "nic_ip": "172.16.1.1",
+X "nic_netmask": "24",
+X "private_gateway_acl": false,
+X "type": "networkacl"
+X },
+X "id": "networkacl"
+}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/acl0001.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/acl0001.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/acl0001.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/acl0001.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+1ea2a1b5d6a98bc6c0fc2375de284b17 cloud_scripts/opt/cloud/testdata/acl0001.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/acl0001.json'` -ne 1405 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/acl0001.json' is not 1405"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/README ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/README'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/README (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/README (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/README' &&
+Json file used to test the provisioning scripts on virtual appliances
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/README'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/README'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/README failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/README': 'MD5 check failed'
+ ) << \SHAR_EOF
+13e5ecf4d998c3df3cf53485d6f46ee1 cloud_scripts/opt/cloud/testdata/README
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/README'` -ne 70 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/README' is not 70"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/ips0001.json ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/ips0001.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/ips0001.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/ips0001.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/ips0001.json' &&
+{"ip_address":
+[{"public_ip":"10.0.2.102",
+"source_nat":true,
+"add":true,
+"one_to_one_nat":false,
+"first_i_p":false,
+"gateway":"10.0.2.1",
+"netmask":"255.255.255.0",
+"vif_mac_address":"06:cb:aa:00:00:03",
+"nic_dev_id":1,
+"new_nic":false}],
+"type":"ips"}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/ips0001.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/ips0001.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/ips0001.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/ips0001.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+6f7337aaa605096eef31300afba0f4af cloud_scripts/opt/cloud/testdata/ips0001.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/ips0001.json'` -ne 254 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/ips0001.json' is not 254"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/test.sh ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/test.sh'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/test.sh (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/test.sh (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/test.sh' &&
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+cp /opt/cloud/testdata/* /etc/cloudstack
+/opt/cloud/bin/update_config.py cmd_line.json
+/opt/cloud/bin/update_config.py gn0001.json
+/opt/cloud/bin/update_config.py ips0001.json
+/opt/cloud/bin/update_config.py ips0002.json
+/opt/cloud/bin/update_config.py ips0003.json
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/test.sh'
+ eval "${shar_touch}") && \
+ chmod 0755 'cloud_scripts/opt/cloud/testdata/test.sh'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/test.sh failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/test.sh': 'MD5 check failed'
+ ) << \SHAR_EOF
+7fbb72051fd8d3b66fd481aa51d3debe cloud_scripts/opt/cloud/testdata/test.sh
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/test.sh'` -ne 1062 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/test.sh' is not 1062"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/ips0002.json ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/ips0002.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/ips0002.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/ips0002.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/ips0002.json' &&
+{"ip_address":
+[{"public_ip":"10.0.2.103",
+"source_nat":true,
+"add":true,
+"one_to_one_nat":false,
+"first_i_p":false,
+"gateway":"10.0.2.1",
+"netmask":"255.255.255.0",
+"vif_mac_address":"06:cb:aa:00:00:03",
+"nic_dev_id":1,
+"new_nic":false}],
+"type":"ips"}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/ips0002.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/ips0002.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/ips0002.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/ips0002.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+12aec2bca1d88c499ee0af39c2e20ea1 cloud_scripts/opt/cloud/testdata/ips0002.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/ips0002.json'` -ne 254 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/ips0002.json' is not 254"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/testdata/s2s0001.json ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/testdata/s2s0001.json'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/testdata/s2s0001.json (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/testdata/s2s0001.json (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/testdata/s2s0001.json' &&
+{
+X "local_public_ip":"172.16.1.1",
+X "local_guest_cidr":"172.16.1.0/24",
+X "local_public_gateway":"172.16.1.1",
+X "peer_gateway_ip":"10.200.200.1",
+X "peer_guest_cidr_list":"10.0.0.0/24",
+X "esp_policy":"3des-md5",
+X "ike_policy":"3des-md5",
+X "ipsec_psk":"vpnblabla",
+X "ike_lifetime":86400,
+X "esp_lifetime":3600,
+X "create":true,
+X "dpd":false,
+X "passive":false,
+X "type":"site2sitevpn"
+}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/testdata/s2s0001.json'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/testdata/s2s0001.json'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/testdata/s2s0001.json failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/testdata/s2s0001.json': 'MD5 check failed'
+ ) << \SHAR_EOF
+ff589cb7ab7721a270f4cc703719c917 cloud_scripts/opt/cloud/testdata/s2s0001.json
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/testdata/s2s0001.json'` -ne 380 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/testdata/s2s0001.json' is not 380"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ ==============
+if test ! -d 'cloud_scripts/opt/cloud/templates'; then
+ mkdir 'cloud_scripts/opt/cloud/templates'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud/templates."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud/templates."
+ exit 1
+fi
+fi
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ' &&
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+ip link|grep BROADCAST|grep -v eth0|grep -v eth1|cut -d ":" -f 2 > /tmp/iflist
+while read i
+do
+X ip addr show $i|grep "inet " > /tmp/iplist_$i
+X while read line
+X do
+X ip=`echo $line|cut -d " " -f 2|cut -d "/" -f 1`
+X arping -I $i -A $ip -c 1 >> [RROUTER_LOG] 2>&1
+X arping -I $i -A $ip -c 1 >> [RROUTER_LOG] 2>&1
+X done < /tmp/iplist_$i
+done < /tmp/iflist
+sleep 1
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ': 'MD5 check failed'
+ ) << \SHAR_EOF
+023d994f54c0955f160f127c1d85d6ae cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ'` -ne 1177 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/arping_gateways.sh.templ' is not 1177"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/checkrouter.sh.templ ==============
+if test ! -d 'cloud_scripts/opt/cloud/templates'; then
+ mkdir 'cloud_scripts/opt/cloud/templates'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud/templates."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud/templates."
+ exit 1
+fi
+fi
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/checkrouter.sh.templ (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/checkrouter.sh.templ (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ' &&
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+STATUS=UNKNOWN
+INTERFACE=eth1
+ROUTER_TYPE=$(cat /etc/cloudstack/cmdline.json | grep type | awk '{print $2;}' | sed -e 's/[,\"]//g')
+if [ $ROUTER_TYPE = "router" ]
+then
+X ROUTER_STATE=$(ip addr | grep eth0 | grep inet | wc -l | xargs bash -c 'if [ $0 == 2 ]; then echo "MASTER"; else echo "BACKUP"; fi')
+X STATUS=$ROUTER_STATE
+else
+X ROUTER_STATE=$(ip addr | grep $INTERFACE | grep state | awk '{print $9;}')
+X if [ $ROUTER_STATE = "UP" ]
+X then
+X STATUS=MASTER
+X elif [ $ROUTER_STATE = "DOWN" ]
+X then
+X STATUS=BACKUP
+X fi
+fi
+X
+echo "Status: ${STATUS}"
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ'
+ eval "${shar_touch}") && \
+ chmod 0755 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/checkrouter.sh.templ failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ': 'MD5 check failed'
+ ) << \SHAR_EOF
+bbd331057760019d05ead01eec5e42aa cloud_scripts/opt/cloud/templates/checkrouter.sh.templ
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ'` -ne 1357 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/checkrouter.sh.templ' is not 1357"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/heartbeat.sh.templ ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/heartbeat.sh.templ (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/heartbeat.sh.templ (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ' &&
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+t=$(date +%s)
+echo $t > /ramdisk/rrouter/keepalived.ts
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ'
+ eval "${shar_touch}") && \
+ chmod 0755 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/heartbeat.sh.templ failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ': 'MD5 check failed'
+ ) << \SHAR_EOF
+c006a52c775a0418870c0c50f0131ee7 cloud_scripts/opt/cloud/templates/heartbeat.sh.templ
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ'` -ne 853 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/heartbeat.sh.templ' is not 853"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/conntrackd.conf.templ ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/conntrackd.conf.templ (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/conntrackd.conf.templ (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ' &&
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# Synchronizer settings
+#
+Sync {
+X Mode FTFW {
+X #
+X # Size of the resend queue (in objects). This is the maximum
+X # number of objects that can be stored waiting to be confirmed
+X # via acknoledgment. If you keep this value low, the daemon
+X # will have less chances to recover state-changes under message
+X # omission. On the other hand, if you keep this value high,
+X # the daemon will consume more memory to store dead objects.
+X # Default is 131072 objects.
+X #
+X # ResendQueueSize 131072
+X
+X #
+X # This parameter allows you to set an initial fixed timeout
+X # for the committed entries when this node goes from backup
+X # to primary. This mechanism provides a way to purge entries
+X # that were not recovered appropriately after the specified
+X # fixed timeout. If you set a low value, TCP entries in
+X # Established states with no traffic may hang. For example,
+X # an SSH connection without KeepAlive enabled. If not set,
+X # the daemon uses an approximate timeout value calculation
+X # mechanism. By default, this option is not set.
+X #
+X # CommitTimeout 180
+X
+X #
+X # If the firewall replica goes from primary to backup,
+X # the conntrackd -t command is invoked in the script.
+X # This command schedules a flush of the table in N seconds.
+X # This is useful to purge the connection tracking table of
+X # zombie entries and avoid clashes with old entries if you
+X # trigger several consecutive hand-overs. Default is 60 seconds.
+X #
+X # PurgeTimeout 60
+X
+X # Set the acknowledgement window size. If you decrease this
+X # value, the number of acknowlegdments increases. More
+X # acknowledgments means more overhead as conntrackd has to
+X # handle more control messages. On the other hand, if you
+X # increase this value, the resend queue gets more populated.
+X # This results in more overhead in the queue releasing.
+X # The following value is based on some practical experiments
+X # measuring the cycles spent by the acknowledgment handling
+X # with oprofile. If not set, default window size is 300.
+X #
+X # ACKWindowSize 300
+X
+X #
+X # This clause allows you to disable the external cache. Thus,
+X # the state entries are directly injected into the kernel
+X # conntrack table. As a result, you save memory in user-space
+X # but you consume slots in the kernel conntrack table for
+X # backup state entries. Moreover, disabling the external cache
+X # means more CPU consumption. You need a Linux kernel
+X # >= 2.6.29 to use this feature. By default, this clause is
+X # set off. If you are installing conntrackd for first time,
+X # please read the user manual and I encourage you to consider
+X # using the fail-over scripts instead of enabling this option!
+X #
+X # DisableExternalCache Off
+X }
+X
+X #
+X # Multicast IP and interface where messages are
+X # broadcasted (dedicated link). IMPORTANT: Make sure
+X # that iptables accepts traffic for destination
+X # 225.0.0.50, eg:
+X #
+X # iptables -I INPUT -d 225.0.0.50 -j ACCEPT
+X # iptables -I OUTPUT -d 225.0.0.50 -j ACCEPT
+X #
+X Multicast {
+X #
+X # Multicast address: The address that you use as destination
+X # in the synchronization messages. You do not have to add
+X # this IP to any of your existing interfaces. If any doubt,
+X # do not modify this value.
+X #
+X IPv4_address 225.0.0.50
+X
+X #
+X # The multicast group that identifies the cluster. If any
+X # doubt, do not modify this value.
+X #
+X Group 3780
+X
+X #
+X # IP address of the interface that you are going to use to
+X # send the synchronization messages. Remember that you must
+X # use a dedicated link for the synchronization messages.
+X #
+X IPv4_interface [LINK_IP]
+X
+X #
+X # The name of the interface that you are going to use to
+X # send the synchronization messages.
+X #
+X Interface [LINK_IF]
+X
+X # The multicast sender uses a buffer to enqueue the packets
+X # that are going to be transmitted. The default size of this
+X # socket buffer is available at /proc/sys/net/core/wmem_default.
+X # This value determines the chances to have an overrun in the
+X # sender queue. The overrun results packet loss, thus, losing
+X # state information that would have to be retransmitted. If you
+X # notice some packet loss, you may want to increase the size
+X # of the sender buffer. The default size is usually around
+X # ~100 KBytes which is fairly small for busy firewalls.
+X #
+X SndSocketBuffer 1249280
+X
+X # The multicast receiver uses a buffer to enqueue the packets
+X # that the socket is pending to handle. The default size of this
+X # socket buffer is available at /proc/sys/net/core/rmem_default.
+X # This value determines the chances to have an overrun in the
+X # receiver queue. The overrun results packet loss, thus, losing
+X # state information that would have to be retransmitted. If you
+X # notice some packet loss, you may want to increase the size of
+X # the receiver buffer. The default size is usually around
+X # ~100 KBytes which is fairly small for busy firewalls.
+X #
+X RcvSocketBuffer 1249280
+X
+X #
+X # Enable/Disable message checksumming. This is a good
+X # property to achieve fault-tolerance. In case of doubt, do
+X # not modify this value.
+X #
+X Checksum on
+X }
+X #
+X # You can specify more than one dedicated link. Thus, if one dedicated
+X # link fails, conntrackd can fail-over to another. Note that adding
+X # more than one dedicated link does not mean that state-updates will
+X # be sent to all of them. There is only one active dedicated link at
+X # a given moment. The `Default' keyword indicates that this interface
+X # will be selected as the initial dedicated link. You can have
+X # up to 4 redundant dedicated links. Note: Use different multicast
+X # groups for every redundant link.
+X #
+X # Multicast Default {
+X # IPv4_address 225.0.0.51
+X # Group 3781
+X # IPv4_interface 192.168.100.101
+X # Interface eth3
+X # # SndSocketBuffer 1249280
+X # # RcvSocketBuffer 1249280
+X # Checksum on
+X # }
+X
+X #
+X # You can use Unicast UDP instead of Multicast to propagate events.
+X # Note that you cannot use unicast UDP and Multicast at the same
+X # time, you can only select one.
+X #
+X # UDP {
+X #
+X # UDP address that this firewall uses to listen to events.
+X #
+X # IPv4_address 192.168.2.100
+X #
+X # or you may want to use an IPv6 address:
+X #
+X # IPv6_address fe80::215:58ff:fe28:5a27
+X
+X #
+X # Destination UDP address that receives events, ie. the other
+X # firewall's dedicated link address.
+X #
+X # IPv4_Destination_Address 192.168.2.101
+X #
+X # or you may want to use an IPv6 address:
+X #
+X # IPv6_Destination_Address fe80::2d0:59ff:fe2a:775c
+X
+X #
+X # UDP port used
+X #
+X # Port 3780
+X
+X #
+X # The name of the interface that you are going to use to
+X # send the synchronization messages.
+X #
+X # Interface eth2
+X
+X #
+X # The sender socket buffer size
+X #
+X # SndSocketBuffer 1249280
+X
+X #
+X # The receiver socket buffer size
+X #
+X # RcvSocketBuffer 1249280
+X
+X #
+X # Enable/Disable message checksumming.
+X #
+X # Checksum on
+X # }
+X
+}
+X
+#
+# General settings
+#
+General {
+X #
+X # Set the nice value of the daemon, this value goes from -20
+X # (most favorable scheduling) to 19 (least favorable). Using a
+X # very low value reduces the chances to lose state-change events.
+X # Default is 0 but this example file sets it to most favourable
+X # scheduling as this is generally a good idea. See man nice(1) for
+X # more information.
+X #
+X Nice -20
+X
+X #
+X # Select a different scheduler for the daemon, you can select between
+X # RR and FIFO and the process priority (minimum is 0, maximum is 99).
+X # See man sched_setscheduler(2) for more information. Using a RT
+X # scheduler reduces the chances to overrun the Netlink buffer.
+X #
+X # Scheduler {
+X # Type FIFO
+X # Priority 99
+X # }
+X
+X #
+X # Number of buckets in the cache hashtable. The bigger it is,
+X # the closer it gets to O(1) at the cost of consuming more memory.
+X # Read some documents about tuning hashtables for further reference.
+X #
+X HashSize 32768
+X
+X #
+X # Maximum number of conntracks, it should be double of:
+X # $ cat /proc/sys/net/netfilter/nf_conntrack_max
+X # since the daemon may keep some dead entries cached for possible
+X # retransmission during state synchronization.
+X #
+X HashLimit 131072
+X
+X LogFile on
+X
+X #
+X # Syslog: on, off or a facility name (daemon (default) or local0..7)
+X # Default: off
+X #
+X Syslog on
+X
+X #
+X # Lockfile
+X #
+X LockFile /var/lock/conntrackd.lock
+X
+X #
+X # Unix socket configuration
+X #
+X UNIX {
+X Path /var/run/conntrackd.sock
+X Backlog 20
+X }
+X
+X SocketBufferSize 2097152
+X SocketBufferSizeMaxGrown 8388608
+X
+X #
+X # Netlink event socket buffer size. If you do not specify this clause,
+X # the default buffer size value in /proc/net/core/rmem_default is
+X # used. This default value is usually around 100 Kbytes which is
+X # fairly small for busy firewalls. This leads to event message dropping
+X # and high CPU consumption. This example configuration file sets the
+X # size to 2 MBytes to avoid this sort of problems.
+X #
+X NetlinkBufferSize 2097152
+X
+X #
+X # The daemon doubles the size of the netlink event socket buffer size
+X # if it detects netlink event message dropping. This clause sets the
+X # maximum buffer size growth that can be reached. This example file
+X # sets the size to 8 MBytes.
+X #
+X NetlinkBufferSizeMaxGrowth 8388608
+X
+X #
+X # If the daemon detects that Netlink is dropping state-change events,
+X # it automatically schedules a resynchronization against the Kernel
+X # after 30 seconds (default value). Resynchronizations are expensive
+X # in terms of CPU consumption since the daemon has to get the full
+X # kernel state-table and purge state-entries that do not exist anymore.
+X # Be careful of setting a very small value here. You have the following
+X # choices: On (enabled, use default 30 seconds value), Off (disabled)
+X # or Value (in seconds, to set a specific amount of time). If not
+X # specified, the daemon assumes that this option is enabled.
+X #
+X # NetlinkOverrunResync On
+X
+X #
+X # If you want reliable event reporting over Netlink, set on this
+X # option. If you set on this clause, it is a good idea to set off
+X # NetlinkOverrunResync. This option is off by default and you need
+X # a Linux kernel >= 2.6.31.
+X #
+X # NetlinkEventsReliable Off
+X
+X #
+X # By default, the daemon receives state updates following an
+X # event-driven model. You can modify this behaviour by switching to
+X # polling mode with the PollSecs clause. This clause tells conntrackd
+X # to dump the states in the kernel every N seconds. With regards to
+X # synchronization mode, the polling mode can only guarantee that
+X # long-lifetime states are recovered. The main advantage of this method
+X # is the reduction in the state replication at the cost of reducing the
+X # chances of recovering connections.
+X #
+X # PollSecs 15
+X
+X #
+X # The daemon prioritizes the handling of state-change events coming
+X # from the core. With this clause, you can set the maximum number of
+X # state-change events (those coming from kernel-space) that the daemon
+X # will handle after which it will handle other events coming from the
+X # network or userspace. A low value improves interactivity (in terms of
+X # real-time behaviour) at the cost of extra CPU consumption.
+X # Default (if not set) is 100.
+X #
+X # EventIterationLimit 100
+X
+X #
+X # Event filtering: This clause allows you to filter certain traffic,
+X # There are currently three filter-sets: Protocol, Address and
+X # State. The filter is attached to an action that can be: Accept or
+X # Ignore. Thus, you can define the event filtering policy of the
+X # filter-sets in positive or negative logic depending on your needs.
+X # You can select if conntrackd filters the event messages from
+X # user-space or kernel-space. The kernel-space event filtering
+X # saves some CPU cycles by avoiding the copy of the event message
+X # from kernel-space to user-space. The kernel-space event filtering
+X # is prefered, however, you require a Linux kernel >= 2.6.29 to
+X # filter from kernel-space. If you want to select kernel-space
+X # event filtering, use the keyword 'Kernelspace' instead of
+X # 'Userspace'.
+X #
+X Filter From Userspace {
+X #
+X # Accept only certain protocols: You may want to replicate
+X # the state of flows depending on their layer 4 protocol.
+X #
+X Protocol Accept {
+X TCP
+X SCTP
+X DCCP
+X UDP
+X ICMP # This requires a Linux kernel >= 2.6.31
+X }
+X
+X #
+X # Ignore traffic for a certain set of IP's: Usually all the
+X # IP assigned to the firewall since local traffic must be
+X # ignored, only forwarded connections are worth to replicate.
+X # Note that these values depends on the local IPs that are
+X # assigned to the firewall.
+X #
+X Address Ignore {
+X IPv4_address 127.0.0.1 # loopback
+X IPv4_address [IGNORE_IP1]
+X IPv4_address [IGNORE_IP2]
+X IPv4_address [IGNORE_IP3]
+X #IPv4_address 192.168.0.100 # virtual IP 1
+X #IPv4_address 192.168.1.100 # virtual IP 2
+X #IPv4_address 192.168.0.1
+X #IPv4_address 192.168.1.1
+X #IPv4_address 192.168.100.100 # dedicated link ip
+X #
+X # You can also specify networks in format IP/cidr.
+X # IPv4_address 192.168.0.0/24
+X #
+X # You can also specify an IPv6 address
+X # IPv6_address ::1
+X }
+X
+X #
+X # Uncomment this line below if you want to filter by flow state.
+X # This option introduces a trade-off in the replication: it
+X # reduces CPU consumption at the cost of having lazy backup
+X # firewall replicas. The existing TCP states are: SYN_SENT,
+X # SYN_RECV, ESTABLISHED, FIN_WAIT, CLOSE_WAIT, LAST_ACK,
+X # TIME_WAIT, CLOSED, LISTEN.
+X #
+X # State Accept {
+X # ESTABLISHED CLOSED TIME_WAIT CLOSE_WAIT for TCP
+X # }
+X }
+X
+X # default debian service unit file is of Type=notify
+X Systemd on
+}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/conntrackd.conf.templ failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ': 'MD5 check failed'
+ ) << \SHAR_EOF
+13781a8581b74b0cf402c01264bdca48 cloud_scripts/opt/cloud/templates/conntrackd.conf.templ
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ'` -ne 15888 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/conntrackd.conf.templ' is not 15888"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ' &&
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+ROUTER_BIN_PATH="/ramdisk/rrouter"
+ROUTER_LOG="${ROUTER_BIN_PATH}/keepalived.log"
+STRIKE_FILE="$ROUTER_BIN_PATH/keepalived.strikes"
+TS_FILE="$ROUTER_BIN_PATH/keepalived.ts"
+CT_FILE="$ROUTER_BIN_PATH/keepalived.ct"
+X
+checktime=$(date +%s)
+hbtime=$(cat $TS_FILE)
+diff=$(($checktime - $hbtime))
+X
+lastcheck=0
+if [ -e $CT_FILE ]
+then
+X lastcheck=$(cat $CT_FILE 2>/dev/null)
+fi
+checkdiff=$(($checktime - $lastcheck))
+if [ $checkdiff -ge 0 ] && [ $checkdiff -lt 30 ]
+then
+X exit
+fi
+echo $checktime > $CT_FILE
+X
+s=0
+if [ $diff -gt 10 ]
+then
+X if [ -e $STRIKE_FILE ]
+X then
+X s=$(cat $STRIKE_FILE 2>/dev/null)
+X fi
+X s=$(($s+1))
+X echo $s > $STRIKE_FILE
+X echo "Check time: $checktime, last heartbeat time: $hbtime, time diff: $diff, strike count: $s" >> $ROUTER_LOG
+else
+X rm -f $STRIKE_FILE
+fi
+X
+if [ $s -gt 3 ]
+then
+X systemctl stop --now keepalived >> $ROUTER_LOG 2>&1
+X systemctl stop --now conntrackd >> $ROUTER_LOG 2>&1
+X
+X #Set fault so we have the same effect as a KeepaliveD fault.
+X python /opt/cloud/bin/master.py --fault
+X
+X pkill -9 keepalived >> $ROUTER_LOG 2>&1 || true
+X pkill -9 conntrackd >> $ROUTER_LOG 2>&1 || true
+X echo Status: FAULT \(keepalived process is dead\) >> $ROUTER_LOG
+X exit
+fi
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ'
+ eval "${shar_touch}") && \
+ chmod 0755 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ': 'MD5 check failed'
+ ) << \SHAR_EOF
+7040d7485f89a97be367132d28af1267 cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ'` -ne 2037 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/check_heartbeat.sh.templ' is not 2037"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/check_bumpup.sh ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/check_bumpup.sh'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/check_bumpup.sh (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/check_bumpup.sh (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/check_bumpup.sh' &&
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+cat /tmp/rrouter_bumped
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/check_bumpup.sh'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/templates/check_bumpup.sh'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/check_bumpup.sh failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/check_bumpup.sh': 'MD5 check failed'
+ ) << \SHAR_EOF
+ab6cbce5de505d137d05bcae1af8e18a cloud_scripts/opt/cloud/templates/check_bumpup.sh
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/check_bumpup.sh'` -ne 822 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/check_bumpup.sh' is not 822"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/templates/keepalived.conf.templ ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/templates/keepalived.conf.templ (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/templates/keepalived.conf.templ (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ' &&
+! Licensed to the Apache Software Foundation (ASF) under one
+! or more contributor license agreements. See the NOTICE file
+! distributed with this work for additional information
+! regarding copyright ownership. The ASF licenses this file
+! to you under the Apache License, Version 2.0 (the
+! "License"); you may not use this file except in compliance
+! with the License. You may obtain a copy of the License at
+!
+! http://www.apache.org/licenses/LICENSE-2.0
+!
+! Unless required by applicable law or agreed to in writing,
+! software distributed under the License is distributed on an
+! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+! KIND, either express or implied. See the License for the
+! specific language governing permissions and limitations
+! under the License.
+X
+global_defs {
+X router_id [ROUTER_ID]
+}
+X
+vrrp_script heartbeat {
+X script "[RROUTER_BIN_PATH]/heartbeat.sh"
+X interval 5
+}
+X
+vrrp_instance inside_network {
+X state BACKUP
+X interface eth2
+X virtual_router_id 51
+X nopreempt
+X
+X advert_int 1
+X
+X #use_vmac
+X #vmac_xmit_base
+X
+X authentication {
+X auth_type AH
+X auth_pass PASS
+X }
+X
+X virtual_ipaddress {
+X [ROUTER_IP] brd [BOARDCAST] dev eth2
+X }
+X
+X track_script {
+X heartbeat
+X }
+X
+X notify_backup "/opt/cloud/bin/master.py --backup"
+X notify_master "/opt/cloud/bin/master.py --master"
+X notify_fault "/opt/cloud/bin/master.py --fault"
+}
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ'
+ eval "${shar_touch}") && \
+ chmod 0644 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/templates/keepalived.conf.templ failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ': 'MD5 check failed'
+ ) << \SHAR_EOF
+464642e87bbb032071111b84f82ba135 cloud_scripts/opt/cloud/templates/keepalived.conf.templ
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ'` -ne 1429 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/templates/keepalived.conf.templ' is not 1429"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/bin/prepare_pxe.sh ==============
+if test ! -d 'cloud_scripts/opt/cloud/bin'; then
+ mkdir 'cloud_scripts/opt/cloud/bin'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud/bin."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud/bin."
+ exit 1
+fi
+fi
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/bin/prepare_pxe.sh'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/bin/prepare_pxe.sh (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/bin/prepare_pxe.sh (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/bin/prepare_pxe.sh' &&
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# # regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+X
+set +u
+X
+err_exit() {
+X echo $1
+X exit 1
+}
+X
+success() {
+X exit 0
+}
+X
+TFTP_ROOT='/opt/tftpboot'
+PXELINUX_CFG_DIR='/opt/tftpboot/pxelinux.cfg'
+X
+kernel_nfs_path=$1
+kernel_file_name=`basename $kernel_nfs_path`
+initrd_nfs_path=$2
+initrd_file_name=`basename $initrd_nfs_path`
+tmpt_uuid=$3
+pxe_cfg_filename=$4
+ks_file=$5
+X
+kernel_path=$tmpt_uuid/$kernel_file_name
+initrd_path=$tmpt_uuid/$initrd_file_name
+X
+cat > $PXELINUX_CFG_DIR/$pxe_cfg_filename </dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/bin/prepare_pxe.sh': 'MD5 check failed'
+ ) << \SHAR_EOF
+8b495c4ea50905f4197974ee82e607ba cloud_scripts/opt/cloud/bin/prepare_pxe.sh
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/bin/prepare_pxe.sh'` -ne 1792 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/bin/prepare_pxe.sh' is not 1792"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/bin/cs_forwardingrules.py ==============
+if test ! -d 'cloud_scripts/opt/cloud/bin'; then
+ mkdir 'cloud_scripts/opt/cloud/bin'
+if test $? -eq 0
+then ${echo} "x - created directory cloud_scripts/opt/cloud/bin."
+else ${echo} "x - failed to create directory cloud_scripts/opt/cloud/bin."
+ exit 1
+fi
+fi
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/bin/cs_forwardingrules.py (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/bin/cs_forwardingrules.py (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py' &&
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+X
+def merge(dbag, rules):
+X for rule in rules["rules"]:
+X source_ip = rule["source_ip_address"]
+X destination_ip = rule["destination_ip_address"]
+X revoke = rule["revoke"]
+X
+X newrule = dict()
+X newrule["public_ip"] = source_ip
+X newrule["internal_ip"] = destination_ip
+X
+X if rules["type"] == "staticnatrules":
+X newrule["type"] = "staticnat"
+X elif rules["type"] == "forwardrules":
+X newrule["type"] = "forward"
+X newrule["public_ports"] = rule["source_port_range"]
+X newrule["internal_ports"] = rule["destination_port_range"]
+X newrule["protocol"] = rule["protocol"]
+X
+X if not revoke:
+X if rules["type"] == "staticnatrules":
+X dbag[source_ip] = [newrule]
+X elif rules["type"] == "forwardrules":
+X index = -1
+X if source_ip in dbag.keys():
+X for forward in dbag[source_ip]:
+X if ruleCompare(forward, newrule):
+X index = dbag[source_ip].index(forward)
+X if not index == -1:
+X dbag[source_ip][index] = newrule
+X else:
+X dbag[source_ip].append(newrule)
+X else:
+X dbag[source_ip] = [newrule]
+X else:
+X if rules["type"] == "staticnatrules":
+X if source_ip in dbag.keys():
+X del dbag[source_ip]
+X elif rules["type"] == "forwardrules":
+X if source_ip in dbag.keys():
+X index = -1
+X for forward in dbag[source_ip]:
+X if ruleCompare(forward, newrule):
+X index = dbag[source_ip].index(forward)
+X print "removing index %s" % str(index)
+X if not index == -1:
+X del dbag[source_ip][index]
+X
+X return dbag
+X
+X
+# Compare function checks only the public side, those must be equal the internal details could change
+def ruleCompare(ruleA, ruleB):
+X if not ruleA["type"] == ruleB["type"]:
+X return False
+X if ruleA["type"] == "staticnat":
+X return ruleA["public_ip"] == ruleB["public_ip"]
+X elif ruleA["type"] == "forward":
+X return ruleA["public_ip"] == ruleB["public_ip"] and ruleA["public_ports"] == ruleB["public_ports"] \
+X and ruleA["protocol"] == ruleB["protocol"]
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py'
+ eval "${shar_touch}") && \
+ chmod 0755 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/bin/cs_forwardingrules.py failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py': 'MD5 check failed'
+ ) << \SHAR_EOF
+278288da98263d674e9d0d0aecaca56d cloud_scripts/opt/cloud/bin/cs_forwardingrules.py
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py'` -ne 3239 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/bin/cs_forwardingrules.py' is not 3239"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/bin/vpc_netusage.sh ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/bin/vpc_netusage.sh (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/bin/vpc_netusage.sh (text)"
+ sed 's/^X//' << 'SHAR_EOF' > 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh' &&
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+X
+source /root/func.sh
+source /opt/cloud/bin/vpc_func.sh
+X
+vpnoutmark="0x525"
+vpninmark="0x524"
+lock="biglock"
+locked=$(getLockFile $lock)
+if [ "$locked" != "1" ]
+then
+X exit 1
+fi
+X
+usage() {
+X printf "Usage: %s -[c|g|r|n|d] [-l ] [-v ] \n" $(basename $0) >&2
+}
+X
+create_usage_rules () {
+X iptables-save|grep "NETWORK_STATS_$ethDev" > /dev/null
+X if [ $? -gt 0 ]
+X then
+X iptables -N NETWORK_STATS_$ethDev > /dev/null;
+X iptables -I FORWARD -j NETWORK_STATS_$ethDev > /dev/null;
+X iptables -A NETWORK_STATS_$ethDev -o $ethDev -s $vcidr > /dev/null;
+X iptables -A NETWORK_STATS_$ethDev -i $ethDev -d $vcidr > /dev/null;
+X fi
+X return $?
+}
+X
+create_vpn_usage_rules () {
+X iptables-save|grep "VPN_STATS_$ethDev" > /dev/null
+X if [ $? -gt 0 ]
+X then
+X iptables -t mangle -N VPN_STATS_$ethDev > /dev/null;
+X iptables -t mangle -I FORWARD -j VPN_STATS_$ethDev > /dev/null;
+X iptables -t mangle -A VPN_STATS_$ethDev -o $ethDev -m mark --mark $vpnoutmark > /dev/null;
+X iptables -t mangle -A VPN_STATS_$ethDev -i $ethDev -m mark --mark $vpninmark > /dev/null;
+X fi
+X return $?
+}
+X
+remove_usage_rules () {
+X return 0
+}
+X
+get_usage () {
+X iptables -L NETWORK_STATS_$ethDev -n -v -x 2> /dev/null | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; > /dev/null
+X return 0
+}
+X
+get_vpn_usage () {
+X iptables -t mangle -L VPN_STATS_$ethDev -n -v -x | awk '$1 ~ /^[0-9]+$/ { printf "%s:", $2}'; > /dev/null
+X if [ $? -gt 0 ]
+X then
+X printf $?
+X return 1
+X fi
+}
+X
+reset_usage () {
+X iptables -Z NETWORK_STATS_$ethDev > /dev/null
+X if [ $? -gt 0 -a $? -ne 2 ]
+X then
+X return 1
+X fi
+}
+X
+#set -x
+X
+cflag=
+gflag=
+rflag=
+lflag=
+vflag=
+nflag=
+dflag=
+X
+while getopts 'cgndrl:v:' OPTION
+do
+X case $OPTION in
+X c) cflag=1
+X ;;
+X g) gflag=1
+X ;;
+X r) rflag=1
+X ;;
+X l) lflag=1
+X publicIp="$OPTARG"
+X ;;
+X v) vflag=1
+X vcidr="$OPTARG"
+X ;;
+X n) nflag=1
+X ;;
+X d) dflag=1
+X ;;
+X i) #Do nothing, since it's parameter for host script
+X ;;
+X ?) usage
+X unlock_exit 2 $lock $locked
+X ;;
+X esac
+done
+X
+ethDev=$(getEthByIp $publicIp)
+if [ "$cflag" == "1" ]
+then
+X if [ "$ethDev" != "" ]
+X then
+X create_usage_rules
+X create_vpn_usage_rules
+X unlock_exit 0 $lock $locked
+X fi
+fi
+X
+if [ "$gflag" == "1" ]
+then
+X get_usage
+X unlock_exit $? $lock $locked
+fi
+X
+if [ "$nflag" == "1" ]
+then
+X #get_vpn_usage
+X unlock_exit $? $lock $locked
+fi
+X
+if [ "$dflag" == "1" ]
+then
+X #remove_usage_rules
+X unlock_exit 0 $lock $locked
+fi
+X
+if [ "$rflag" == "1" ]
+then
+X reset_usage
+X unlock_exit $? $lock $locked
+fi
+X
+X
+unlock_exit 0 $lock $locked
+SHAR_EOF
+ (set 20 20 02 27 09 37 09 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh'
+ eval "${shar_touch}") && \
+ chmod 0755 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh'
+if test $? -ne 0
+then ${echo} "restore of cloud_scripts/opt/cloud/bin/vpc_netusage.sh failed"
+fi
+ if ${md5check}
+ then (
+ ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh': 'MD5 check failed'
+ ) << \SHAR_EOF
+f3f8069de696e92a24cbc694275c0bd5 cloud_scripts/opt/cloud/bin/vpc_netusage.sh
+SHAR_EOF
+
+else
+test `LC_ALL=C wc -c < 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh'` -ne 3377 && \
+ ${echo} "restoration warning: size of 'cloud_scripts/opt/cloud/bin/vpc_netusage.sh' is not 3377"
+ fi
+fi
+# ============= cloud_scripts/opt/cloud/bin/configure.py ==============
+if test -n "${keep_file}" && test -f 'cloud_scripts/opt/cloud/bin/configure.py'
+then
+${echo} "x - SKIPPING cloud_scripts/opt/cloud/bin/configure.py (file already exists)"
+
+else
+${echo} "x - extracting cloud_scripts/opt/cloud/bin/configure.py (text)"
+ sed 's/^X//' << 'SHAR_EOF' | uudecode &&
+begin 600 cloud_scripts/opt/cloud/bin/configure.py
+M(R$O=7-R+V)I;B]P>71H;VX*(R`M+2!C;V1I;F2!O9B!T:&4@3&EC96YS
+M92!A=`HC"B,@:'1T<#HO+W=W=RYA<&%C:&4N;W)G+VQI8V5N&-E<'0@24]%&ES="(@)2!S96QF+E1/2T5.7T9)3$4I"@H@("`@
+M("`@('-E2@I"B`@("`@("`@
+M("`@("`@("`@("`@9W5E22R)$;VU57U)E<75E&-E<'0@17AC97!T:6]N(&%S
+M(&4Z"B`@("`@("`@("`@("`@("`@("`@;&]G9VEN9RYE7!E)UT@/3T@)V%L;"<@86YD(&]B
+M:ELG&-E<'1I;VXZ"B`@("`@("`@("`@("`@("`@("`@
+M7!E(#T@(F%N>2(*("`@("`@("`@("`@:68@
+M(FEC;7!?='EP92(@:6X@7,H*2!A;F0@7!E)UT*("`@("`@("`@("`@:68@(FEC
+M;7!?8V]D92(@:6X@7,H*2!A;F0@<6-m>&<6-m>&&&&&&&EO&&EO&&&&&&EC&&&&&&&EF&&EN&<6-m>&&EF&&&EF&&&&&&&EP&&&EP&&&EN&&QO&&ES&&ET&&&&&&ET&&&EF&TZ&TN9W&&&&&EN&&&&&UA&UA&&&&AB&&&&&&&&&EM93TE&&&&&&&&&ET&EF&YO&&&&&&P&PR&&&PR&PR&&&&QO8V&QE9G0L&PR&&PR&&PR&&&EP82DZ&EN&&&&&&EP82DZ&EN&&&&&&EN&&&&EC7V9W&&&<6yt97>&UA&&&EC7V9W:6YT97&&&&&&&&&&<6yt97>&&&&EN&&&&&&&&&&&&&&&&&&&&&&&&&&&&&EC&&&AT&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&EC96YS92&&&EF&EP&&&&&&&&&&&&&&&&&&&UA&&QI86YC90HC&&AE&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&EC96YS&&&&&&&&&&&&EC96YS&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&EC96YS960&&AE&&&&&&UO&&EC96YS92&QA&&EM&QI960N&AE&&QE&&&&&&&&&&&EE9&&&&&&&&&&&&&EC&&&AT&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&EC&&&QA&&EM&QI&AE&E&&EN92&&QI&AC&&EP&EN92&&EO<6yt97>&YS&QI&AC&&&YS7VQI&QI&AC&&&&ES&&&&&&YS&&AC&AO&&&&EV&ES&EN&&&&&&&AC&&AC&&AC&&&&&&EP&&&&&&&&&EC96YS92&&&ES1&&QO9V<6yf>&&&A&&A&&&ET97&EO&ET&&EN&&&&&&&&AE&&&&&EN&&&AE&YE&&&&&&&&&&EC96YS92&&&&&&&&&&&AE&&&&EF&EN&&&&&&&&&&&&&&&&&&&UO9&&&&AA&&&EF&&&&&D&&EF&YO&&&&&&&P&&QO9V<6yf>&P&&ED&ES6yf>6yf>6yt97>6yt97>6yt97>6-m>6-m>6-m>