summaryrefslogtreecommitdiff
path: root/interface-definitions/service-aws-glb.xml.in
blob: c749fd04eb3e268a8311993c6cbdae9d6512553d (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
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="service">
    <children>
      <node name="aws">
        <properties>
          <help>Amazon Web Service</help>
          <priority>1280</priority>
        </properties>
        <children>
          <node name="glb" owner="${vyos_conf_scripts_dir}/service_aws_glb.py">
            <properties>
              <help>Gateway load-balancer tunnel handler</help>
            </properties>
            <children>
              <node name="script">
                <properties>
                  <help>Script executed on create or destroy tunnel</help>
                </properties>
                <children>
                  <leafNode name="on-create">
                    <properties>
                      <help>Script to run when interface is created</help>
                      <constraint>
                        <validator name="script"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="on-destroy">
                    <properties>
                      <help>Script to run when interface is destroyed</help>
                      <constraint>
                        <validator name="script"/>
                      </constraint>
                    </properties>
                  </leafNode>
                </children>
              </node>
              <node name="status">
                <properties>
                  <help>Status</help>
                </properties>
                <children>
                  <leafNode name="format">
                    <properties>
                      <help>Statistic format</help>
                      <completionHelp>
                        <list>simple full</list>
                      </completionHelp>
                      <valueHelp>
                        <format>simple</format>
                        <description>Simple format</description>
                      </valueHelp>
                      <valueHelp>
                        <format>full</format>
                        <description>Full format</description>
                      </valueHelp>
                      <constraint>
                        <regex>(simple|full)</regex>
                      </constraint>
                    </properties>
                  </leafNode>
                  #include <include/port-number.xml.i>
                </children>
              </node>
              <node name="threads">
                <properties>
                  <help>Threads settings</help>
                </properties>
                <children>
                  <leafNode name="tunnel">
                    <properties>
                      <help>Number of threads for each tunnel processor</help>
                      <valueHelp>
                        <format>u32:1-256</format>
                        <description>Number of threads</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 1-256"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="tunnel-affinity">
                    <properties>
                      <help>List of cores worker threads</help>
                      <valueHelp>
                        <format>&lt;idN&gt;-&lt;idM&gt;</format>
                        <description>CPU core id range (use '-' as delimiter)</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--allow-range --range 0-255"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="udp">
                    <properties>
                      <help>Number of threads for UDP receiver</help>
                      <valueHelp>
                        <format>u32:1-256</format>
                        <description>Number of threads</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 1-256"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="udp-affinity">
                    <properties>
                      <help>List of cores worker threads</help>
                      <valueHelp>
                        <format>&lt;idN&gt;-&lt;idM&gt;</format>
                        <description>CPU core id range (use '-' as delimiter)</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--allow-range --range 0-255"/>
                      </constraint>
                    </properties>
                  </leafNode>
                </children>
              </node>
            </children>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>