<commit_before># How To Use

## install

```
pip install git+https://github.com/yuuichi-fujioka/python-odlclient
```

## Run Command

OpenDaylight Host, Port, User and Password are passed via Environment Variable. e.g.:

```
ODL_HOST=192.168.0.100 odlclient node list
```

Environment Vairable Names are:

| Name     | Description                                                                         |
|:---------|:------------------------------------------------------------------------------------|
| ODL_HOST | OpenDaylight Hostname(default: localhost)                                           |
| ODL_PORT | OpenDaygight API Port(default: 8181)                                                |
| ODL_USER | OpenDaylight API User Name(default admin)                                           |
| ODL_PASS | OpenDaylight API Password(default: password)                                        |
| ODL_URL  | Default Restconf API Path(default: http://${ODL_HOST}:${ODL_PORT}/restconf/config/) |

### List Nodes

```
odlclient node list
```

### List Tables

```
odlclient table list openflow:1111111111
```

### List Flows

```
odlclient flow list openflow:1111111111
```
<commit_msg>fix README<commit_after># How To Use

## install

```
pip install git+https://github.com/yuuichi-fujioka/python-odlclient
```

## Run Command

OpenDaylight Host, Port, User and Password are passed via Environment Variable. e.g.:

```
ODL_HOST=192.168.0.100 odlclient node list
```

Environment Vairable Names are:

| Name     | Description                                                                              |
|:---------|:-----------------------------------------------------------------------------------------|
| ODL_HOST | OpenDaylight Hostname(default: localhost)                                                |
| ODL_PORT | OpenDaygight API Port(default: 8181)                                                     |
| ODL_USER | OpenDaylight API User Name(default admin)                                                |
| ODL_PASS | OpenDaylight API Password(default: password)                                             |
| ODL_URL  | Default Restconf API Path(default: http://${ODL_HOST}:${ODL_PORT}/restconf/operational/) |

### List Nodes

```
odlclient node list
```

### List Tables

```
odlclient table list openflow:1111111111
```

### List Flows

```
odlclient flow list openflow:1111111111
```

### List Node Connectors

```
odlclient connector list openflow:1111111111
```

{'fraction_non_alphanumeric': 0.1764469453376206, 'fraction_numerical': 0.03135048231511254, 'mean_word_length': 1.4790836653386454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 5, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7496929', 'n_tokens_mistral': 700, 'n_tokens_neox': 606, 'n_words': 158}