Commit ad015728 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component:

- Minor code cleanup
parent 63f5af86
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
# 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 functools, re
from typing import Any, List, Optional, Tuple, Union
from common.method_wrappers.ServiceExceptions import NotFoundException
+0 −9
Original line number Diff line number Diff line
@@ -27,12 +27,6 @@ def setup_config_rules(
    json_settings          : Dict = service_settings.value
    json_endpoint_settings : Dict = endpoint_settings.value

    if service_settings  is None: return []
    if endpoint_settings is None: return []

    json_settings          : Dict = service_settings.value
    json_endpoint_settings : Dict = endpoint_settings.value

    #mtu                 = json_settings.get('mtu',                 1450 )    # 1512
    #address_families    = json_settings.get('address_families',    []   )    # ['IPV4']
    #bgp_as              = json_settings.get('bgp_as',              0    )    # 65000
@@ -98,9 +92,6 @@ def teardown_config_rules(
    json_settings          : Dict = service_settings.value
    json_endpoint_settings : Dict = endpoint_settings.value

    if service_settings  is None: return []
    if endpoint_settings is None: return []

    #json_settings          : Dict = service_settings.value
    json_endpoint_settings : Dict = endpoint_settings.value

+0 −3
Original line number Diff line number Diff line
@@ -29,9 +29,6 @@ def setup_config_rules(
    json_settings          : Dict = service_settings.value
    json_endpoint_settings : Dict = endpoint_settings.value

    json_settings          : Dict = {} if service_settings  is None else service_settings.value
    json_endpoint_settings : Dict = {} if endpoint_settings is None else endpoint_settings.value

    mtu                       = json_settings.get('mtu',                          1450     )  # 1512
    #address_families         = json_settings.get('address_families',             []       )  # ['IPV4']
    bgp_as                    = json_settings.get('bgp_as',                       65000    )  # 65000