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

Device component - OpenConfig driver:

- Fixes in per-vendor specificities
- Cosmetic improvements
parent 4580bbff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,8 +61,8 @@ def generate_templates(resource_key: str, resource_value: str, delete: bool,vend
        elif "inter_instance_policies" in resource_key:
            result_templates.append(associate_RP_to_NI(data))
        elif "protocols" in resource_key:
            if vendor is None or vendor == "ADVA":
                result_templates.append(add_protocol_NI(data, vendor, delete))
            # if vendor == "ADVA": result_templates.append(add_protocol_NI(data, vendor, delete))
        elif "table_connections" in resource_key:
            result_templates.append(create_table_conns(data, delete))
        elif "interface" in resource_key:
+2 −1
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@ def compose_config( # template generation
            templates.append(JINJA_ENV.get_template('acl/acl-set/acl-entry/edit_config.xml'))
            templates.append(JINJA_ENV.get_template('acl/interfaces/ingress/edit_config.xml'))
        data : Dict[str, Any] = json.loads(resource_value)
        operation = 'delete' if delete else ''
        operation = 'delete' if delete else 'merge' # others
        #operation = 'delete' if delete else '' # ipinfusion?

        return [
            '<config>{:s}</config>'.format(
+1 −1

File changed.

Contains only whitespace changes.