pyplnet.git
13 years agoMerge branch 'master' of dhozac@git.planet-lab.org:/git/pyplnet
Daniel Hokka Zakrisson [Wed, 9 Feb 2011 18:30:58 +0000 (13:30 -0500)]
Merge branch 'master' of dhozac@git.planet-lab.org:/git/pyplnet

13 years agoUse an incrementer instead of something based on the name.
Daniel Hokka Zakrisson [Wed, 9 Feb 2011 18:30:51 +0000 (13:30 -0500)]
Use an incrementer instead of something based on the name.

13 years agomake tags ; no svn-keywords
Thierry Parmentelat [Wed, 9 Feb 2011 09:15:42 +0000 (10:15 +0100)]
make tags ; no svn-keywords

13 years agoprotect shell variables in ifcfg files, for lines like
Thierry Parmentelat [Tue, 8 Feb 2011 14:26:20 +0000 (15:26 +0100)]
protect shell variables in ifcfg files, for lines like
DHCLIENTARGS"-R subnet-mask"

13 years agoSetting tag pyplnet-4.3-8 pyplnet-4.3-8
Thierry Parmentelat [Mon, 24 Jan 2011 03:40:03 +0000 (04:40 +0100)]
Setting tag pyplnet-4.3-8
no semantic change - just fixed specfile for git URL

13 years agofix URL in specfile - rm svn-keywords
Thierry Parmentelat [Wed, 5 Jan 2011 16:59:36 +0000 (17:59 +0100)]
fix URL in specfile - rm svn-keywords

13 years agoSetting tag pyplnet-4.3-7 pyplnet-4.3-7
Daniel Hokka Zakrisson [Thu, 9 Dec 2010 17:18:54 +0000 (12:18 -0500)]
Setting tag pyplnet-4.3-7
Secondary interface fixes and features.

13 years agoFixes for a little bit of everything.
Daniel Hokka Zakrisson [Wed, 8 Dec 2010 00:52:52 +0000 (19:52 -0500)]
Fixes for a little bit of everything.

13 years agoUse source based routing if secondary interfaces specify different gateway.
Daniel Hokka Zakrisson [Tue, 7 Dec 2010 22:33:26 +0000 (17:33 -0500)]
Use source based routing if secondary interfaces specify different gateway.

13 years agoFix some basics...
Daniel Hokka Zakrisson [Tue, 7 Dec 2010 21:26:20 +0000 (16:26 -0500)]
Fix some basics...

14 years agoSetting tag pyplnet-4.3-6
Thierry Parmentelat [Wed, 28 Apr 2010 07:24:29 +0000 (07:24 +0000)]
Setting tag pyplnet-4.3-6
aliases don't show up in /sys, so use /sbin/ip to get the configured IP addresses instead

14 years agocleaned up and tested again
Thierry Parmentelat [Wed, 28 Apr 2010 07:14:33 +0000 (07:14 +0000)]
cleaned up and tested again

14 years agoupdated gifconf() function
Marc Fiuczynski [Tue, 2 Mar 2010 15:23:18 +0000 (15:23 +0000)]
updated gifconf() function

14 years agoAliases don't show up in /sys, so use /sbin/ip to get the configured IP addresses...
Daniel Hokka Zakrisson [Mon, 1 Mar 2010 23:35:33 +0000 (23:35 +0000)]
Aliases don't show up in /sys, so use /sbin/ip to get the configured IP addresses instead.

14 years agoSetting tag pyplnet-4.3-5
Thierry Parmentelat [Thu, 11 Feb 2010 15:22:56 +0000 (15:22 +0000)]
Setting tag pyplnet-4.3-5
This is needed for 5.0, as GetSlivers now exposes 'interfaces' and no 'networks' anymore
this code can handle both..

14 years agocan cope with 4.3 ('networks') or 5.0 ('interfaces') + more consistent namings
Thierry Parmentelat [Mon, 8 Feb 2010 16:29:44 +0000 (16:29 +0000)]
can cope with 4.3 ('networks') or 5.0 ('interfaces') + more consistent namings

14 years agoOnly set DNS1 and DNS2 for the primary network, if they exist.
Daniel Hokka Zakrisson [Sat, 30 Jan 2010 03:43:20 +0000 (03:43 +0000)]
Only set DNS1 and DNS2 for the primary network, if they exist.

15 years agoSetting tag pyplnet-4.3-4
Thierry Parmentelat [Tue, 29 Sep 2009 04:23:04 +0000 (04:23 +0000)]
Setting tag pyplnet-4.3-4
alias without a mac address: fix runtime error while issuing warning

15 years agofixed runtime error
Thierry Parmentelat [Tue, 22 Sep 2009 14:54:40 +0000 (14:54 +0000)]
fixed runtime error

15 years agoTagging module pyplnet - pyplnet-4.3-3
Stephen Soltesz [Tue, 9 Jun 2009 17:41:22 +0000 (17:41 +0000)]
Tagging module pyplnet - pyplnet-4.3-3
this patch addresses mlab and other multi-interface node confgurations where
the generated boot image and network config files are mis-named.

15 years agosort list on is_primary rather than interface_id. this is guaranteed to have
Stephen Soltesz [Mon, 8 Jun 2009 17:42:27 +0000 (17:42 +0000)]
sort list on is_primary rather than interface_id.  this is guaranteed to have
the primary interface first.

15 years agoaddresses one bug that failed to create ifcfg-eth0 for mlab boot images.
Stephen Soltesz [Mon, 8 Jun 2009 16:10:46 +0000 (16:10 +0000)]
addresses one bug that failed to create ifcfg-eth0 for mlab boot images.

Because the variable 'interface' is decremented as each interface is processed,
by the time the primary, is_primary=True interface is reached, the device
name "eth%s" % interface, is not eth0, but, something like eth-4, or eth-12.

This patch sorts the interfaces, implicitly placing the primary (first created)
interface first.  There is a lot of room for improvement to how this script
handles interfaces and how it chooses the primary interface.

15 years agoTagging module pyplnet - pyplnet-4.3-2
Thierry Parmentelat [Wed, 22 Apr 2009 18:57:51 +0000 (18:57 +0000)]
Tagging module pyplnet - pyplnet-4.3-2
handle wireless settings back again

15 years agohandle wireless settings back again - somehow had dropped off
Thierry Parmentelat [Wed, 22 Apr 2009 18:55:48 +0000 (18:55 +0000)]
handle wireless settings back again - somehow had dropped off

15 years agoTagging module pyplnet - pyplnet-4.3-1
Thierry Parmentelat [Fri, 17 Apr 2009 11:00:24 +0000 (11:00 +0000)]
Tagging module pyplnet - pyplnet-4.3-1
fixes for 4.3

15 years agoin 4.3 InterfaceTag (and NodeNetworkSetting) has "tagname" key instead of "name"
Barış Metin [Thu, 16 Apr 2009 13:46:12 +0000 (13:46 +0000)]
in 4.3 InterfaceTag (and NodeNetworkSetting) has "tagname" key instead of "name"

15 years agoblacklist testing
Marc Fiuczynski [Wed, 15 Apr 2009 18:15:14 +0000 (18:15 +0000)]
blacklist testing

15 years agoImproved modprobe input() method.
Marc Fiuczynski [Fri, 27 Feb 2009 11:26:45 +0000 (11:26 +0000)]
Improved modprobe input() method.
- improves parsing handling
- adds support for 'include' commands

15 years ago'program' arg belongs with m.output, not m.input. Putting a try: ... except: pass...
Marc Fiuczynski [Tue, 24 Feb 2009 21:51:23 +0000 (21:51 +0000)]
'program' arg belongs with m.output, not m.input.  Putting a try: ... except: pass around m.input() unfortunately masked the exception that python was likely raising in response to passing an extra arg to m.input.

15 years agohorrible hack to have a single plnet work with both the new and old api
Marc Fiuczynski [Mon, 23 Feb 2009 23:09:20 +0000 (23:09 +0000)]
horrible hack to have a single plnet work with both the new and old api

15 years agoIf /sys/class/net doesn't exist, use an empty list.
Daniel Hokka Zakrisson [Sat, 13 Dec 2008 19:14:22 +0000 (19:14 +0000)]
If /sys/class/net doesn't exist, use an empty list.

15 years agoCommit 11328 for trunk.
Daniel Hokka Zakrisson [Fri, 12 Dec 2008 21:19:38 +0000 (21:19 +0000)]
Commit 11328 for trunk.

15 years agoAdd DNS* settings for static configuration.
Daniel Hokka Zakrisson [Mon, 8 Dec 2008 17:00:50 +0000 (17:00 +0000)]
Add DNS* settings for static configuration.

15 years agoDon't quote the basic variables, apparently things like udev don't parse quotes.
Daniel Hokka Zakrisson [Sun, 7 Dec 2008 17:45:52 +0000 (17:45 +0000)]
Don't quote the basic variables, apparently things like udev don't parse quotes.

15 years agooops, that was wrong, created /usr/bin/plnet/ as a directory
Thierry Parmentelat [Sun, 7 Dec 2008 14:39:36 +0000 (14:39 +0000)]
oops, that was wrong, created /usr/bin/plnet/ as a directory

15 years agoCreate the directories and use root for the network file.
Daniel Hokka Zakrisson [Fri, 5 Dec 2008 16:49:57 +0000 (16:49 +0000)]
Create the directories and use root for the network file.

15 years agoAdd the gateway for static networks.
Daniel Hokka Zakrisson [Fri, 5 Dec 2008 16:25:59 +0000 (16:25 +0000)]
Add the gateway for static networks.

15 years agoAdd PRIMARY=yes to the correct configuration file.
Daniel Hokka Zakrisson [Fri, 5 Dec 2008 14:26:22 +0000 (14:26 +0000)]
Add PRIMARY=yes to the correct configuration file.

15 years agoagain
Thierry Parmentelat [Fri, 5 Dec 2008 06:33:19 +0000 (06:33 +0000)]
again

15 years agoagain
Thierry Parmentelat [Fri, 5 Dec 2008 06:19:51 +0000 (06:19 +0000)]
again

15 years agobroken build
Thierry Parmentelat [Fri, 5 Dec 2008 05:57:07 +0000 (05:57 +0000)]
broken build

15 years agoMake dhclient persistent, so transient network failures don't make nodes unreachable.
Daniel Hokka Zakrisson [Thu, 4 Dec 2008 22:04:23 +0000 (22:04 +0000)]
Make dhclient persistent, so transient network failures don't make nodes unreachable.

15 years agoRemove unused temporary files.
Daniel Hokka Zakrisson [Thu, 4 Dec 2008 21:39:14 +0000 (21:39 +0000)]
Remove unused temporary files.

15 years agoDon't whine about comments in modprobe.conf.
Daniel Hokka Zakrisson [Thu, 4 Dec 2008 21:01:37 +0000 (21:01 +0000)]
Don't whine about comments in modprobe.conf.
Allow users to specify the program to put in the comment.

15 years agoMake the plnet module a script that uses plcsh to get info for a node.
Daniel Hokka Zakrisson [Thu, 4 Dec 2008 19:41:50 +0000 (19:41 +0000)]
Make the plnet module a script that uses plcsh to get info for a node.

15 years agoos.tmpnam is unsafe.
Daniel Hokka Zakrisson [Thu, 4 Dec 2008 14:42:10 +0000 (14:42 +0000)]
os.tmpnam is unsafe.

15 years agoAdd trunk version.
Daniel Hokka Zakrisson [Wed, 3 Dec 2008 17:19:02 +0000 (17:19 +0000)]
Add trunk version.

15 years agoSplit network configuration logic from NM
Daniel Hokka Zakrisson [Tue, 2 Dec 2008 21:28:45 +0000 (21:28 +0000)]
Split network configuration logic from NM