-#!/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.
-#!/usr/bin/python
+#!/usr/bin/python2
import sys
import pwd
-#!/usr/bin/python
+#!/usr/bin/python2
import sys
import pwd
-#!/usr/bin/python
+#!/usr/bin/python2
import os
import sys
-#!/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
-#!/usr/bin/python
+#!/usr/bin/python2
MAX_LOCKED_MEMSIZE = 1024 * 1024 * 1024 # 1 GB
SHMMAX = 1024 * 1024 * 1024 # 1 GB
-#!/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
-#!/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
-#!/usr/bin/python
+#!/usr/bin/python2
import sys
import pwd
-#!/usr/bin/python
+#!/usr/bin/python2
import xmlrpclib
import sys
-#!/usr/bin/python
+#!/usr/bin/python2
# VSYS script to ifdown per-slice virtual network interfaces from the root slice
# Thom Haddow - 06/10/09
#
-#!/usr/bin/python
+#!/usr/bin/python2
# VSYS script to configure per-slice virtual network interfaces from the root slice
# Thom Haddow - 06/10/09
#
-#!/usr/bin/python
+#!/usr/bin/python2
# VSYS script to configure routes on virtual network interfaces from the root slice
# Claudio Freire - 2011/05/19
#