Skip to content

Policy Attachment#

QoS → PAPolicy Attachments

A brief introduction to QoS

Quality of Service (QoS) is a set of technologies and mechanisms used to manage traffic prioritization, often but not exclusively used in scenarios of network congestion. A full explanation of QoS is beyond the scope of this documentation, as the concepts are often as complex as the implementation of them on various network operating systems, along with chip-specific capabilities and limitations.

The PolicyAttachment is a resource that configures IngressPolicies and EgressPolicies on a subinterface.

PolicyDeployment vs PolicyAttachment#

Some parameters like the queue mapping are configured for all subinterfaces on the interface: this is done by the PolicyDeployment, which this resource automatically emits as a derived resource.

Other parameters such as rewrite policies and classifiers are configured on the sub-interface level: this is done by the PolicyAttachment.

Dependencies#

IngressPolicy#

The PolicyAttachment deploys QoS policies onto a node. If IngressPolicies are used, these must be created first.

EgressPolicy#

The PolicyAttachment deploys QoS policies onto a node. If EgressPolicies are used, these must be created first.

Referenced resources#

The PolicyAttachment does not reference any other EDA resources.

Examples#

apiVersion: qos.eda.nokia.com/v2
kind: PolicyAttachment
metadata:
  labels:
    eda.nokia.com/source: derived
  name: edgeinterface-my-datacenter
  namespace: scale-across
spec:
  attachments:
    - interface: dc1-leaf-1-ethernet-1-6
      interfaceType: Access
      subInterfaceIndex: 1
    - interface: dc1-leaf-1-ethernet-1-7
      interfaceType: Access
      subInterfaceIndex: 1
    - interface: dc1-leaf-2-ethernet-1-1
      interfaceType: Access
      subInterfaceIndex: 1
    - interface: dc1-leaf-2-ethernet-1-2
      interfaceType: Access
      subInterfaceIndex: 1
  egressPolicy: egress-backend-my-datacenter
  ingressPolicy: edgeinterface-ingress-my-datacenter
cat << 'EOF' | kubectl apply -f -
apiVersion: qos.eda.nokia.com/v2
kind: PolicyAttachment
metadata:
  labels:
    eda.nokia.com/source: derived
  name: edgeinterface-my-datacenter
  namespace: scale-across
spec:
  attachments:
    - interface: dc1-leaf-1-ethernet-1-6
      interfaceType: Access
      subInterfaceIndex: 1
    - interface: dc1-leaf-1-ethernet-1-7
      interfaceType: Access
      subInterfaceIndex: 1
    - interface: dc1-leaf-2-ethernet-1-1
      interfaceType: Access
      subInterfaceIndex: 1
    - interface: dc1-leaf-2-ethernet-1-2
      interfaceType: Access
      subInterfaceIndex: 1
  egressPolicy: egress-backend-my-datacenter
  ingressPolicy: edgeinterface-ingress-my-datacenter
EOF

Custom Resource Definition#

To browse the Custom Resource Definition go to crd.eda.dev.

PolicyAttachment

qos.eda.nokia.com / v2

SPEC

PolicyAttachmentSpec defines the desired state of PolicyAttachment

  • #
  • #
  • #

STATUS

PolicyAttachmentStatus defines the observed state of PolicyAttachment