summaryrefslogtreecommitdiff
path: root/op-mode-definitions/force-netns.xml.in
blob: b9dc2c1e828ab3daddad10aae03c0c4c33040979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="force">
    <children>
      <tagNode name="netns">
        <properties>
          <help>Execute shell in given Network Namespace</help>
          <completionHelp>
            <path>netns name</path>
          </completionHelp>
        </properties>
        <command>sudo ip netns exec $3 su - $(whoami)</command>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>