Loading src/device/service/drivers/openconfig/templates/Tools.py +2 −2 Original line number Diff line number Diff line Loading @@ -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: Loading src/device/service/drivers/openconfig/templates/__init__.py +2 −1 Original line number Diff line number Diff line Loading @@ -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( Loading src/device/service/drivers/openconfig/templates/network_instance/edit_config.xml +1 −1 File changed.Contains only whitespace changes. Show changes Loading
src/device/service/drivers/openconfig/templates/Tools.py +2 −2 Original line number Diff line number Diff line Loading @@ -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: Loading
src/device/service/drivers/openconfig/templates/__init__.py +2 −1 Original line number Diff line number Diff line Loading @@ -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( Loading
src/device/service/drivers/openconfig/templates/network_instance/edit_config.xml +1 −1 File changed.Contains only whitespace changes. Show changes