Skip to content

Commit c672ec4

Browse files
author
Gabriel Monroy
committed
purge backends/proxies references from client
1 parent 5b177f9 commit c672ec4

1 file changed

Lines changed: 4 additions & 32 deletions

File tree

client/deis/client.py

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,17 @@
1515
Common commands:
1616
1717
create create a new container formation
18-
scale scale backends, proxies or container types
18+
scale scale container types (web=2, worker=1)
1919
rotate rotate in fresh backends, proxies or containers
2020
balance rebalance and converge the container formation
2121
destroy destroy a container formation
2222
2323
Use `deis help [subcommand]` to learn about these subcommands:
2424
2525
formations manage container formations
26-
containers manage the containers running on backends
27-
backends manage the backend nodes hosting containers
28-
proxies manage the proxy nodes routing to containers
26+
layers manage layers of nodes
2927
nodes manage nodes of all types
28+
containers manage the containers running on backends
3029
3130
flavors create and manage node flavors
3231
providers create and manage cloud provider credentials
@@ -355,19 +354,6 @@ def auth_logout(self, args):
355354
self._settings.save()
356355
print('Logged out')
357356

358-
def backends_list(self, args):
359-
formation = args.get('--formation')
360-
if not formation:
361-
formation = self._session.formation
362-
response = self._dispatch('get','/formations/{}/backends'.format(formation))
363-
if response.status_code == requests.codes.ok: # @UndefinedVariable
364-
print('=== {0}'.format(formation))
365-
data = response.json()
366-
for item in data['results']:
367-
print('{0[uuid]:<23} {0[created]}'.format(item))
368-
else:
369-
print('Error!', response.text)
370-
371357
def builds_create(self, args):
372358
formation = args.get('--formation')
373359
if not formation:
@@ -715,7 +701,7 @@ def layers_create(self, args):
715701
if not formation:
716702
formation = self._session.formation
717703
body = {'id': args['<id>'], 'flavor': args['<flavor>'], 'run_list': args['--run_list']}
718-
for opt in ('--environment', '--initial_attributes',
704+
for opt in ('--environment', '--initial_attributes',
719705
'--ssh_username', '--ssh_private_key', '--ssh_public_key'):
720706
o = args.get(opt)
721707
if o:
@@ -882,20 +868,6 @@ def providers_info(self, args):
882868
else:
883869
print('Error!', response.text)
884870

885-
def proxies_list(self, args):
886-
"""List proxies for this formation."""
887-
formation = args.get('--formation')
888-
if not formation:
889-
formation = self._session.formation
890-
response = self._dispatch('get', '/api/formations/{}/proxies'.format(formation))
891-
if response.status_code == requests.codes.ok: # @UndefinedVariable
892-
print('=== {0}'.format(formation))
893-
data = response.json()
894-
for item in data['results']:
895-
print('{0[uuid]} {0[created]}'.format(item))
896-
else:
897-
print('Error!', response.text)
898-
899871

900872
def main():
901873
"""

0 commit comments

Comments
 (0)