Send command to Node. cmd: string
( self, *cmd, **kwargs )
| 956 | return Node.defaultIntf( self ) |
| 957 | |
| 958 | def sendCmd( self, *cmd, **kwargs ): |
| 959 | """Send command to Node. |
| 960 | cmd: string""" |
| 961 | kwargs.setdefault( 'printPid', False ) |
| 962 | if not self.execed: |
| 963 | return Node.sendCmd( self, *cmd, **kwargs ) |
| 964 | else: |
| 965 | error( '*** Error: %s has execed and cannot accept commands' % |
| 966 | self.name ) |
| 967 | return None |
| 968 | |
| 969 | def connected( self ): |
| 970 | "Is the switch connected to a controller? (override this method)" |