From e121d3237e72939d5a2cd13e1e5ccf4ec4ac28ac Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 28 Nov 2019 11:09:54 +0100 Subject: [PATCH] all the python scripts are for python2, and fedora31 requires to be specific --- root-context/exec/claimport | 2 +- root-context/exec/connectswitch | 2 +- root-context/exec/makeswitch | 2 +- root-context/exec/portsummary | 2 +- root-context/exec/promisc | 2 +- root-context/exec/prox | 2 +- root-context/exec/pvtfs | 2 +- root-context/exec/run_with_devices | 2 +- root-context/exec/showswitch | 2 +- root-context/exec/slice_config | 2 +- root-context/exec/vif_down | 2 +- root-context/exec/vif_up | 2 +- root-context/exec/vroute | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/root-context/exec/claimport b/root-context/exec/claimport index 3c467d9..699e663 100755 --- a/root-context/exec/claimport +++ b/root-context/exec/claimport @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # Lets a user kill processes bound to # ports in his assigned port range. To assign a port # range, set the vsys_portreservation attribute for that user. diff --git a/root-context/exec/connectswitch b/root-context/exec/connectswitch index b61e186..6933d88 100755 --- a/root-context/exec/connectswitch +++ b/root-context/exec/connectswitch @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 import sys import pwd diff --git a/root-context/exec/makeswitch b/root-context/exec/makeswitch index 2412291..7ebffef 100755 --- a/root-context/exec/makeswitch +++ b/root-context/exec/makeswitch @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 import sys import pwd diff --git a/root-context/exec/portsummary b/root-context/exec/portsummary index f800632..c8b411a 100755 --- a/root-context/exec/portsummary +++ b/root-context/exec/portsummary @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 import os import sys diff --git a/root-context/exec/promisc b/root-context/exec/promisc index 11d0911..3852864 100755 --- a/root-context/exec/promisc +++ b/root-context/exec/promisc @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # Vsys script to set a device in promisc mode # The user needs to have the device allocated to him # via the vsys_vnet tag. Set vsys_vnet to the IP address of diff --git a/root-context/exec/prox b/root-context/exec/prox index 8d1654a..c69a891 100755 --- a/root-context/exec/prox +++ b/root-context/exec/prox @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 MAX_LOCKED_MEMSIZE = 1024 * 1024 * 1024 # 1 GB SHMMAX = 1024 * 1024 * 1024 # 1 GB diff --git a/root-context/exec/pvtfs b/root-context/exec/pvtfs index b2a035a..27f3c0c 100755 --- a/root-context/exec/pvtfs +++ b/root-context/exec/pvtfs @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # Lets a user loopback-mount a private fs of a given type. # To use, configure the following vsys-attributes in addition to setting the vsys tag for the slice # - vsys_privatefs_list -> comma-separated list of desired filesystems, e.g. xfs,btrfs diff --git a/root-context/exec/run_with_devices b/root-context/exec/run_with_devices index c0b2312..d241866 100755 --- a/root-context/exec/run_with_devices +++ b/root-context/exec/run_with_devices @@ -1,4 +1,4 @@ -#!/usr/bin/python -u +#!/usr/bin/python2 -u # All vsys scripts should use STDOUT in unbuferred mode, or else sometimes your output will get bufferred and you will not see it till the buffer gets flushed. import sys diff --git a/root-context/exec/showswitch b/root-context/exec/showswitch index 35e86c2..c669669 100755 --- a/root-context/exec/showswitch +++ b/root-context/exec/showswitch @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 import sys import pwd diff --git a/root-context/exec/slice_config b/root-context/exec/slice_config index 505de5c..764e3b5 100755 --- a/root-context/exec/slice_config +++ b/root-context/exec/slice_config @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 import xmlrpclib import sys diff --git a/root-context/exec/vif_down b/root-context/exec/vif_down index fe121c7..f32400b 100755 --- a/root-context/exec/vif_down +++ b/root-context/exec/vif_down @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # VSYS script to ifdown per-slice virtual network interfaces from the root slice # Thom Haddow - 06/10/09 # diff --git a/root-context/exec/vif_up b/root-context/exec/vif_up index eb75879..4e50cab 100755 --- a/root-context/exec/vif_up +++ b/root-context/exec/vif_up @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # VSYS script to configure per-slice virtual network interfaces from the root slice # Thom Haddow - 06/10/09 # diff --git a/root-context/exec/vroute b/root-context/exec/vroute index a2858c2..1a29544 100755 --- a/root-context/exec/vroute +++ b/root-context/exec/vroute @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # VSYS script to configure routes on virtual network interfaces from the root slice # Claudio Freire - 2011/05/19 # -- 2.43.0