def get_patch_port_ofport(self, port): cmd = commands.DbGetCommand(self, 'Interface', port, 'ofport') return cmd.execute(check_error=False, log_errors=False)
def db_get(self, table, record, column): return cmd.DbGetCommand(self, table, record, column)
def patch_port_exist(self, port): cmd = commands.DbGetCommand(self, 'Interface', port, 'type') return bool( 'patch' == cmd.execute(check_error=False, log_errors=False))