Skip to content
Snippets Groups Projects
Commit ad015728 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component:

- Minor code cleanup
parent 63f5af86
No related branches found
No related tags found
3 merge requests!142Release TeraFlowSDN 2.1,!132NetSoft Hackfest extensions, gNMI Driver, gNMI L3NM Service Handler, multiple fixes,!113Draft: NetSoft Hackfest extensions
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment