Cleanup
This commit is contained in:
parent
25e57e89ab
commit
672418af19
3 changed files with 12 additions and 12 deletions
18
README.md
18
README.md
|
@ -7,19 +7,17 @@ It is intended to be used by ungleich engineers and skilled customers.
|
|||
|
||||
* ensure you have python3
|
||||
* git clone this repo
|
||||
* python ungleich-cli.py
|
||||
|
||||
## Usage general
|
||||
|
||||
```
|
||||
ungleich --help
|
||||
```
|
||||
|
||||
## 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
|
||||
|
||||
```angular2
|
||||
ungleich-cli dns --set-reverse <ip> --user <username> --token <token> --name mirror.example.com
|
||||
ungleich dns --set-reverse <ip> --user <username> --token <token> --name mirror.example.com
|
||||
```
|
||||
|
||||
### Usage: RIPE
|
||||
|
@ -27,7 +25,7 @@ ungleich-cli dns --set-reverse <ip> --user <username> --token <token> --name mir
|
|||
Creating a new route6 object:
|
||||
|
||||
```
|
||||
ungleichcli.py ripe-add-route6 \
|
||||
ungleich ripe-add-route6 \
|
||||
--network 2a09:2947::/32
|
||||
--description "First REST /32"
|
||||
--password "very secure"
|
||||
|
|
2
ungleichcli.py → ungleich
Normal file → Executable file
2
ungleichcli.py → ungleich
Normal file → Executable file
|
@ -5,7 +5,7 @@ import argparse
|
|||
from ungleich_dns import ungleichDNS
|
||||
from ungleich_ripe import ungleichRIPE
|
||||
|
||||
VERSION = "0.0.2"
|
||||
VERSION = "0.0.3"
|
||||
|
||||
class ungleichCLI(object):
|
||||
def __init__(self):
|
|
@ -6,7 +6,9 @@ class ungleichDNS(object):
|
|||
self.parser = 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('--user', help='Your ungleich username', metavar='', required=True)
|
||||
|
|
Loading…
Reference in a new issue