Changeset 53dfd4b


Ignore:
Timestamp:
Sep 16, 2009 9:56:39 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-2.00, version-3.01, version-3.02
Children:
5a03ea5
Parents:
0e366a6
Message:

optional emulab section (temporary)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r0e366a6 r53dfd4b  
    14031403        """Print the response as input to the splitter script"""
    14041404
    1405         e = resp['emulab']
    1406         p = e['project']
    1407         fields = {
    1408                 "Boss": e['boss'],
    1409                 "OpsNode": e['ops'],
    1410                 "Domain": e['domain'],
    1411                 "FileServer": e['fileServer'],
    1412                 "EventServer": e['eventServer'],
    1413                 "Project": unpack_id(p['name'])
    1414                 }
    1415         if (label != None): print >> out, "[%s]" % label
    1416 
    1417         for l, v in fields.iteritems():
    1418             print >>out, "%s: %s" % (l, v)
    1419 
    1420         for u in p['user']:
    1421             print >>out, "User: %s" % unpack_id(u['userID'])
    1422 
    1423         for a in e['fedAttr']:
    1424             print >>out, "%s: %s" % (a['attribute'], a['value'])
     1405        e = resp.get('emulab', None)
     1406        if e:
     1407            p = e['project']
     1408            fields = {
     1409                    "Boss": e['boss'],
     1410                    "OpsNode": e['ops'],
     1411                    "Domain": e['domain'],
     1412                    "FileServer": e['fileServer'],
     1413                    "EventServer": e['eventServer'],
     1414                    "Project": unpack_id(p['name'])
     1415                    }
     1416            if (label != None): print >> out, "[%s]" % label
     1417
     1418            for l, v in fields.iteritems():
     1419                print >>out, "%s: %s" % (l, v)
     1420
     1421            for u in p['user']:
     1422                print >>out, "User: %s" % unpack_id(u['userID'])
     1423
     1424            for a in e['fedAttr']:
     1425                print >>out, "%s: %s" % (a['attribute'], a['value'])
    14251426
    14261427    def __call__(self):
  • wsdl/fedd_types.xsd

    r0e366a6 r53dfd4b  
    397397    <xsd:sequence>
    398398      <xsd:element name="allocID" type="tns:IDType"/>
    399       <xsd:element name="emulab" type="tns:emulabType"/>
     399      <xsd:element name="emulab" type="tns:emulabType" minOccurs="0" maxOccurs="1"/>
    400400      <xsd:element name="when" type="xsd:dateTime" minOccurs="0" maxOccurs="1"/>
    401401      <xsd:element name="until" type="xsd:dateTime" minOccurs="0"
Note: See TracChangeset for help on using the changeset viewer.