~salvatore-orlando/neutron/improve-pylint

« back to all changes in this revision

Viewing changes to quantum/api/views/ports.py

  • Committer: Dan Wendlandt
  • Date: 2011-07-29 23:39:45 UTC
  • mfrom: (6.3.10 quantum-api)
  • Revision ID: dan@nicira.com-20110729233945-i2p2tsvc9iul3juy
merge Salvatore's api branch with fixes for tests.  Tweaking branch to remove unwanted bin/quantum.py as part of merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        return port
39
39
 
40
40
    def _build_simple(self, port_data):
41
 
        """Return a simple model of a server."""
 
41
        """Return a simple model of a port."""
42
42
        return dict(port=dict(id=port_data['port-id']))
43
43
 
44
44
    def _build_detail(self, port_data):
45
 
        """Return a simple model of a server."""
 
45
        """Return a simple model of a port (with its state)."""
46
46
        return dict(port=dict(id=port_data['port-id'],
47
 
          state=port_data['port-state']))
 
47
                              state=port_data['port-state']))