-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
op-mode: T6694: Move some op-mode commands in the "execute" family
'force netns' — move to 'execute shell netns'. 'force vrf'— move to 'execute shell vrf'. 'force owping' — move to 'execute owping'. 'force twping' — move to 'execute twping'. 'monitor bandwidth-test' — move to 'execute bandwidth-test`. 'telnet' — move to 'execute telnet'
- Loading branch information
1 parent
d739a10
commit 65622a7
Showing
8 changed files
with
57 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<interfaceDefinition> | ||
<node name="execute"> | ||
<children> | ||
<node name="shell"> | ||
<properties> | ||
<help>Execute shell</help> | ||
</properties> | ||
<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 $4 su - $(whoami)</command> | ||
</tagNode> | ||
<tagNode name="vrf"> | ||
<properties> | ||
<help>Execute shell in given VRF instance</help> | ||
<completionHelp> | ||
<path>vrf name</path> | ||
</completionHelp> | ||
</properties> | ||
<command>sudo ip vrf exec $4 su - $(whoami)</command> | ||
</tagNode> | ||
</children> | ||
</node> | ||
</children> | ||
</node> | ||
</interfaceDefinition> |
2 changes: 1 addition & 1 deletion
2
op-mode-definitions/force-wamp.xml.in → op-mode-definitions/execute-wamp.xml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
<?xml version="1.0"?> | ||
<interfaceDefinition> | ||
<node name="telnet"> | ||
<properties> | ||
<help>Telnet to a node</help> | ||
</properties> | ||
<node name="execute"> | ||
<children> | ||
<tagNode name="to"> | ||
<node name="telnet"> | ||
<properties> | ||
<help>Telnet to a host</help> | ||
<completionHelp> | ||
<list><hostname> <x.x.x.x> <h:h:h:h:h:h:h:h></list> | ||
</completionHelp> | ||
<help>Telnet to a node</help> | ||
</properties> | ||
<command>/usr/bin/telnet $3</command> | ||
<children> | ||
<tagNode name="port"> | ||
<tagNode name="to"> | ||
<properties> | ||
<help>Telnet to a host:port</help> | ||
<help>Telnet to a host</help> | ||
<completionHelp> | ||
<list><0-65535></list> | ||
<list><hostname> <x.x.x.x> <h:h:h:h:h:h:h:h></list> | ||
</completionHelp> | ||
</properties> | ||
<command>/usr/bin/telnet $3 $5</command> | ||
<command>/usr/bin/telnet $4</command> | ||
<children> | ||
<tagNode name="port"> | ||
<properties> | ||
<help>Telnet to a host:port</help> | ||
<completionHelp> | ||
<list><0-65535></list> | ||
</completionHelp> | ||
</properties> | ||
<command>/usr/bin/telnet $4 $6</command> | ||
</tagNode> | ||
</children> | ||
</tagNode> | ||
</children> | ||
</tagNode> | ||
</node> | ||
</children> | ||
</node> | ||
</interfaceDefinition> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.