Add open-port and close-port hook commands

Bug #767405 reported by Jim Baker
6
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"}, ...]}

Tags: expose

Related branches

Jim Baker (jimbaker)
Changed in ensemble:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jim Baker (jimbaker)
milestone: none → budapest
Jim Baker (jimbaker)
Changed in ensemble:
status: In Progress → New
Jim Baker (jimbaker)
Changed in ensemble:
status: New → In Progress
Jim Baker (jimbaker)
Changed in ensemble:
status: In Progress → New
Changed in ensemble:
milestone: budapest → dublin
Jim Baker (jimbaker)
Changed in ensemble:
status: New → In Progress
Jim Baker (jimbaker)
Changed in ensemble:
status: In Progress → Fix Released
tags: added: expose
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.