Skip to content

field name is invalid: VPP interface logical name exceeds the length limit (63 characters) #33

Description

@stanislav-chlebec

sfc-controller generates probably logical interface names too long to digest by VPP.
I got this error message from ligato/vpp-agent

  • executed operations (2019-03-22 10:34:30.507 +0000 UTC -> 2019-03-22 10:34:30.507 +0000 UTC, dur: 0s):
    1. DELETE [NOOP]:
      • key: config/vpp/v2/interfaces/IF_VXLAN_L2PP_NET_SRVC_Y_CONN_1_FROM_contivvpp_vnf3_p1_TO_vppagent_vnf4_p1_VNI_5001
      • value: { name:"IF_VXLAN_L2PP_NET_SRVC_Y_CONN_1_FROM_contivvpp_vnf3_p1_TO_vppagent_vnf4_p1_VNI_5001" type:VXLAN_TUNNEL enabled:true vxlan:<src_address:"192.168.30.30" dst_address:"192.168.30.31" vni:5001 > }
      • prev-error: field name is invalid: VPP interface logical name exceeds the length limit (63 characters)

Here is configuration file for sfc-controller it is taken from https://github.com/contiv/vpp/blob/master/k8s/examples/sfc-controller/sfc-controller.yaml:
sfc.conf: |
sfc_controller_config_version: 2
description: 2 vnf chains spanning 2 hosts, memif's and vxlan tunnels

system_parameters:
  memif_directory: "/var/run/contiv"

ipam_pools:  # allocate internode vxlan mesh enpoints from a pool
  - metadata:
      name: "Q"
      labels:
    spec:
      scope: system
      network: 192.168.30.0/24
      start_range: 30
      end_range: 40

network_nodes:
  - metadata:
      name: "K0"
    spec:
      node_type: host
      interfaces:
        - name: VirtualFunctionEthernet1/0/2
          bypass_renderer: true
          if_type: ethernet
          ip_addresses:
            - "192.168.16.1/24"
  - metadata:
      name: "K1"
    spec:
      node_type: host
      interfaces:
        - name: VirtualFunctionEthernet1/0/2
          bypass_renderer: true
          if_type: ethernet
          ip_addresses:
            - "192.168.16.2/24"

network_services:
  - metadata:
      name: "X"
    spec:
      network_pods:
        - metadata:
            name: vnf1
          spec:
            pod_type: vppcontainer
            interfaces:
              - name: "p1"
                if_type: memif
                ip_addresses:
                  - "10.0.1.1/24"
        - metadata:
            name: vnf2
          spec:
            pod_type: vppcontainer
            interfaces:
              - name: "p1"
                if_type: memif
                ip_addresses:
                  - "10.0.1.2/24"
      connections:
        - conn_type: l2pp
          conn_method: vswitch
          network_node_overlay_name: "Z"
          pod_interfaces:
            - vnf1/p1
            - vnf2/p1
  - metadata:
      name: "Y"
    spec:
      network_pods:
        - metadata:
            name: vnf3
          spec:
            pod_type: vppcontainer
            interfaces:
              - name: "p1"
                if_type: memif
                ip_addresses:
                  - "10.0.1.1/24"
        - metadata:
            name: vnf4
          spec:
            pod_type: vppcontainer
            interfaces:
              - name: "p1"
                if_type: memif
                ip_addresses:
                  - "10.0.1.2/24"
      connections:
        - conn_type: l2pp
          conn_method: vswitch
          network_node_overlay_name: "Z"
          pod_interfaces:
            - vnf3/p1
            - vnf4/p1

network_node_overlays:
  - metadata:
      name: "Z"
    spec:
      service_mesh_type: mesh
      connection_type: vxlan
      vxlan_mesh_parms:
        vni_range_start: 5000
        vni_range_end: 5999
        loopback_ipam_pool_name: Q
        create_loopback_interface: true
        create_loopback_static_routes: true

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions