blob: 126ce63119c48851d290b2390169664af065ac2a (
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
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="interfaces">
<properties>
<help>Show network interface information</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show_summary_extended</command>
<children>
<leafNode name="counters">
<properties>
<help>Show network interface counters</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show_counters</command>
</leafNode>
<leafNode name="detail">
<properties>
<help>Show detailed information of all interfaces</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show</command>
</leafNode>
<leafNode name="summary">
<properties>
<help>Show summary information of all interfaces</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py show_summary</command>
</leafNode>
<tagNode name="kernel">
<properties>
<completionHelp>
<script>ip -j link show | jq -r '.[].ifname'</script>
</completionHelp>
</properties>
<command>sudo ip -s link show dev $4</command>
<children>
<leafNode name="json">
<properties>
<help>Show system interface in JSON format</help>
</properties>
<command>ip -j -s -d link show dev $4</command>
</leafNode>
</children>
</tagNode>
<node name="kernel">
<properties>
<help>Show all interfaces on this system</help>
</properties>
<command>sudo ip -s link show</command>
<children>
<leafNode name="json">
<properties>
<help>Show all interfaces in JSON format</help>
</properties>
<command>ip -j -s -d link show</command>
</leafNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|