~salvatore-orlando/neutron/bug822813

« back to all changes in this revision

Viewing changes to quantum/cli_output.template

  • Committer: Dan Wendlandt
  • Date: 2011-08-26 19:54:33 UTC
  • mfrom: (20.1.33 quantum-unit-tests)
  • Revision ID: dan@nicira.com-20110826195433-7vf2wiw7uue8n97q
merge salvatore's new cli code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Cheetah template for cli output
 
2
#if $cmd == 'list_nets'
 
3
Virtual Networks for Tenant $tenant_id
 
4
#for $network in $networks
 
5
    Network ID: $network.id
 
6
#end for 
 
7
#elif $cmd == 'create_net'
 
8
Created a new Virtual Network with ID: $network_id
 
9
for Tenant $tenant_id
 
10
#elif $cmd == 'delete_net'
 
11
Deleted Virtual Network with ID: $network_id
 
12
for Tenant $tenant_id
 
13
#elif $cmd == 'show_net'
 
14
Network ID: $network.id
 
15
Network Name: $network.name 
 
16
for Tenant: $tenant_id
 
17
#elif $cmd == 'rename_net'
 
18
Renamed Virtual Network with ID: $network.id 
 
19
New name is: $network.name
 
20
for Tenant $tenant_id,
 
21
#elif $cmd == 'list_ports'
 
22
Ports on Virtual Network: $network_id
 
23
for Tenant: $tenant_id
 
24
#for $port in $ports
 
25
    Logical Port: $port.id
 
26
#end for
 
27
#elif $cmd == 'create_port'
 
28
Created new Logical Port with ID: $port_id 
 
29
on Virtual Network: $network_id 
 
30
for Tenant: $tenant_id 
 
31
#elif $cmd == 'delete_port'
 
32
Deleted Logical Port with ID: $port_id
 
33
on Virtual Network: $network_id
 
34
for Tenant: $tenant_id
 
35
#elif $cmd == 'set_port_state'
 
36
Updated state for Logical Port with ID: $port.id
 
37
new state is: $port.state
 
38
on Virtual Network: $network_id
 
39
for tenant: $tenant_id
 
40
#elif $cmd == 'show_port'
 
41
Logical Port ID: $port.id
 
42
administrative State: $port.state
 
43
interface: $port.attachment
 
44
on Virtual Network: $network_id
 
45
for Tenant: $tenant_id
 
46
#elif $cmd == 'plug_iface'
 
47
Plugged interface $attachment
 
48
into Logical Port: $port_id 
 
49
on Virtual Network: $network_id
 
50
for Tenant: $tenant_id
 
51
#elif $cmd == 'unplug_iface'
 
52
Unplugged interface from Logical Port: $port_id
 
53
on Virtual Network: $network_id
 
54
for Tenant: $tenant_id
 
55
#end if
 
56