~lamont/maas/bug-1599223-2.0

« back to all changes in this revision

Viewing changes to src/maasserver/models/vlan.py

  • Committer: LaMont Jones
  • Date: 2016-05-12 19:07:37 UTC
  • mfrom: (5017 maas)
  • mto: This revision was merged to the branch mainline in revision 5021.
  • Revision ID: lamont@canonical.com-20160512190737-00g34satnuo0tk8v
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
        """Return the name of the VLAN."""
247
247
        if self.is_fabric_default():
248
248
            return "untagged"
249
 
        else:
 
249
        elif self.name is not None:
250
250
            return self.name
 
251
        else:
 
252
            return str(self.vid)
251
253
 
252
254
    def manage_connected_interfaces(self):
253
255
        """Deal with connected interfaces: