Owner's Manual

74 | Smart Scripting
www.dell.com | support.dell.com
Supported Dell Networking OS API Functions in Python Scripts describes the
supported functions and required arguments that you can use in Python scripts
running on a Dell Networking switch to connect through a telnet session and gather
information or configure parameters through the CLI.
Table 5-4. Supported Dell Networking OS API Functions in Python Scripts
Python API Function Arguments Description
F10AddLagInttoVlan (lagId, vlanId, tagFlag) Adds a LAG interface to a VLAN as either tagged or untagged.
tagFlag values: 1 (tagged) or 0 (untagged).
F10AddPhyInttoVlan (stackUnitNum, portId,
vlanId, tagFlag)
Adds a physical interface to a VLAN as either tagged or untagged.
tagFlag values: 1 (tagged) or 0 (untagged).
F10CreateVlanId (vlanId) Creates a VLAN on the switch.
F10DeleteVlanId (vlanId) Deletes a VLAN on the switch.
F10ExecShowCmd (command) Executes a specified show command.
F10MakeLagIntNoShutdown (lagId) Enables the specified port channel.
F10MakeLagIntShutdown (lagId) Disables the specified port channel.
F10MakeLagIntSwitch (lagId) Configures the specified port channel (LAG) as a Layer 2
switchport.
F10MakePhyIntNoShutdown (stackUnitNum, portId) Enables the specified port.
F10MakePhyIntShutdown (stackUnitNum, portId) Disables the specified port.
F10MakePhyIntSwitch (stackUnitNum, portId) Configures the specified port as a Layer 2 switch port.
F10MakeVlanIntNoShutdow
n
(vlanId) Enables the specified VLAN interface.
F10MakeVlanIntShutdown (vlanId) Disables the specified VLAN interface.
F10Ping (ipAddress) Pings (via ICMP) an IP address from the switch.
F10ShowArpTbl None Returns the table of learned ARP entries.
F10ShowBGPNeighbors None Returns list of BGP neighbors.
F10ShowBGPRoute None Returns the table of BGP-learned routes.
F10ShowBGPSummary None Returns summary information on BGP sessions.
F10ShowBootVar None Returns system boot variables.
F10ShowEnvironment None Returns environment-monitoring variable values.
F10ShowIntBrief None Returns brief interface status (up/down/admin up/admin down) of
all interfaces.
F10ShowIntBriefLag None Returns brief interface status (up/down/ admin up/down) of all
port-channel interfaces.
F10ShowIntBriefMan None Returns brief interface status (up/down/ admin up/down) of all
management interfaces.
F10ShowIntBriefPhy None Returns brief interface status (up/down/ admin up/down) of all
physical interfaces.
F10ShowIntBriefVlan None Returns brief interface status (up/down/ admin up/down) of all
VLAN interfaces.