-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,33 @@ | ||
# Getting Started with Pola PCE | ||
|
||
## polad | ||
This page explains how to use Pola PCE. | ||
|
||
### Configuration | ||
## Instllation | ||
|
||
### Run Pola PCE using polad | ||
```bash | ||
$ go install github.com/nttcom/pola/cmd/polad@latest | ||
``` | ||
|
||
## Pola PCE as a Go Native PCEP/Stateful-PCE Library | ||
## Configuration | ||
|
||
### Example Code | ||
Specify the IP address and port number for each PCEP and gRPC. | ||
|
||
```yaml | ||
global: | ||
pcep: | ||
address: "192.0.2.1" | ||
port: 4189 | ||
grpc: | ||
address: "192.0.2.1" | ||
port: 50051 | ||
``` | ||
|
||
## Run Pola PCE using polad | ||
|
||
Start polad. Specify the created configuration file with the -f option. | ||
|
||
```bash | ||
$ polad -f polad.conf | ||
{"level":"info","ts":1653563205.5598016,"caller":"server/server.go:131","msg":"gRPC Listen","listenInfo":"192.0.2.1:50051","server":"grpc"} | ||
{"level":"info","ts":1653563205.560059,"caller":"server/server.go:99","msg":"PCE Listen","listenInfo":"192.0.2.1:4189"} | ||
``` |