Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stanislav-chlebec opened this issue Mar 22, 2019 · 2 comments

Comments

@stanislav-chlebec
Copy link
Contributor

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
@jhnbrns
Copy link
Contributor

jhnbrns commented Mar 24, 2019 via email

@stanislav-chlebec
Copy link
Contributor Author

#29 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants