charm helpers needs opened-ports method

Bug #1516140 reported by Matt Bruzek on 2015-11-13
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Charm Helpers
Undecided
Unassigned

Bug Description

While writing the documentation I noticed that Juju has a `opened-ports` command to return the ports that are opened. This would be very useful in python and we should have a charm helper for this command.

# opened-ports -h
usage: opened-ports [options]
purpose: lists all ports or ranges opened by the unit

options:
--format (= smart)
    specify output format (json|smart|yaml)
-o, --output (= "")
    specify an output file

Each list entry has format <port>/<protocol> (e.g. "80/tcp") or
<from>-<to>/<protocol> (e.g. "8080-8088/udp").

Matt Bruzek (mbruzek) on 2015-11-13
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers