Permalink
Commits on Aug 17, 2015
  1. Comment update

    Michael Foord committed Aug 17, 2015
  2. Use network.Id instead of string for provider id

    Michael Foord committed Aug 17, 2015
  3. Return slices from List api methods

    Michael Foord committed Aug 17, 2015
  4. Update List API method

    Michael Foord committed Aug 17, 2015
  5. Test fixes

    Michael Foord committed Aug 17, 2015
  6. Tags, tags everywhere

    Michael Foord committed Aug 17, 2015
  7. Adding comments

    Michael Foord committed Aug 17, 2015
  8. Fixes from review

    Michael Foord committed Aug 17, 2015
Commits on Aug 13, 2015
  1. Test fixes

    Michael Foord committed Aug 13, 2015
  2. Test ListSubnets

    Michael Foord committed Aug 13, 2015
  3. Test CreateSubnet

    Michael Foord committed Aug 13, 2015
  4. Tests for AddSubnet

    Michael Foord committed Aug 13, 2015
  5. Remove unused vlantag argument and add ispublic

    Michael Foord committed Aug 13, 2015
  6. ListSubnets implementation

    Michael Foord committed Aug 13, 2015
  7. CreateSubnets implementation

    Michael Foord committed Aug 13, 2015
Commits on Aug 12, 2015
  1. AddSubnet client API method

    Michael Foord committed Aug 12, 2015
  2. Merge pull request #2972 from voidspace/spaces-list-state-2

    jujubot committed Aug 12, 2015
    "space list" follow up
    
    Some tweaks from a review made after the main branch was submitted.
    
    (Review request: http://reviews.vapour.ws/r/2352/)
  3. Remove unnecessary Trace

    Michael Foord committed Aug 12, 2015
  4. Tweaks from review

    Michael Foord committed Aug 12, 2015
  5. Tweaks from review

    Michael Foord committed Aug 12, 2015
  6. Tweaks from review

    Michael Foord committed Aug 12, 2015
Commits on Aug 11, 2015
  1. Merge pull request #2964 from voidspace/spaces-list-state

    jujubot committed Aug 11, 2015
    Implement AllSpaces for "space list" command.
    
    Implements AllSpaces on state, used by the "space list" command.
    
    As part of this state.Space needs a Subnets method that returns all subnets associated with the space. This required changes to both spaces and subnets.
    
    The requirement that all spaces have at least one subnet has been dropped. This will need more work in the CLI/API to complete.
    
    (Review request: http://reviews.vapour.ws/r/2344/)
  2. Merge pull request #2963 from dooferlad/net-cli-client-api-subnets

    jujubot committed Aug 11, 2015
    Added subnets CLI API stub
    
    
    
    (Review request: http://reviews.vapour.ws/r/2343/)
  3. Test Space.Name

    Michael Foord committed Aug 11, 2015
  4. Add the SpaceName method to state.Subnet

    Michael Foord committed Aug 11, 2015
  5. Test extended

    Michael Foord committed Aug 11, 2015
  6. Skeleton test

    Michael Foord committed Aug 11, 2015
  7. Test Space.Subnets

    Michael Foord committed Aug 11, 2015
  8. Added subnets CLI API stub

    dooferlad committed Aug 11, 2015
  9. Merge pull request #2953 from dooferlad/net-cli

    jujubot committed Aug 11, 2015
    Merge + rebase of trunk into net-cli
    
    Couple of test fixes needed. Mostly clean. The only change I did to the tests was change the regexp in this test (in both cmd/juju/subnet/package_test.go and the spaces equivalent) to make [options] an optional string:
    
    ```go
    // TestHelp runs the command with --help as argument and verifies the
    // output.
    func (s *BaseSubnetSuite) TestHelp(c *gc.C) {
    	stderr, stdout, err := s.RunSuperCommand(c, "--help")
    	c.Assert(err, jc.ErrorIsNil)
    	c.Check(stdout, gc.Equals, "")
    	c.Check(stderr, gc.Not(gc.Equals), "")
    
    	// If s.command is set, use it instead of s.superCmd.
    	cmdInfo := s.superCmd.Info()
    	var expected string
    	if s.command != nil {
    		// Subcommands embed EnvCommandBase and have an extra
    		// "[options]" prepended before the args.
    		cmdInfo = s.command.Info()
    		expected = "(?sm).*^usage: juju subnet " +
    			regexp.QuoteMeta(cmdInfo.Name) +
    			`( \[options\])? ` + regexp.QuoteMeta(cmdInfo.Args) + ".+"
    	} else {
    		expected = "(?sm).*^usage: juju subnet" +
    			`( \[options\])? ` + regexp.QuoteMeta(cmdInfo.Args) + ".+"
    	}
    	c.Check(cmdInfo, gc.NotNil)
    	c.Check(stderr, gc.Matches, expected)
    
    	expected = "(?sm).*^purpose: " + regexp.QuoteMeta(cmdInfo.Purpose) + "$.*"
    	c.Check(stderr, gc.Matches, expected)
    
    	expected = "(?sm).*^" + regexp.QuoteMeta(cmdInfo.Doc) + "$.*"
    	c.Check(stderr, gc.Matches, expected)
    }
    ```
    
    (Review request: http://reviews.vapour.ws/r/2333/)
  10. Fix go fmt

    dooferlad committed Aug 11, 2015
  11. Test fix

    Michael Foord committed Aug 11, 2015
  12. Adding SpaceName to Subnet in a few more places

    Michael Foord committed Aug 11, 2015