aboutsummaryrefslogtreecommitdiffstats
path: root/tech-support/labels/README.rst
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com>2019-04-02 20:20:25 +0200
committerGitHub <noreply@github.com>2019-04-02 20:20:25 +0200
commit02bb6476b443765bb673d4a0e93770698e44e8a7 (patch)
treeb7ae384ea3cc28f3550dd73b0baeb659faf43e26 /tech-support/labels/README.rst
parentf706bae1c3c2222a702e4121e1db8b7e9d45ab50 (diff)
parent7cd4617b362b99562e265fd9715764e4976cdf3e (diff)
Merge pull request #102 from sklirg/feat/support-label-scripts
Add label generation scripts for Tech Support
Diffstat (limited to 'tech-support/labels/README.rst')
-rw-r--r--tech-support/labels/README.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/tech-support/labels/README.rst b/tech-support/labels/README.rst
new file mode 100644
index 0000000..c242d3c
--- /dev/null
+++ b/tech-support/labels/README.rst
@@ -0,0 +1,27 @@
+TG label scripts
+================
+
+Scripts.
+
+Usage
+-----
+
+The ``--help`` parameter is pretty helpful.
+
+Run the script with either ``cables`` or ``switches``,
+depending if you want labels for cables or switches.
+Configure the application further if needed. Consult ``--help``.
+
+Specify gondul credentials either using environment variables
+(``GONDUL_USERNAME``, ``GONDUL_PASSWORD``) or the command line.
+It's also possible to update the API root or API endpoint to use,
+as well as a regex for matching switches.
+
+Specify the output file with the ``--outfile`` argument.
+
+For cables, specify the number of uplinks (``--uplinks``),
+copies (``--copies``) and when to split (``--split``)
+the CSV files for the label printer. Supply APs to print
+labels for them to, either by identifying the switch with ``--ap``
+or by supplying a newline-separated file of switch identifiers
+through ``--aps-file`` (e.g. ``33-1`` to add an AP to that switch).