blob: ff77af4307eb039afa9010bb43b74d8880527b8a (
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
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="vpp">
<children>
<node name="nat">
<properties>
<help>Show VPP NAT information</help>
</properties>
<children>
<node name="cgnat">
<properties>
<help>Show VPP CGNAT information</help>
</properties>
<children>
<node name="mappings">
<properties>
<help>Show VPP CGNAT mappings</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/vpp_nat_cgnat.py show_mappings</command>
</node>
<node name="sessions">
<properties>
<help>Show VPP CGNAT sessions</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/vpp_nat_cgnat.py show_sessions</command>
</node>
<node name="interfaces">
<properties>
<help>Show VPP CGNAT interfaces</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/vpp_nat_cgnat.py show_interfaces</command>
</node>
<node name="exclude-rules">
<properties>
<help>Show VPP CGNAT exclude rules (identity mappings)</help>
</properties>
<command>sudo ${vyos_op_scripts_dir}/vpp_nat_cgnat.py show_exclude_rules</command>
</node>
</children>
</node>
</children>
</node>
</children>
</node>
</children>
</node>
<node name="clear">
<children>
<node name="vpp">
<properties>
<help>Terminate VPP NAT sessions</help>
</properties>
<children>
<node name="cgnat">
<properties>
<help>Terminate VPP CGNAT sessions</help>
</properties>
<children>
<tagNode name="inside-address">
<properties>
<help>Inside IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<children>
<tagNode name="port">
<properties>
<help>Port</help>
<completionHelp>
<list>0-65535</list>
</completionHelp>
</properties>
<children>
<tagNode name="external-address">
<properties>
<help>External IP address</help>
<completionHelp>
<list><x.x.x.x></list>
</completionHelp>
</properties>
<children>
<tagNode name="port">
<properties>
<help>Port</help>
<completionHelp>
<list>0-65535</list>
</completionHelp>
</properties>
<command>sudo ${vyos_op_scripts_dir}/vpp_nat_cgnat.py clear_session --address $5 --port $7 --ext-address $9 --ext-port ${11}</command>
</tagNode>
</children>
</tagNode>
</children>
</tagNode>
</children>
</tagNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|