aboutsummaryrefslogtreecommitdiffstats
path: root/resources/templates/kubernetes/configmaps/eth-1drcl2bdbasemaclrn-eth-2memif-4drcl2xc-1horiz.yaml
blob: af11149288be81a1507bd588838e7b5069e1fd9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: sfc-controller-cfg
  namespace: csit
data:
  etcd.conf: |
    insecure-transport: true
    dial-timeout: 1000000000
    endpoints:
      - "172.17.0.1:22379"

  sfc.conf: |
    sfc_controller_config_version: 2
    description: $$TEST_NAME$$

    system_parameters:
      mtu: 9000

    network_pod_to_node_map:
      - pod: vnf1
        node: vswitch
      - pod: vnf2
        node: vswitch
      - pod: vnf3
        node: vswitch
      - pod: vnf4
        node: vswitch

    network_nodes:
      - metadata:
            name: vswitch
        spec:
            node_type: host
            interfaces:
            - name: $$VSWITCH_IF1$$
              if_type: ethernet
            - name: $$VSWITCH_IF2$$
              if_type: ethernet

    network_services:
      - metadata:
            name: my-network-service
        spec:
            network_pods:

              - metadata:
                  name: vnf1
                spec:
                  pod_type: vppcontainer
                  interfaces:
                    - name: port1
                      if_type: memif
                    - name: port2
                      if_type: memif

              - metadata:
                  name: vnf2
                spec:
                  pod_type: vppcontainer
                  interfaces:
                    - name: port1
                      if_type: memif
                    - name: port2
                      if_type: memif

              - metadata:
                  name: vnf3
                spec:
                  pod_type: vppcontainer
                  interfaces:
                    - name: port1
                      if_type: memif
                    - name: port2
                      if_type: memif

              - metadata:
                  name: vnf4
                spec:
                  pod_type: vppcontainer
                  interfaces:
                    - name: port1
                      if_type: memif
                    - name: port2
                      if_type: memif

            connections:

              - conn_type: l2mp # bridge eth1 to vnf1 port 1
                pod_interfaces:
                  - vnf1/port1
                node_interfaces:
                  - vswitch/$$VSWITCH_IF1$$
                l2bd:
                  name: eth1-vnf-port1
                  bd_parms:
                    flood: true
                    unknown_unicast_flood: true
                    forward: true
                    learn: true

              - conn_type: l2pp
                pod_interfaces: # l2x the ports on vnf1
                  - vnf1/port1
                  - vnf1/port2

              - conn_type: l2pp
                conn_method: direct
                pod_interfaces: # direct memif between vnf1 to vnf2
                  - vnf1/port2
                  - vnf2/port1

              - conn_type: l2pp
                pod_interfaces: # l2x the ports on vnf2
                  - vnf2/port1
                  - vnf2/port2

              - conn_type: l2pp
                conn_method: direct
                pod_interfaces: # direct memif between vnf2 to vnf3
                  - vnf2/port2
                  - vnf3/port1

              - conn_type: l2pp
                pod_interfaces: # l2x the ports on vnf3
                  - vnf3/port1
                  - vnf3/port2

              - conn_type: l2pp
                conn_method: direct
                pod_interfaces: # direct memif between vnf3 to vnf4
                  - vnf3/port2
                  - vnf4/port1

              - conn_type: l2pp
                pod_interfaces: # l2x the ports on vnf4
                  - vnf4/port1
                  - vnf4/port2

              - conn_type: l2mp # bridge eth2 to vnf4 port 2
                pod_interfaces:
                  - vnf4/port2
                node_interfaces:
                  - vswitch/$$VSWITCH_IF2$$
                l2bd:
                  name: eth2-vnf-port2
                  bd_parms:
                    flood: true
                    unknown_unicast_flood: true
                    forward: true
                    learn: true