Skip to content

Commit

Permalink
improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
taku-k committed Feb 14, 2017
1 parent 847accd commit da90049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ $ swiro switch -r rtb-xxxxxx -v 10.0.0.1 -I i-xxxxxx
```
$ swiro list
Route Table: route_table_1 (rtb-xxxxxx1)
Virtual IP: 10.0.0.1/32 =======> src_instance_1 (i-yyyyyy1)
Virtual IP: 10.0.0.2/32 =======> src_instance_2 (i-yyyyyy2)
Virtual IP: 10.0.0.1/32 =======> src_instance_1 (i-yyyyyy1)
Virtual IP: 10.0.0.2/32 =======> src_instance_2 (i-yyyyyy2)
Route Table: route_table_2 (rtb-xxxxxx2)
Virtual IP: 10.0.0.3/32 =======> src_instance_3 (i-yyyyyy3)
Virtual IP: 10.0.0.3/32 =======> src_instance_3 (i-yyyyyy3)
```

### Switching routes
Expand Down
2 changes: 1 addition & 1 deletion aws/vip.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (v *MaybeVips) Output() {
return
}
tmpl := `Route Table: {{.RouteTableName}} ({{.RouteTableId}})
{{range $i, $vip := .Vips}}Virtual IP: {{$vip}} =======> {{index $.Names $i}} ({{index $.InstanceIds $i}})
{{range $i, $vip := .Vips}} Virtual IP: {{$vip}} =======> {{index $.Names $i}} ({{index $.InstanceIds $i}})
{{end}}`
t := template.New("maybevips")
template.Must(t.Parse(tmpl))
Expand Down

0 comments on commit da90049

Please sign in to comment.