~liv3d/maas/windows_allow_all

« back to all changes in this revision

Viewing changes to src/provisioningserver/rpc/cluster.py

  • Committer: MAAS Lander
  • Author(s): Blake Rouse
  • Date: 2017-03-22 20:39:41 UTC
  • mfrom: (5830.4.4 storage-driver)
  • Revision ID: maas_lander-20170322203941-77lk1s8tp3gimwin
[r=newell-jensen][bug=][author=blake-rouse] Add the base StorageDriver and boiler plate to support a new driver type. Add the ability for a PodDriver to discover other storage systems by returning discovered storage systems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    errors = []
113
113
 
114
114
 
 
115
class DescribeStorageTypes(amp.Command):
 
116
    """Get a JSON Schema describing this rack's storage types.
 
117
 
 
118
    :since: 2.2
 
119
    """
 
120
 
 
121
    arguments = []
 
122
    response = [
 
123
        (b"storage_types", StructureAsJSON()),
 
124
    ]
 
125
    errors = []
 
126
 
 
127
 
115
128
class ListSupportedArchitectures(amp.Command):
116
129
    """Report the cluster's supported architectures.
117
130