See the License for the specific language governing permissions and
limitations under the License.
+
Micro service of vnf resource management.
See the License for the specific language governing permissions and
limitations under the License.
-->
+
+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
# 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.
-#
+
DIRNAME=`dirname $0`
HOME=`cd $DIRNAME/; pwd`
done
echo "init resource management database success!"
exit 0
-
-- 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.
---
/******************drop old database and user***************************/
GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION;
-FLUSH PRIVILEGES;
\ No newline at end of file
+FLUSH PRIVILEGES;
-- 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.
---
+
use gvnfm;
the avoidance of doubt, this paragraph does not form part of the
public licenses.
-Creative Commons may be contacted at creativecommons.org.
\ No newline at end of file
+Creative Commons may be contacted at creativecommons.org.
while [ ! -f logs/runtime_res.log ]; do
sleep 1
done
-tail -F logs/runtime_res.log
\ No newline at end of file
+tail -F logs/runtime_res.log
# 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.
+
+
pip install -r requirements.txt
# See the License for the specific language governing permissions and
# limitations under the License.
+
import os
import sys
See the License for the specific language governing permissions and
limitations under the License.11
-->
+
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.onap.vfc.gvnfm.vnfres</groupId>
# 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.
+
+
import os
# [MSB]
# 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 django.db import models
def __unicode__(self):
return '%s' % self.name
-
-
-
-
-
# 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 django.test import TestCase, Client
from rest_framework import status
def test_swagger_ok(self):
resp = self.client.get("/api/vnfres/v1/swagger.json", format='json')
- self.assertEqual(resp.status_code, status.HTTP_200_OK, resp.content)
\ No newline at end of file
+ self.assertEqual(resp.status_code, status.HTTP_200_OK, resp.content)
# See the License for the specific language governing permissions and
# limitations under the License.
+
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
# 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.
+
+
import json
import logging
import os
}
return cps_data
+
@api_view(http_method_names=['GET'])
def get_volumes(request, *args, **kwargs):
logger.debug("Query all the volumes by vnfInstanceId[%s]", fun_name())
f = open(json_file)
json_data = json.JSONDecoder().decode(f.read())
f.close()
- return Response(json_data)
\ No newline at end of file
+ return Response(json_data)
# See the License for the specific language governing permissions and
# limitations under the License.
+
import os
import sys
# See the License for the specific language governing permissions and
# limitations under the License.
+
from django.conf.urls import include, url
from res.pub.config.config import REG_TO_MSB_WHEN_START, REG_TO_MSB_REG_URL, REG_TO_MSB_REG_PARAM
# 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.
+
+
nohup python manage.py runserver 127.0.0.1:8802 > /dev/null &
# 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.
+
+
ps auxww | grep 'manage.py runserver 127.0.0.1:8802' | awk '{print $2}' | xargs kill -9