Merge "Add the "show" attribute to the neurton attribute_schema"

This commit is contained in:
Jenkins 2013-10-02 15:04:34 +00:00 committed by Gerrit Code Review
commit d2a6f5a5f5
7 changed files with 11 additions and 4 deletions

View File

@ -43,7 +43,8 @@ class Firewall(neutron.NeutronResource):
'firewall_policy_id': _('Unique identifier of the FirewallPolicy '
'used to create the Firewall.'),
'status': _('The status of the Firewall.'),
'tenant_id': _('Id of the tenant owning the Firewall.')
'tenant_id': _('Id of the tenant owning the Firewall.'),
'show': _('All attributes.'),
}
update_allowed_keys = ('Properties',)

View File

@ -89,6 +89,7 @@ class HealthMonitor(neutron.NeutronResource):
'url_path': _('The HTTP path used in the HTTP request used by the '
'monitor to test a member health.'),
'tenant_id': _('Tenant owning the health monitor.'),
'show': _('All attributes.'),
}
def handle_create(self):

View File

@ -66,6 +66,7 @@ class Net(neutron.NeutronResource):
"subnets": _("Subnets of this network."),
"admin_state_up": _("The administrative status of the network."),
"tenant_id": _("The tenant owning this network."),
"show": _("All attributes."),
}
def handle_create(self):

View File

@ -52,7 +52,8 @@ class Port(neutron.NeutronResource):
"network_id": _("Unique identifier for the network owning the port."),
"security_groups": _("A list of security groups for the port."),
"status": _("The status of the port."),
"tenant_id": _("Tenant owning the port")
"tenant_id": _("Tenant owning the port"),
"show": _("All attributes."),
}
def add_dependencies(self, deps):

View File

@ -38,6 +38,7 @@ class Router(neutron.NeutronResource):
"name": _("Friendly name of the router."),
"admin_state_up": _("Administrative state of the router."),
"tenant_id": _("Tenant owning the router."),
"show": _("All attributes."),
}
def handle_create(self):

View File

@ -61,7 +61,8 @@ class Subnet(neutron.NeutronResource):
# dns_nameservers isn't in the api docs; is it right?
"dns_nameservers": _("List of dns nameservers."),
"enable_dhcp": _("'true' if DHCP is enabled for this subnet; 'false' "
"otherwise.")
"otherwise."),
"show": _("All attributes."),
}
@staticmethod

View File

@ -68,7 +68,8 @@ class VPNService(neutron.NeutronResource):
'subnet_id': _('The unique identifier of the subnet in which the vpn '
'service was created.'),
'tenant_id': _('The unique identifier of the tenant owning the vpn '
'service.')
'service.'),
'show': _('All attributes.'),
}
update_allowed_keys = ('Properties',)