show list of network_vifs. #540

Merged
merged 1 commit into from Apr 13, 2015

Projects

None yet

3 participants

@hansode
Member
hansode commented Apr 8, 2015

Feature

This change will provide list of network_vifs.

Background

for bash/zsh completion support for mussel.sh.

When registering/unregistering network_vif to a load_balancer, mussel.sh expects network_vif candidate using network_vif list.
But current implementation does not provide network_vif list.

How it works

$ mussel.sh network_vif index

Sample output:

$ mussel.sh network_vif index  | head -50
---
- :total: 18
  :start: 0
  :limit: 250
  :results:
  - :id: vif-cze58riq
    :uuid: vif-cze58riq
    :ipv4_address: 10.1.0.10
    :nat_ipv4_address:
    :network_id: nw-demo8
    :instance_id: i-9c5q6wa5
    :security_groups: []
    :mac_addr: 52:54:00:ff:61:33
    :network_monitors: []
    :ip_leases:
    - :ipv4: 10.1.0.10
      :network_id: nw-demo8
      :ip_handle:
  - :id: vif-uuzbsk75
    :uuid: vif-uuzbsk75
    :ipv4_address: 10.0.2.102
    :nat_ipv4_address:
    :network_id: nw-demo1
    :instance_id: i-9c5q6wa5
    :security_groups:
    - sg-dbzjq4sq
    :mac_addr: 52:54:00:eb:cd:2d
    :network_monitors: []
    :ip_leases:
    - :ipv4: 10.0.2.102
      :network_id: nw-demo1
      :ip_handle:
  - :id: vif-2ifofi7t
    :uuid: vif-2ifofi7t
    :ipv4_address: 10.0.2.101
    :nat_ipv4_address:
    :network_id: nw-demo1
    :instance_id: i-63vi9vhj
    :security_groups:
    - sg-nhrd602s
    :mac_addr: 52:54:00:41:26:c6
    :network_monitors: []
    :ip_leases:
    - :ipv4: 10.0.2.101
      :network_id: nw-demo1
      :ip_handle:
  - :id: vif-389nvf7i
    :uuid: vif-389nvf7i
    :ipv4_address: 10.0.2.100
    :nat_ipv4_address:
@hansode hansode show list of network_vifs.
94b8881
@axsh-bot
Member
axsh-bot commented Apr 8, 2015

94b8881 success - wakame-ci/rspec

@axsh-bot
Member
axsh-bot commented Apr 8, 2015

94b8881 success - wakame-ci/rpmbuild

@axsh-bot
Member
axsh-bot commented Apr 8, 2015

94b8881 success - wakame-ci/to-s3

@axsh-bot
Member
axsh-bot commented Apr 8, 2015

94b8881 success - wakame-ci/dummy.smoke

@axsh-bot
Member
axsh-bot commented Apr 8, 2015

94b8881 failure - wakame-ci/kvm.smoke

@axsh-bot
Member
axsh-bot commented Apr 8, 2015

94b8881 success - wakame-ci/vz.smoke

@Metallion
Member

Looks good to me. +1

The red KVM test is unrelated to this pull request and is the same on master.

@Metallion Metallion merged commit eb7e19b into master Apr 13, 2015

5 of 6 checks passed

wakame-ci/kvm.smoke The build was failure on wakame-ci #16444 (94b8881a).
wakame-ci/dummy.smoke The build was success on wakame-ci #16443 (94b8881a).
wakame-ci/rpmbuild The build was success on wakame-ci #16436 (94b8881a).
wakame-ci/rspec The build was success on wakame-ci #16434 (94b8881a).
wakame-ci/to-s3 The build was success on wakame-ci #16438 (94b8881a).
wakame-ci/vz.smoke The build was success on wakame-ci #16448 (94b8881a).
@Metallion Metallion deleted the feature-network-vif-index branch Apr 13, 2015
@hansode hansode self-assigned this Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment