diff options
author | Michal Cmarada <michal.cmarada@pantheon.tech> | 2018-06-15 13:10:53 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2018-06-19 18:56:27 +0000 |
commit | a0884f2792c31a3a93fb1654ceea754b6c612920 (patch) | |
tree | 7eff9ff4f745a6ca116ebbf6884d178a508b9303 /srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java | |
parent | 3edc384ac6cbeb68d36dbb4a51aa027c3bd3257d (diff) |
HC2VPP-288 - add readers for SRv6 module
Changes:
- add locator context to map locator name to locator IPv6Prefix
- add readers for SRv6 module
- implements reading of local sids and their end functions.
- implements support for FIB table management (HC2VPP-345)
Change-Id: Ib04402539a0b6666c5a1d0b4e1b5b5e08ccbf67b
Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java')
-rw-r--r-- | srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java index 8d23b1703..f11c730b1 100644 --- a/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java +++ b/srv6/srv6-impl/src/main/java/io/fd/hc2vpp/srv6/Srv6Configuration.java @@ -19,17 +19,10 @@ package io.fd.hc2vpp.srv6; public class Srv6Configuration { /** - * Used to map Srv6 Sids to locator length values + * Provides default locator length value for locator context. Since local SID is represented as IPv6 address, which + * represents LOCATOR+FUNCTION. This address with total length of 128 bits is divided into these parts by defining + * locator length. Because ietf-srv6-types model defines local SIds OpCode (function) as uint32, it leaves 96 bits + * for the locator part. This way we can use full range of the IPv6 address without loosing any bits. */ - public static final String LOCATOR_CONTEXT = "locator-context"; - - /** - * Locator length context child name for locator length - */ - public static final String LOCATOR_LENGTH = "locator-length"; - - /** - * Locator length context child name for locator length - */ - public static final String LOCATOR_IPV6_ADDRESS = "locator-ipv6-address"; + public static final Integer DEFAULT_LOCATOR_LENGTH = 96; } |