Return interface for lowest port
( self )
| 473 | del self.nameToIntf[ intf.name ] |
| 474 | |
| 475 | def defaultIntf( self ): |
| 476 | "Return interface for lowest port" |
| 477 | ports = self.intfs.keys() |
| 478 | if ports: |
| 479 | return self.intfs[ min( ports ) ] |
| 480 | else: |
| 481 | warn( '*** defaultIntf: warning:', self.name, |
| 482 | 'has no interfaces\n' ) |
| 483 | return None |
| 484 | |
| 485 | def intf( self, intf=None ): |
| 486 | """Return our interface object with given string name, |
no test coverage detected