nttcom / pola

Stateful PCE Implementation and PCEP Library in Go
https://nttcom.github.io/pola/
MIT License
70 stars 6 forks source link

Add the color and preference elements to the LSP (SR Policy) structure #29

Closed Motok1 closed 2 years ago

Motok1 commented 2 years ago

feature

You can confirm color and preference of each LSP from pola CLI command pola sr-policy list

pola@pce:~$ go run . sr-policy list -j | jq .
{
  "lsps": [
    {
      "color": 200,
      "dstAddr": "192.0.2.1",
      "path": [
        16002,
        16004,
        16001
      ],
      "peerAddr": "192.0.2.2",
      "policyName": "sample1",
      "preference": 100,
      "srcAddr": "192.0.2.2"
    },
    {
      "color": 100,
      "dstAddr": "192.0.2.2",
      "path": [
        16001,
        16002,
        16003
      ],
      "peerAddr": "192.0.2.1",
      "policyName": "sample2",
      "preference": 100,
      "srcAddr": "192.0.2.1"
    }
  ]
}