nttcom / pola

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

Add SPF for calculate dynamic path #23

Closed Motok1 closed 2 years ago

Motok1 commented 2 years ago

Function

Updated pola command

note: pola lsp command has been replaced by pola sr-policy command.

pola sr-policy add -f filename

*You need to enable TED when starting polad -> See https://github.com/nttcom/pola/pull/21

input file example

asn: 65000
srPolicy:
    pcepSessionAddr: 192.0.2.1
    name: policy-name    
    srcRouterId: 0000.0aff.0001
    dstRouterId: 0000.0aff.0004
    color: 100
    type: dynamic 
    metric: igp / te / delay

pola sr-policy add -f filename --no-link-state

srPolicy:
    pcepSessionAddr: 192.0.2.1
    srcAddr: 192.0.2.1
    dstAddr: 192.0.2.2
    name: name
    color: 100
    segmentlist:
        - sid: 16003
          nai: 192.0.2.3
        - sid: 16002
          nai: 192.0.2.2

close #11

Motok1 commented 2 years ago

Select a gRPC server's IP and port optionally in the pola command.