X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Flcm_utils.py;h=687da413a82f2cb8c4b08f2b74ea78a479a3f162;hb=ed7f6d409b6dfa4833898a774aaadcda92be94e6;hp=2c84356eb16e687f54e654886ec6679217e52c70;hpb=c2033f23c8111a172f70873beda52735e23f41a6;p=osm%2FLCM.git diff --git a/osm_lcm/lcm_utils.py b/osm_lcm/lcm_utils.py index 2c84356..687da41 100644 --- a/osm_lcm/lcm_utils.py +++ b/osm_lcm/lcm_utils.py @@ -1,6 +1,20 @@ -#!/usr/bin/python3 # -*- coding: utf-8 -*- +## +# Copyright 2018 Telefonica S.A. +# +# 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 collections import OrderedDict from osm_common.dbbase import DbException @@ -16,6 +30,10 @@ class LcmExceptionNoMgmtIP(LcmException): pass +class LcmExceptionExit(LcmException): + pass + + def versiontuple(v): """utility for compare dot separate versions. Fills with zeros to proper number comparison package version will be something like 4.0.1.post11+gb3f024d.dirty-1. Where 4.0.1 is the git tag, postXX is the @@ -42,6 +60,7 @@ class TaskRegistry: "ns": {}, "nsi": {}, "vim_account": {}, + "wim_account": {}, "sdn": {}, }