Resolve "(CTTC) Implement NBI connector to manage Network Access Control Lists (ACLs)"

Closes #113 (closed)

Merge request reports

Loading
+1 −0
Changes for proto/acl.proto: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ message AclMatch {
  uint32 dst_port         = 6;
  uint32 start_mpls_label = 7;
  uint32 end_mpls_label   = 8;
  string tcp_flags        = 9;
}

message AclAction {
+34 −0
Changes for src/device/service/drivers/openconfig/templates/acl/acl-set/acl-entry/edit_config_ipinfusion_proprietary.xml: 34 added lines, 0 removed lines.
Original line number Diff line number Diff line
<acl xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-acl">
  <acl-sets>
    <acl-set {% if operation == 'delete' %}operation="delete"{% endif %}>
      <name>{{name}}</name>
      {% if type is defined %}<type>{{type}}</type>{% endif %}
      <config>
        <name>{{name}}</name>
        {% if type is defined %}<type>{{type}}</type>{% endif %}
      </config>
      {% if operation != 'delete' %}
      <acl-entries>
        <acl-entry>
          <sequence-id>{{sequence_id}}</sequence-id>
          <config>
            <sequence-id>{{sequence_id}}</sequence-id>
          </config>
          <ipv4>
            <config>
              <source-address>{{source_address}}</source-address>
              <destination-address>{{destination_address}}</destination-address>
              <dscp>{{dscp}}</dscp>
              <protocol-tcp />
              <tcp-source-port>{{source_port}}</tcp-source-port>
              <tcp-destination-port>{{destination_port}}</tcp-destination-port>
              <tcp-flags>{{tcp_flags}}</tcp-flags>
              <forwarding-action>{{forwarding_action}}</forwarding-action>
            </config>
          </ipv4>
        </acl-entry>
      </acl-entries>
      {% endif %}
    </acl-set>
  </acl-sets>
</acl>
 No newline at end of file
+26 −0
Changes for src/device/service/drivers/openconfig/templates/acl/interfaces/ingress/edit_config_ipinfusion_proprietary.xml: 26 added lines, 0 removed lines.
Original line number Diff line number Diff line
<acl xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-acl">
  <interfaces>
    <interface>
      <name>{{interface}}</name>
      <config>
        <name>{{interface}}</name>
      </config>
      <ingress-acl-sets>
        <ingress-acl-set {% if operation == "delete" %}operation="delete"{% endif %}>
          {% if type is defined %}<acl-type>{{type}}</acl-type>{% endif %}
          <access-groups>
            <access-group>
              <acl-name>{{name}}</acl-name>
              <config>
                <acl-name>{{name}}</acl-name>
              </config>
            </access-group>
          </access-groups>
          <config>
            {% if type is defined %}<acl-type>{{type}}</acl-type>{% endif %}
          </config>
        </ingress-acl-set>
      </ingress-acl-sets>
    </interface>
  </interfaces>
</acl>
 No newline at end of file
+9 −0
Changes for src/device/service/drivers/openconfig/templates/acl/interfaces/ingress/enable_ingress_filter.xml: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
<profiles xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-platform"> 
	<hardware-profile> 
	<filters> 
	<config> 
		<ingress-ipv4-extended {% if operation == "delete" %}operation="delete"{% endif %}></ingress-ipv4-extended>
	</config> 
	</filters> 
	</hardware-profile> 
</profiles>
 No newline at end of file
+13 −0
Changes for src/device/service/drivers/openconfig/templates/acl/__init__.py: 13 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# 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.
 No newline at end of file
Loading
Loading