Changeset 600 for branches


Ignore:
Timestamp:
05/16/13 23:30:49 (12 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Add inital XMLRPC shim. See #40.

We'll start with a method to get a list of static IPs available for
assignment, and a method to allocate a netblock.

Location:
branches/stable/cgi-bin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/IPDB.pm

    r598 r600  
    2424@EXPORT_OK    = qw(
    2525        %disp_alloctypes %list_alloctypes %def_custids @citylist @poplist
    26         %IPDBacl %aclmsg
     26        %IPDBacl %aclmsg %rpcacl
    2727        &initIPDBGlobals &connectDB &finish &checkDBSanity
    2828        &addMaster &touchMaster
     
    3838%EXPORT_TAGS    = ( ALL => [qw(
    3939                %disp_alloctypes %list_alloctypes %def_custids @citylist @poplist
    40                 %IPDBacl %aclmsg
     40                %IPDBacl %aclmsg %rpcacl
    4141                &initIPDBGlobals &connectDB &finish &checkDBSanity
    4242                &addMaster &touchMaster
     
    6767        delblock        => 'delete an allocation',
    6868        );
     69
     70our %rpcacl;
    6971
    7072our $org_name = 'Example Corp';
  • branches/stable/cgi-bin/MyIPDB.pm

    r599 r600  
    2222# DB host is optional.
    2323my $dbhost = 'ipdb-db';
     24
     25# ACL for RPC shim.  A hash of arrays;  the hash keys are the remote system
     26# names, the array contents are the IPs allowed to claim that system name.
     27#%IPDB::rpcacl = (
     28#       cli_test => ['192.168.99.115','209.91.179.62'],
     29#       devel => ['10.0.10.5'],
     30#       );
    2431
    2532# Quick workaround for fixed web path.  Set this to the absolute web path to
Note: See TracChangeset for help on using the changeset viewer.