
This commit is add new module manager.py to redirect the controller requests to respective podmanager based on 'driver' field. This commit takes reference of multi-podm patch proposed here: https://review.openstack.org/#/c/445360/10 and extends the same. Partially-Implements blueprint add-vendor-extensible-framework Change-Id: I92efd4c18c75613a6365c750b09390cbe1fedc2e
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# 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.
|
|
|
|
from valence.db import models
|
|
|
|
|
|
def fake_podmanager():
|
|
return {
|
|
"name": "fake-podm",
|
|
"podm_id": "fake-id",
|
|
"url": "https://10.240.212.123",
|
|
"driver": "redfishv1",
|
|
"authentication": [
|
|
{
|
|
"type": "basic",
|
|
"auth_items": {
|
|
"username": "fake-user",
|
|
"password": "fake-pass"
|
|
}
|
|
}]
|
|
}
|
|
|
|
|
|
def fake_podm_object():
|
|
return models.PodManager(**fake_podmanager())
|