+"""
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+#
+# Copyright 2011 Cisco Systems, Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# @author: Ying Liu, Cisco Systems, Inc.
+#
+"""
def get_view_builder(req):
base_url = req.application_url
return ViewBuilder(base_url)
+"""
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2011 Cisco Systems, Inc. All rights reserved.
#
# @author: Ying Liu, Cisco Systems, Inc.
#
+"""
import logging
+"""
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2011 Cisco Systems, Inc. All rights reserved.
#
# @author: Ying Liu, Cisco Systems, Inc.
#
+"""
import webob.dec
import webob.exc
-
-
-import os
-
-
+"""
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+#
+# Copyright 2011 Cisco Systems, Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# @author: Ying Liu, Cisco Systems, Inc.
+#
+"""
def get_view_builder(req):
base_url = req.application_url
return ViewBuilder(base_url)
+"""
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+#
+# Copyright 2011 Cisco Systems, Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# @author: Ying Liu, Cisco Systems, Inc.
+#
+"""
def get_view_builder(req):
base_url = req.application_url
return ViewBuilder(base_url)
+"""
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+#
+# Copyright 2011 Cisco Systems, Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# @author: Ying Liu, Cisco Systems, Inc.
+#
+"""
def get_view_builder(req):
base_url = req.application_url
return ViewBuilder(base_url)
+"""
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2011 Cisco Systems, Inc. All rights reserved.
#
# @author: Ying Liu, Cisco Systems, Inc.
#
-
+"""
import logging
from webob import exc
+"""
# vim: tabstop=4 shiftwidth=4 softtabstop=4
-
-# Copyright 2011 OpenStack LLC.
-# All Rights Reserved.
+#
+# Copyright 2011 Cisco Systems, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-
+#
+# @author: Ying Liu, Cisco Systems, Inc.
+#
+"""
from webob import exc
from extensions import _novatenant_view as novatenant_view
+"""
# vim: tabstop=4 shiftwidth=4 softtabstop=4
-
-# Copyright 2011 OpenStack LLC.
-# All Rights Reserved.
+#
+# Copyright 2011 Cisco Systems, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
+#
+# @author: Ying Liu, Cisco Systems, Inc.
+#
+"""
from webob import exc
pass
def get_name(self):
+ """ Returns Ext Resource Name """
return "Cisco Port Profile"
def get_alias(self):
+ """ Returns Ext Resource alias """
return "Cisco Port Profile"
def get_description(self):
+ """ Returns Ext Resource Description """
return "Portprofile include QoS information"
def get_namespace(self):
+ """ Returns Ext Resource Namespace """
return ""
def get_updated(self):
+ """ Returns Ext Resource Updateed time """
return "2011-07-23T13:25:27-06:00"
def get_resources(self):
+ """ Returns all defined resources """
parent_resource = dict(member_name="tenant",
collection_name="extensions/csco/tenants")
member_actions = {'associate_portprofile': "PUT",
class PortprofilesController(common.QuantumController):
""" portprofile API controller
based on QuantumController """
-
+
_portprofile_ops_param_list = [{
'param-name': 'portprofile_name',
'required': True}, {
},
},
}
-
+
def __init__(self, plugin):
self._resource_name = 'portprofile'
+ self._plugin = plugin
super(PortprofilesController, self).__init__(plugin)
def index(self, request, tenant_id):
#added for cisco's extension
def associate_portprofile(self, request, tenant_id, id):
+ """ associate a portprofile to the port """
content_type = request.best_match_content_type()
print "Content type:%s" % content_type
#added for Cisco extension
def disassociate_portprofile(self, request, tenant_id, id):
+ """ Disassociate a portprofile from a port """
content_type = request.best_match_content_type()
print "Content type:%s" % content_type
+"""
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2011 Cisco Systems, Inc. All rights reserved.
#
# @author: Ying Liu, Cisco Systems, Inc.
#
-
+"""
import logging
from webob import exc
[PLUGIN]
-provider = quantum.plugins.cisco.l2network_plugin.L2Network
-#provider = quantum.plugins.cisco.CiscoPlugin.CiscoPaloPlugin2
+#provider = quantum.plugins.cisco.l2network_plugin.L2Network
+provider = quantum.plugins.cisco.CiscoPlugin.CiscoPaloPlugin2
#provider = quantum.plugins.SamplePlugin.FakePlugin