Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reparenting pn-sfe-integration. #210

Open
wants to merge 53 commits into
base: pn-sfe-integration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b1dfb5e
MFW-3190: Added uriTranslation host: https://eu.edge.arista.com/cmd/ …
Jul 24, 2023
74e1b4e
Merge pull request #186 from untangle/mfw_3190
avinashdige15 Jul 24, 2023
f609a14
MFW-3578 chore: fix vsbuild (#188)
smitropoulos-arista Sep 27, 2023
de0281b
MFW-3555 : Ruby1 hybrid mode: packetd signaling sent before settings.…
rahulg-arista Oct 20, 2023
8d0788d
MFW-3790 Modify Interrupt distribution and enable RPS/XPS/HT to impro…
NobutomoNakano Oct 23, 2023
789883b
fix: ls etc eos release (#193)
smitropoulos-arista Oct 27, 2023
8a4bb02
Mfw 3831 fix vsbuild (#194)
smitropoulos-arista Oct 27, 2023
81852e9
Quota changes
naveen-gowda-arista Oct 31, 2023
bc2e58e
version.mk: extract package version from environment variables set by…
sdelafond Nov 1, 2023
005a233
MFW-3731: Backup Restore (add the logo image file in backup.tar) (#195)
sumedha-game Nov 2, 2023
4426e2a
feat: add run-eos-command installation (#191)
smitropoulos-arista Nov 3, 2023
b6d7970
Corrected usage message
NobutomoNakano Nov 10, 2023
d882ba5
Merge pull request #196 from untangle/Quota-mfw
naveen-gowda-arista Nov 12, 2023
622fc46
Merge branch 'master' into MFW-3790
NobutomoNakano Nov 14, 2023
f2ed352
Merge pull request #192 from untangle/MFW-3790
NobutomoNakano Nov 14, 2023
458ea71
restd: remove python3-package.mk as restd doesn't declare a python pa…
sdelafond Nov 16, 2023
1974bc7
Mfw 3762 conntrack config (#197)
smitropoulos-arista Nov 21, 2023
640ed4a
fix: json (#198)
smitropoulos-arista Nov 21, 2023
b288596
MFW-3961 Adding categories.json for webroot categories (#200)
manuwelakanade Nov 22, 2023
92999af
MFW-3961 Updating Makefile for categories.json (#202)
manuwelakanade Nov 22, 2023
4504812
Mfw 3694 eos board info on dash should show cbl/ind instead of cust…
smitropoulos-arista Nov 22, 2023
1135862
MFW-3719: Adding a boot config checkout flag for load-eos-config (#199)
trilok-venkata Nov 23, 2023
b4f9f2c
Mfw 3762 conntrack config (#203)
smitropoulos-arista Nov 28, 2023
3e3121c
fix: spelling; adding fixme comments
smitropoulos-arista Nov 29, 2023
fb031c0
fixup! fix: spelling; adding fixme comments
smitropoulos-arista Nov 29, 2023
59a9546
fix: fmt
smitropoulos-arista Nov 29, 2023
6219fa2
feat: add init and script
smitropoulos-arista Nov 29, 2023
68d5f84
feat: add to makefile
smitropoulos-arista Nov 29, 2023
584975a
fix: try different order, remove options
smitropoulos-arista Dec 1, 2023
441f735
Revert "fix: try different order, remove options"
smitropoulos-arista Dec 1, 2023
445651e
feat: add stop to init for interface-watcher
smitropoulos-arista Dec 1, 2023
a7bae4a
fix: remove prints
smitropoulos-arista Dec 2, 2023
036c4c3
MFW:4032- Updated the empty log in pyconnector
Utkarsh51 Dec 5, 2023
1f36ac8
fix: succint solution for stop service
smitropoulos-arista Dec 5, 2023
81fa33b
MFW-4007: Add interfaces watcher (#204)
smitropoulos-arista Dec 5, 2023
1279759
Merge pull request #205 from untangle/MFW-4032
Utkarsh51 Dec 6, 2023
3b01a8f
Revert "fix: succint solution for stop service"
smitropoulos-arista Dec 6, 2023
bb92bed
Merge branch 'master' into MFW-4007-On-network-device-down,-static-ro…
smitropoulos-arista Dec 6, 2023
caa4b24
feat: more robust solution
smitropoulos-arista Dec 6, 2023
70b6ed0
Merge pull request #206 from untangle/MFW-4007-On-network-device-down…
jsommerville-untangle Dec 7, 2023
dc5a58f
Revert "Mfw 4007 on network device down, static routes are dropped, b…
jsommerville-untangle Dec 8, 2023
f938f05
Merge pull request #207 from untangle/revert-206-MFW-4007-On-network-…
jsommerville-untangle Dec 8, 2023
3c5bfc3
Revert "MFW-4007: Add interfaces watcher (#204)"
jsommerville-untangle Dec 8, 2023
658fd29
Merge pull request #208 from untangle/revert-204-MFW-4007-On-network-…
jsommerville-untangle Dec 8, 2023
d2d2c68
Update packetd.init
mikegee88 Jul 14, 2023
4f107a9
Add hybrid mode toggle
mikegee88 Aug 4, 2023
f4f9ed7
Hybrid mode, start classd
mikegee88 Aug 22, 2023
6541f0b
Create classd service file
mikegee88 Sep 12, 2023
c938ef5
Force hybrid mode packetd and classd
mikegee88 Oct 24, 2023
a29b017
fix: remove commenting in the packetd.init
smitropoulos-arista Feb 15, 2024
0a6afcd
fix: touchfile is /etc/config/hybrid
smitropoulos-arista Feb 15, 2024
5d4a482
fix: remove unused branch
smitropoulos-arista Feb 22, 2024
fbcd47a
revert part of c938ef53863539b697567cb4a141f982c49c3aef for classd
smitropoulos-arista Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"label": "Copy to target",
Expand Down
92 changes: 60 additions & 32 deletions .vscode/vsbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,70 @@
## Compile sync-settings and install if no errors.
##
TARGET=$1
PORT=22

GREEN=$'\e[0;32m'
NC=$'\e[0m'

# Break target down by commas into an array.
TARGET_ADDRESSES=()
while IFS=',' read -ra ADDRESSES; do
for address in "${ADDRESSES[@]}"; do
TARGET_ADDRESSES+=($address)
done
done <<< "$TARGET"
for address in "${ADDRESSES[@]}"; do
TARGET_ADDRESSES+=("$address")
done
done <<<"$TARGET"

for target_address in "${TARGET_ADDRESSES[@]}"; do
echo "Copying to $target_address..."
ssh-copy-id root@$target_address

rsync=$(ssh root@$target_address "which rsync")
if [ "$rsync" = "" ] ; then
ssh root@$target_address "opkg update; opkg install rsync"
fi

rsync -r -a -v --chown=root:root wan-manager/files/* root@$target_address:/usr/bin
rsync -r -a -v --chown=root:root credentials/files/credentials.json root@$target_address:/etc/config/credentials.json
# rsync -r -a -v --chown=root:root pyconnector/files/* root@$target_address:/usr/bin
# rsync -r -a -v --chown=root:root strongswan-full/files/override.ipsec.init root@$target_address:/etc/init.d/ipsec
# rsync -r -a -v --chown=root:root pyconnector/files/pyconnector root@$target_address:/usr/bin/pyconnector
# rsync -r -a -v --chown=root:root pyconnector/files/pyconnector.init root@$target_address:/etc/init.d/pyconnector
rsync -r -a -v --chown=root:root sync-settings/files/speedtest.sh root@$target_address:/usr/bin/speedtest.sh
# rsync -r -a -v --chown=root:root speedtest-cli-dbg root@$target_address:/root/speedtest-cli-dbg

# Tests
target_sync_path=$(ssh root@$target_address "find /usr -name tests | grep '\(site-packages\|dist-packages\)/tests' | head -1")
if [ "$target_sync_path" != "" ] ; then
rsync -r -a -v runtests/files/usr/lib/python/tests/* root@$target_address:$target_sync_path
fi

# Restd
target_sync_path=$(ssh root@$target_address "find /usr -name restd | grep '\(site-packages\|dist-packages\)/restd' | head -1")
if [ "$target_sync_path" != "" ] ; then
rsync -r -a -v restd/files/usr/lib/python/restd/* root@$target_address:$target_sync_path
fi

echo "${GREEN}Copying to $target_address ...${NC}"

ssh-copy-id root@"$target_address"

isEos=true
if ! ssh -p "$PORT" root@"$target_address" "ls /etc/Eos-release"; then
isEos=false
echo "${GREEN}Bare MFW found${NC}"
else
echo "${GREEN}MFW in EOS found${NC}"
fi

target_sync_path=""
mfw_dir=""
if [ "$isEos" != true ]; then
# bare MFW target
rsync=$(ssh -p "$PORT" root@"$target_address" "which rsync")
if [ "$rsync" = "" ]; then
ssh -p "$PORT" root@"$target_address" "opkg update; opkg install rsync"
fi

target_sync_path="/usr/bin"
else
target_sync_path="/mfw/usr/bin"
mfw_dir="/mfw"
fi

echo "${GREEN}Copying to $target_sync_path... ${NC}"

rsync -r -a -v --chown=root:root wan-manager/files/* root@"$target_address":"$target_sync_path"
rsync -r -a -v --chown=root:root credentials/files/credentials.json root@"$target_address":"$mfw_dir"/etc/config/credentials.json
# rsync -r -a -v --chown=root:root pyconnector/files/* root@$target_address:/usr/bin
# rsync -r -a -v --chown=root:root strongswan-full/files/override.ipsec.init root@$target_address:/etc/init.d/ipsec
# rsync -r -a -v --chown=root:root pyconnector/files/pyconnector root@$target_address:/usr/bin/pyconnector
# rsync -r -a -v --chown=root:root pyconnector/files/pyconnector.init root@$target_address:/etc/init.d/pyconnector
rsync -r -a -v --chown=root:root sync-settings/files/speedtest.sh root@"$target_address":"$target_sync_path"/speedtest.sh
# rsync -r -a -v --chown=root:root speedtest-cli-dbg root@$target_address:/root/speedtest-cli-dbg

# Tests
target_site_packages=$(ssh root@"$target_address" "find $mfw_dir/usr -name tests | grep '\(site-packages\|dist-packages\)/tests' | head -1")
if [ "$target_site_packages" != "" ]; then
echo "${GREEN}Copying to $target_site_packages... ${NC}"
rsync -r -a -v runtests/files/usr/lib/python/tests/* root@"$target_address":$target_site_packages
fi

# Restd
target_site_packages=$(ssh root@"$target_address" "find $mfw_dir/usr -name restd | grep '\(site-packages\|dist-packages\)/restd' | head -1")
if [ "$target_site_packages" != "" ]; then
echo "${GREEN}Copying to $target_site_packages... ${NC}"
rsync -r -a -v restd/files/usr/lib/python/restd/* root@"$target_address":"$target_site_packages"
fi
done
9 changes: 9 additions & 0 deletions backup-scripts/files/upload-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,17 @@ function createBackup() {
debug "Backing up settings to gunzipped tar archive file"
TEMP_DIR=`mktemp -d -t ut-backup.XXXXXXX`
TEMP_DIR_NAME=$(basename $TEMP_DIR)
CP_DIR="/etc/config/captive_portal"

cp /etc/config/settings.json $TEMP_DIR
# TODO: Directory check is added for cases where upgrade from older builds
# to newer may not have the directory present. This check should probably
# be removed in future builds.
if [ -d "$CP_DIR" ] ; then
cp $CP_DIR/* $TEMP_DIR
rm -f $TEMP_DIR/captive_portal_settings
fi

tar -C /tmp -zcf $BACKUP_FILE $TEMP_DIR_NAME
rm -r $TEMP_DIR
}
Expand Down
4 changes: 4 additions & 0 deletions bctid/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ endef
TMP_BUILD_DIR:=$(PKG_BUILD_DIR)/tmp/

define Package/bctid/install
# Copy bctid categories file
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_BIN) files/categories.json $(1)/etc/config/categories.json

$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/bctid $(1)/usr/share/bctid
$(INSTALL_BIN) $(TMP_BUILD_DIR)/src/bin/bctid $(1)/usr/bin/
$(CP) $(TMP_BUILD_DIR)/src/bin/bcti.cfg $(1)/usr/share/bctid/
Expand Down
Loading