summaryrefslogtreecommitdiff
path: root/op-mode-definitions/vpp_sflow.xml.in
blob: 012e867a605031cb4c9edc229f4a5e1c4d96d63a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="show">
    <children>
      <node name="vpp">
        <children>
          <node name="sflow">
            <properties>
              <help>Show VPP sFlow information</help>
            </properties>
            <command>bash -c 'if cli-shell-api existsActive vpp sflow; then sudo vppctl show sflow; else echo "vpp sflow is not configured"; fi'</command>
          </node>
        </children>
      </node>
    </children>
  </node>
</interfaceDefinition>