This commit is contained in:
Nico Schottelius 2019-05-12 12:42:28 +02:00
parent 25e57e89ab
commit 0f6515961f
3 changed files with 12 additions and 12 deletions

View file

@ -7,19 +7,17 @@ It is intended to be used by ungleich engineers and skilled customers.
* ensure you have python3 * ensure you have python3
* git clone this repo * git clone this repo
* python ungleich-cli.py
## Usage general
```
ungleich --help
```
## Usage: DNS ## Usage: DNS
installing the package via pip (python3 required)
```angular2
python3 -m pip install ungleich-cli
``` ```
after installed you can set the reverse dns by typing ungleich dns --set-reverse <ip> --user <username> --token <token> --name mirror.example.com
```angular2
ungleich-cli dns --set-reverse <ip> --user <username> --token <token> --name mirror.example.com
``` ```
### Usage: RIPE ### Usage: RIPE
@ -27,7 +25,7 @@ ungleich-cli dns --set-reverse <ip> --user <username> --token <token> --name mir
Creating a new route6 object: Creating a new route6 object:
``` ```
ungleichcli.py ripe-add-route6 \ ungleich ripe-add-route6 \
--network 2a09:2947::/32 --network 2a09:2947::/32
--description "First REST /32" --description "First REST /32"
--password "very secure" --password "very secure"

2
ungleichcli.py → ungleich Normal file → Executable file
View file

@ -5,7 +5,7 @@ import argparse
from ungleich_dns import ungleichDNS from ungleich_dns import ungleichDNS
from ungleich_ripe import ungleichRIPE from ungleich_ripe import ungleichRIPE
VERSION = "0.0.2" VERSION = "0.0.3"
class ungleichCLI(object): class ungleichCLI(object):
def __init__(self): def __init__(self):

View file

@ -6,7 +6,9 @@ class ungleichDNS(object):
self.parser = parser self.parser = parser
self.parser['dns'] = self.parser['sub'].add_parser( self.parser['dns'] = self.parser['sub'].add_parser(
'dns', parents=[parents]) 'dns',
help="Manage DNS entries @ ungleich",
parents=[parents])
self.parser['dns'].add_argument('--set-reverse', help='REQUIRED: IPv6 Address of your VM', metavar='', required=True) self.parser['dns'].add_argument('--set-reverse', help='REQUIRED: IPv6 Address of your VM', metavar='', required=True)
self.parser['dns'].add_argument('--user', help='Your ungleich username', metavar='', required=True) self.parser['dns'].add_argument('--user', help='Your ungleich username', metavar='', required=True)