Add open-port and close-port hook commands
Bug #767405 reported by
Jim Baker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Jim Baker |
Bug Description
Two new hook commands are to be added for opening and closing ports. They
may be executed within any formula hook::
open-port port[/protocol]
close-port port[/protocol]
These commands will store in the ZK tree, under **/units/<internal
unit id>/ports**, the desired opened port information as serialized to
JSON. For example, executing ``open-port 80`` would be serialized as
follows::
{"open": [{"port": 80, "proto": "tcp"}, ...]}
Related branches
lp:~jimbaker/pyjuju/expose-hook-commands
- Gustavo Niemeyer: Approve
-
Diff: 613 lines (+413/-11)9 files modifiedbin/close-port (+5/-0)
bin/open-port (+5/-0)
ensemble/hooks/cli.py (+37/-0)
ensemble/hooks/commands.py (+44/-1)
ensemble/hooks/protocol.py (+77/-0)
ensemble/hooks/tests/test_arguments.py (+1/-2)
ensemble/hooks/tests/test_cli.py (+45/-3)
ensemble/hooks/tests/test_communications.py (+44/-0)
ensemble/hooks/tests/test_invoker.py (+155/-5)
Changed in ensemble: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Jim Baker (jimbaker) |
milestone: | none → budapest |
Changed in ensemble: | |
status: | In Progress → New |
Changed in ensemble: | |
status: | New → In Progress |
Changed in ensemble: | |
status: | In Progress → New |
Changed in ensemble: | |
milestone: | budapest → dublin |
Changed in ensemble: | |
status: | New → In Progress |
Changed in ensemble: | |
status: | In Progress → Fix Released |
tags: | added: expose |
To post a comment you must log in.