plcapi.git
14 years agoSetting tag PLCAPI-4.3-23 PLCAPI-4.3-23
Thierry Parmentelat [Mon, 7 Sep 2009 12:39:03 +0000 (12:39 +0000)]
Setting tag PLCAPI-4.3-23
Ongoing work to add upcalls, using new SFA class
new methods BindObjectToPeer, UnBindObjectFromPeer, still for SFA
reviewed type-checking for the 3 taggable classes node-interface-slice
cleanup ald dummynet stuff
expose the 'extensions' accessors to the API
tweaked checks in AddSliceTag
GetPersons exposes roles by default
bugfix in ReportRunLevel for non-string levels
tweaks in GetSlivers ( seems that it now exposes the keys for the root context )

14 years agoSetting tag PLCAPI-4.3-23
Thierry Parmentelat [Mon, 7 Sep 2009 12:39:00 +0000 (12:39 +0000)]
Setting tag PLCAPI-4.3-23
Ongoing work to add upcalls, using new SFA class
new methods BindObjectToPeer, UnBindObjectFromPeer, still for SFA
reviewed type-checking for the 3 taggable classes node-interface-slice
cleanup ald dummynet stuff
expose the 'extensions' accessors to the API
tweaked checks in AddSliceTag
GetPersons exposes roles by default
bugfix in ReportRunLevel for non-string levels
tweaks in GetSlivers ( seems that it now exposes the keys for the root context )

14 years agoadd sfa upcalls to AddPersontToSite and DeletPersonFromSite
Tony Mack [Thu, 3 Sep 2009 17:01:17 +0000 (17:01 +0000)]
add sfa upcalls to AddPersontToSite and DeletPersonFromSite

14 years agoremove sfa upcall, it will cause the person to get delted from plc when we really...
Tony Mack [Thu, 3 Sep 2009 15:09:34 +0000 (15:09 +0000)]
remove sfa upcall, it will cause the person to get delted from plc when we really only want to remove them from the site

14 years agono need for that
Tony Mack [Thu, 3 Sep 2009 14:40:46 +0000 (14:40 +0000)]
no need for that

14 years agofix typo
Tony Mack [Thu, 3 Sep 2009 14:38:18 +0000 (14:38 +0000)]
fix typo

14 years agoadded sfa/geniwrapper upcalls to AddPersonToSite and DeletePersonFrimSite
Tony Mack [Thu, 3 Sep 2009 14:32:41 +0000 (14:32 +0000)]
added sfa/geniwrapper upcalls to AddPersonToSite and DeletePersonFrimSite

14 years agoin get_login_bases, if there are no site_ids then there are no login basees. Return...
Tony Mack [Thu, 3 Sep 2009 14:25:25 +0000 (14:25 +0000)]
in get_login_bases, if there are no site_ids then there are no login basees. Return an empty list instead of throwing an exception.

14 years agobug fix in upcalls
Anil-Kumar Vengalil [Thu, 3 Sep 2009 09:35:59 +0000 (09:35 +0000)]
bug fix in upcalls

14 years agocheck if record exists before trying to add/remove it
Tony Mack [Mon, 24 Aug 2009 20:14:03 +0000 (20:14 +0000)]
check if record exists before trying to add/remove it

14 years agono longer use sfa.plc.sfaImport to add sfa records. SFA authorities direcorty is...
Tony Mack [Mon, 24 Aug 2009 19:55:10 +0000 (19:55 +0000)]
no longer use sfa.plc.sfaImport to add sfa records. SFA authorities direcorty is owned by rood so sfaImport will fail when executed by httpd. Instead make all requests using a GeniClient connection

14 years agodont print the exceptions
Tony Mack [Tue, 18 Aug 2009 17:44:26 +0000 (17:44 +0000)]
dont print the exceptions

14 years agotype should be 'user' not 'person'
Tony Mack [Mon, 17 Aug 2009 22:09:18 +0000 (22:09 +0000)]
type should be 'user' not 'person'

14 years agoSFA object constructor now requires a argument
Tony Mack [Thu, 13 Aug 2009 15:03:22 +0000 (15:03 +0000)]
SFA object constructor now requires a argument

14 years agoNo need to import sfa.plc.api just to get a connection to PLCAPI. Just use plcapi...
Tony Mack [Thu, 13 Aug 2009 04:31:10 +0000 (04:31 +0000)]
No need to import sfa.plc.api just to get a connection to PLCAPI. Just use plcapi directly

14 years agorequired to mark peer_id of key object
Anil-Kumar Vengalil [Tue, 11 Aug 2009 17:50:14 +0000 (17:50 +0000)]
required to mark peer_id of key object

14 years agofix type
Tony Mack [Tue, 11 Aug 2009 17:06:00 +0000 (17:06 +0000)]
fix type

14 years agomove sfa package import inside of __init__()
Tony Mack [Tue, 11 Aug 2009 17:03:11 +0000 (17:03 +0000)]
move sfa package import inside of __init__()

14 years agocheck if the object is alredy bound to the peer
Tony Mack [Mon, 10 Aug 2009 19:47:41 +0000 (19:47 +0000)]
check if the object is alredy bound to the peer

14 years agoDelete the site from sfa before we delete from plc, otherwise sfa wont have enough...
Tony Mack [Tue, 4 Aug 2009 22:08:49 +0000 (22:08 +0000)]
Delete the site from sfa before we delete from plc, otherwise sfa wont have enough information to delete properly

14 years agofix bug, 'node_filter' should be 'person_filter'
Tony Mack [Tue, 4 Aug 2009 22:04:24 +0000 (22:04 +0000)]
fix bug, 'node_filter' should be 'person_filter'

14 years agoadded sfa upcalls
Tony Mack [Tue, 4 Aug 2009 02:26:52 +0000 (02:26 +0000)]
added sfa upcalls

14 years agomove package imports out of __init__()
Tony Mack [Tue, 4 Aug 2009 01:14:46 +0000 (01:14 +0000)]
move package imports out of __init__()

14 years agoinitial checkin of SFA record inport wrapper
Tony Mack [Mon, 3 Aug 2009 21:27:07 +0000 (21:27 +0000)]
initial checkin of SFA record inport wrapper

14 years agothis breaks the build. remove BinaryTest from native_methods.
Barış Metin [Mon, 3 Aug 2009 14:06:58 +0000 (14:06 +0000)]
this breaks the build. remove BinaryTest from native_methods.

14 years agoadded UnBindObjectFromPeer()
Tony Mack [Sat, 1 Aug 2009 03:45:33 +0000 (03:45 +0000)]
added UnBindObjectFromPeer()

14 years agoon second thought, do not allow expires to be set at slice-creation
Thierry Parmentelat [Sat, 25 Jul 2009 17:16:15 +0000 (17:16 +0000)]
on second thought, do not allow expires to be set at slice-creation

14 years agoremove obsolete methods
Thierry Parmentelat [Sat, 25 Jul 2009 16:58:09 +0000 (16:58 +0000)]
remove obsolete methods

14 years agocan set expires upon slice creation
Thierry Parmentelat [Thu, 23 Jul 2009 20:12:23 +0000 (20:12 +0000)]
can set expires upon slice creation

14 years agomake the extensions tag accessible through GetNodes/UpdateNode
Thierry Parmentelat [Thu, 23 Jul 2009 20:10:46 +0000 (20:10 +0000)]
make the extensions tag accessible through GetNodes/UpdateNode

14 years agofix bug in selection of special account ssh keys
Marc Fiuczynski [Tue, 21 Jul 2009 18:40:29 +0000 (18:40 +0000)]
fix bug in selection of special account ssh keys

14 years agosvn keywords
Thierry Parmentelat [Sun, 19 Jul 2009 13:18:50 +0000 (13:18 +0000)]
svn keywords

14 years agothis is getting tedious..
Thierry Parmentelat [Sun, 19 Jul 2009 13:03:16 +0000 (13:03 +0000)]
this is getting tedious..

14 years agorevised type-checking on taggable classes - previous code would reject any tag
Thierry Parmentelat [Sun, 19 Jul 2009 07:55:00 +0000 (07:55 +0000)]
revised type-checking on taggable classes - previous code would reject any tag

14 years agooops
Thierry Parmentelat [Sat, 18 Jul 2009 12:04:30 +0000 (12:04 +0000)]
oops

14 years agoFix big leak in type-checking add/update args for taggable classes
Thierry Parmentelat [Sat, 18 Jul 2009 10:53:35 +0000 (10:53 +0000)]
Fix big leak in type-checking add/update args for taggable classes
Thanks Marc for the heads up

14 years agoThierry's suggested cleanup for GetSlivers
Marc Fiuczynski [Fri, 17 Jul 2009 03:50:47 +0000 (03:50 +0000)]
Thierry's suggested cleanup for GetSlivers

14 years agofix cut-n-paste from AddSliceTag error
Marc Fiuczynski [Fri, 17 Jul 2009 02:35:12 +0000 (02:35 +0000)]
fix cut-n-paste from AddSliceTag error

14 years agomake sure to import PLC.Faults
Tony Mack [Thu, 16 Jul 2009 20:33:26 +0000 (20:33 +0000)]
make sure to import PLC.Faults

14 years agoto get 'roles' from Persons() one must also use 'role_ids' in the return fields
Marc Fiuczynski [Thu, 16 Jul 2009 20:09:11 +0000 (20:09 +0000)]
to get 'roles' from Persons() one must also use 'role_ids' in the return fields

14 years agosupport to return the ssh keys for 'site_admin' and 'root'
Marc Fiuczynski [Thu, 16 Jul 2009 19:50:43 +0000 (19:50 +0000)]
support to return the ssh keys for 'site_admin' and 'root'

14 years agoAdd/Update SliceTag of a system slice
Marc Fiuczynski [Thu, 16 Jul 2009 19:45:44 +0000 (19:45 +0000)]
Add/Update SliceTag of a system slice

14 years agoPersons.can_view() requires the 'roles' fields to be set
Marc Fiuczynski [Thu, 16 Jul 2009 15:28:26 +0000 (15:28 +0000)]
Persons.can_view() requires the 'roles' fields to be set

14 years agoprevent error when former_level is None
Stephen Soltesz [Tue, 14 Jul 2009 19:34:19 +0000 (19:34 +0000)]
prevent error when former_level is None

14 years agoSetting tag PLCAPI-4.3-22
Thierry Parmentelat [Fri, 10 Jul 2009 14:50:47 +0000 (14:50 +0000)]
Setting tag PLCAPI-4.3-22
new BindObjectToPeer method for sfa
AddSliceTag and UpdateSliceTag open to the 'node' auth method with restrictions

14 years agorename 'BindRemoteObjectToPeer into BindObjectToPeer + remove print message'
Thierry Parmentelat [Fri, 10 Jul 2009 14:45:18 +0000 (14:45 +0000)]
rename 'BindRemoteObjectToPeer into BindObjectToPeer + remove print message'

14 years agomissing import clause
Thierry Parmentelat [Fri, 10 Jul 2009 11:01:17 +0000 (11:01 +0000)]
missing import clause

14 years agonew method for attaching local objecs to a peer
Thierry Parmentelat [Thu, 9 Jul 2009 22:22:36 +0000 (22:22 +0000)]
new method for attaching local objecs to a peer
exclusively designed for sfa

14 years agoremove confusing reference to initscripts in UpdateSliceTag doc
Thierry Parmentelat [Thu, 9 Jul 2009 22:18:39 +0000 (22:18 +0000)]
remove confusing reference to initscripts in UpdateSliceTag doc

14 years agoempower NM to make these calls and limit to only add sliver specific tags
Marc Fiuczynski [Thu, 9 Jul 2009 22:10:34 +0000 (22:10 +0000)]
empower NM to make these calls and limit to only add sliver specific tags

14 years agoopen up to let node's add/update sliver tags
Marc Fiuczynski [Thu, 9 Jul 2009 13:13:12 +0000 (13:13 +0000)]
open up to let node's add/update sliver tags

14 years agoTagging module PLCAPI - PLCAPI-4.3-21
Thierry Parmentelat [Wed, 1 Jul 2009 11:23:34 +0000 (11:23 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-21
getbootmedium supports options as tags (serial, cramfs, kvariant, kargs, no-hangcheck )
reportrunlevel logs its calls only when run_level changes
pycurl more robust wrt to xmlrpclib.Transport

14 years agolog ReportRunLevel only when run_level actually changes, avoid spamming the events...
Thierry Parmentelat [Tue, 30 Jun 2009 22:09:18 +0000 (22:09 +0000)]
log ReportRunLevel only when run_level actually changes, avoid spamming the events table

14 years agoMake options into NodeTags.
Daniel Hokka Zakrisson [Thu, 25 Jun 2009 21:37:43 +0000 (21:37 +0000)]
Make options into NodeTags.

14 years agoon older versions of python xmlrpclib.Transport does not have a __init__ method
Marc Fiuczynski [Sun, 21 Jun 2009 05:26:26 +0000 (05:26 +0000)]
on older versions of python xmlrpclib.Transport does not have a __init__ method

14 years agoTagging module PLCAPI - PLCAPI-4.3-20
Thierry Parmentelat [Tue, 16 Jun 2009 10:24:48 +0000 (10:24 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-20
produce a wsdl interface
bugfix in getbootmedium for nodes with interface tags

14 years agoFix name -> tagname. Thanks to Elliot Jaffe.
Barış Metin [Wed, 10 Jun 2009 10:32:19 +0000 (10:32 +0000)]
Fix name -> tagname. Thanks to Elliot Jaffe.

14 years ago(no commit message)
Sapan Bhatia [Tue, 9 Jun 2009 20:00:35 +0000 (20:00 +0000)]

14 years agoinstall /var/www/html/wsdl/plcapi.wsdl
Thierry Parmentelat [Tue, 9 Jun 2009 14:51:56 +0000 (14:51 +0000)]
install /var/www/html/wsdl/plcapi.wsdl

14 years ago(no commit message)
Sapan Bhatia [Tue, 9 Jun 2009 12:40:34 +0000 (12:40 +0000)]

14 years agoPreparation to plug into build
Sapan Bhatia [Tue, 9 Jun 2009 12:39:57 +0000 (12:39 +0000)]
Preparation to plug into build

14 years agoThis is a first approximation and likely has hitches. Please ignore this for the...
Sapan Bhatia [Mon, 8 Jun 2009 03:26:15 +0000 (03:26 +0000)]
This is a first approximation and likely has hitches. Please ignore this for the moment.

14 years agoFirst approximation of WSDL generator for PLCAPI
Sapan Bhatia [Mon, 8 Jun 2009 03:24:40 +0000 (03:24 +0000)]
First approximation of WSDL generator for PLCAPI

14 years agoTagging module PLCAPI - PLCAPI-4.3-19
Thierry Parmentelat [Sun, 7 Jun 2009 08:50:28 +0000 (08:50 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-19
bugfix for some rare pattern-based filters

14 years agobugfix for filters based on a pattern with *f or *d
Thierry Parmentelat [Fri, 5 Jun 2009 04:19:47 +0000 (04:19 +0000)]
bugfix for filters based on a pattern with *f or *d
e.g. GetPersons({'email':'*fake*'}) resulted in an sql fragment "email LIKE '%sake%'"

14 years agoTagging module PLCAPI - PLCAPI-4.3-18
Thierry Parmentelat [Wed, 3 Jun 2009 21:41:17 +0000 (21:41 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-18
improvements in the 4.2 legacy layer

14 years agov42 backwards compatibility to make scripts like gen-sites-xml.py etc. work
Marc Fiuczynski [Tue, 2 Jun 2009 14:29:46 +0000 (14:29 +0000)]
v42 backwards compatibility to make scripts like gen-sites-xml.py etc. work

14 years agoImproved filter v42 backward compatibility handling for both argument
Marc Fiuczynski [Tue, 2 Jun 2009 14:11:23 +0000 (14:11 +0000)]
Improved filter v42 backward compatibility handling for both argument
and return filters.

14 years agoTagging module PLCAPI - PLCAPI-4.3-17
Thierry Parmentelat [Sat, 30 May 2009 10:23:36 +0000 (10:23 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-17
bugfix required for slice tags set on nodegroups

14 years agohotfix: slice_tags is a list of Table dictionary entries and slice_tag['tagname'...
Marc Fiuczynski [Fri, 29 May 2009 20:54:46 +0000 (20:54 +0000)]
hotfix: slice_tags is a list of Table dictionary entries and slice_tag['tagname'] is a unique string for which the __eq__ in Table.py croaks

14 years agoTagging module PLCAPI - PLCAPI-4.3-16
Thierry Parmentelat [Thu, 28 May 2009 07:14:54 +0000 (07:14 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-16
more complete compatibility layer - second iteration, with legacy code isolated in Legacy/

14 years agobug fix: instantiating Roles() only takes 2 args, not three.
Marc Fiuczynski [Wed, 27 May 2009 16:55:07 +0000 (16:55 +0000)]
bug fix: instantiating Roles() only takes 2 args, not three.

14 years agoUpdated can_update() and can_view() to check on "roles" capabilities
Marc Fiuczynski [Wed, 27 May 2009 16:05:14 +0000 (16:05 +0000)]
Updated can_update() and can_view() to check on "roles" capabilities
rather than use the relative values of role_ids.  The code now
functions even when a person has no roles whatsoever, which under
certain error conditions can occur.

14 years agomove legacy v42 methods to Legacy/ sub directory
Marc Fiuczynski [Tue, 26 May 2009 21:40:41 +0000 (21:40 +0000)]
move legacy v42 methods to Legacy/ sub directory

14 years agore-introduce a Legacy directory to clear out deprecated methods from the Methods...
Marc Fiuczynski [Tue, 26 May 2009 21:13:55 +0000 (21:13 +0000)]
re-introduce a Legacy directory to clear out deprecated methods from the Methods directory

14 years agophp/methods.py requires that the class in each of these Methods/* files matches the...
Marc Fiuczynski [Tue, 26 May 2009 17:19:00 +0000 (17:19 +0000)]
php/methods.py requires that the class in each of these Methods/* files matches the name of the file

14 years agoNeeded to add documentation for the class definition
Marc Fiuczynski [Tue, 26 May 2009 15:13:35 +0000 (15:13 +0000)]
Needed to add documentation for the class definition

14 years agoTagging module PLCAPI - PLCAPI-4.3-15
Thierry Parmentelat [Tue, 26 May 2009 13:48:49 +0000 (13:48 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-15
more powerful legacy layer with 4.2

14 years agoLets leave PL type checking enabled, as the type check on the 'auth'
Marc Fiuczynski [Sun, 24 May 2009 19:30:05 +0000 (19:30 +0000)]
Lets leave PL type checking enabled, as the type check on the 'auth'
argument sets up self.caller that is needed in some of the calls.

Tests of AddInterface & DeleteNodeNetwork and vice versa function
correctly.  Still need to validate the same for the others such as
SliceAttributes & SliceTags, NodeNetworkSettings & InterfaceTag, and
*Type calls.

14 years agofix import error, v2rename->v42rename
Marc Fiuczynski [Sun, 24 May 2009 00:55:23 +0000 (00:55 +0000)]
fix import error, v2rename->v42rename

14 years agomatch 'call' signature exactly
Marc Fiuczynski [Sun, 24 May 2009 00:50:18 +0000 (00:50 +0000)]
match 'call' signature exactly

14 years agofix mojito+caiprinha induced typo
Marc Fiuczynski [Sat, 23 May 2009 03:32:55 +0000 (03:32 +0000)]
fix mojito+caiprinha induced typo

14 years agoonly use has_key method on dict instances
Marc Fiuczynski [Sat, 23 May 2009 03:30:47 +0000 (03:30 +0000)]
only use has_key method on dict instances

14 years agoMore complete handling of 4.2 calls mapped to 4.3 calls.
Marc Fiuczynski [Fri, 22 May 2009 04:43:11 +0000 (04:43 +0000)]
More complete handling of 4.2 calls mapped to 4.3 calls.

14 years agoMark these as 'deprecated'
Marc Fiuczynski [Fri, 22 May 2009 04:13:42 +0000 (04:13 +0000)]
Mark these as 'deprecated'

14 years agov4.2 backwards compatibility
Marc Fiuczynski [Fri, 22 May 2009 03:55:18 +0000 (03:55 +0000)]
v4.2 backwards compatibility

14 years agomake sure GetNodes has a doc section
Marc Fiuczynski [Fri, 22 May 2009 03:54:35 +0000 (03:54 +0000)]
make sure GetNodes has a doc section

14 years agoImplemented legacy support for GetNodes using proper inheritance
Marc Fiuczynski [Fri, 22 May 2009 03:27:01 +0000 (03:27 +0000)]
Implemented legacy support for GetNodes using proper inheritance
rather than behind the scenes python trickery.

14 years agoThis replaces the existing Legacy/* support with a new approach that
Marc Fiuczynski [Thu, 21 May 2009 22:08:49 +0000 (22:08 +0000)]
This replaces the existing Legacy/* support with a new approach that
attempts to more cleanly integrate with the way the API functions in
terms of the way authentication, documentation/help, etc. operates.

14 years agoauth fix
Marc Fiuczynski [Thu, 21 May 2009 01:49:47 +0000 (01:49 +0000)]
auth fix

14 years agoget self.caller to work
Marc Fiuczynski [Thu, 21 May 2009 01:45:09 +0000 (01:45 +0000)]
get self.caller to work

14 years agobreak out mapping to auth class into map_auth() function
Marc Fiuczynski [Thu, 21 May 2009 01:44:44 +0000 (01:44 +0000)]
break out mapping to auth class into map_auth() function

14 years agorename argument type to typeval to avoid using a built-in
Marc Fiuczynski [Thu, 21 May 2009 01:42:33 +0000 (01:42 +0000)]
rename argument type to typeval to avoid using a built-in

14 years agocleaner approach to wrapping the 'call'
Marc Fiuczynski [Wed, 20 May 2009 22:16:11 +0000 (22:16 +0000)]
cleaner approach to wrapping the 'call'

14 years agosupport returning nodenetwork_ids, which are identical to interface_ids
Marc Fiuczynski [Wed, 20 May 2009 21:43:38 +0000 (21:43 +0000)]
support returning nodenetwork_ids, which are identical to interface_ids

14 years agomodularized more... probably only Get* functions work
Marc Fiuczynski [Wed, 20 May 2009 18:16:53 +0000 (18:16 +0000)]
modularized more... probably only Get* functions work

14 years agomodularize better
Marc Fiuczynski [Wed, 20 May 2009 17:53:37 +0000 (17:53 +0000)]
modularize better

14 years agoslightly better compatibility
Marc Fiuczynski [Wed, 20 May 2009 17:50:40 +0000 (17:50 +0000)]
slightly better compatibility

14 years agoTagging module PLCAPI - PLCAPI-4.3-14
Thierry Parmentelat [Fri, 15 May 2009 13:45:41 +0000 (13:45 +0000)]
Tagging module PLCAPI - PLCAPI-4.3-14
RefreshPeer sets lock per-peer to avoid multiple concurent instances
migration script has an option for running interactively

14 years agorun in batch mode using default answers.
Stephen Soltesz [Thu, 14 May 2009 19:04:04 +0000 (19:04 +0000)]
run in batch mode using default answers.