Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-927

Documentation is lacking for "network" argument in GCENodeDriver.ex_create_route

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 0.13.3
    • None
    • Documentation
    • Irrelevant

    Description

      (This affects the latest version on github, I am not sure what is going on with versions in Jira)
      Current documentation of GCENodeDriver.ex_create_route() says:

              :param  network: The network the route belongs to. Can be either the
                               full URL of the network or a libcloud object.
      

      However, from the relevant code in function it is obvious that a network name is also valid:

              if isinstance(network, str) and network.startswith('https://'):
                  network_uri = network
              elif isinstance(network, str):
                  network = self.ex_get_network(network)
                  network_uri = network.extra['selfLink']
              else:
      network_uri = network.extra['selfLink']
      

      This option should be documented as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tterranigma Nikolaos Kakouros
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified