HC2VPP-258: add support for MPLS label push 57/9457/4
authorMarek Gradzki <mgradzki@cisco.com>
Thu, 16 Nov 2017 11:56:19 +0000 (12:56 +0100)
committerMarek Gradzki <mgradzki@cisco.com>
Mon, 20 Nov 2017 09:45:07 +0000 (10:45 +0100)
commit1f80540e8e412e5a246e78b9a2d6d0802182b213
tree9558f4bd6f0150555fb93d43536494bb2c406af4
parent2ab7e143739a403110bd95b977f5c24d76f4d7af
HC2VPP-258: add support for MPLS label push

Translates impose-and-forward operation of
/hc2vpp-ietf-routing:routing/hc2vpp-ietf-mpl:mpls/
hc2vpp-ietf-mpls-static:static-lsps/static-lsp

to ip_add_del_route call.

For single outgoing-label, use simple-path out-segment.
For multiple outgoing labels, use path-list out-segment
with single path (multiple path support is not implemented yet).

See postman collection for examples.

TODOs:

- only IPv4 prefixes and next-hops are supported (HC2VPP-264).

Change-Id: I318e722edbc1f7ffd3eff2f308fc73c2062283c0
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
mpls/impl/asciidoc/Readme.adoc
mpls/impl/src/main/java/io/fd/hc2vpp/mpls/MplsWriterFactory.java
mpls/impl/src/main/java/io/fd/hc2vpp/mpls/StaticLspCustomizer.java [new file with mode: 0644]
mpls/impl/src/test/java/io/fd/hc2vpp/mpls/StaticLspCustomizerTest.java [new file with mode: 0644]