[ONOS-4718] Implement LISP control message classes
Change-Id: I26ab3b8da383d8967c08e14b4f11f03e0663de73
diff --git a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/LispMapRequest.java b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/LispMapRequest.java
index f0a49e8..0783368 100644
--- a/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/LispMapRequest.java
+++ b/protocols/lisp/msg/src/main/java/org/onosproject/lisp/msg/protocols/LispMapRequest.java
@@ -21,12 +21,13 @@
/**
* LISP map request message interface.
- *
+ * <p>
* LISP map request message format is defined in RFC6830.
* https://tools.ietf.org/html/rfc6830#page-27
*
* <pre>
* {@literal
+ * <p>
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
* +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -62,6 +63,13 @@
boolean isAuthoritative();
/**
+ * Obtains map data present flag.
+ *
+ * @return map data present flag
+ */
+ boolean isMapDataPresent();
+
+ /**
* Obtains probe flag.
*
* @return probe flag
@@ -130,44 +138,52 @@
interface RequestBuilder extends Builder {
/**
- * Sets isAuthoritative flag.
+ * Sets authoritative flag.
*
- * @param isAuthoritative isAuthoritative flag
+ * @param authoritative authoritative flag
* @return RequestBuilder object
*/
- RequestBuilder withIsAuthoritative(boolean isAuthoritative);
+ RequestBuilder withIsAuthoritative(boolean authoritative);
/**
- * Sets isProbe flag.
+ * Sets probe flag.
*
- * @param isProbe isProbe flag
+ * @param probe probe flag
* @return RequestBuilder object
*/
- RequestBuilder withIsProbe(boolean isProbe);
+ RequestBuilder withIsProbe(boolean probe);
/**
- * Sets isSmr flag.
+ * Sets map data resent flag.
*
- * @param isSmr isSmr flag
+ * @param mapDataPresent map data present flag
* @return RequestBuilder object
*/
- RequestBuilder withIsSmr(boolean isSmr);
+ RequestBuilder withIsMapDataPresent(boolean mapDataPresent);
/**
- * Sets isPitr flag.
+ * Sets smr flag.
*
- * @param isPitr isPitr flag
+ * @param smr smr flag
* @return RequestBuilder object
*/
- RequestBuilder withIsPitr(boolean isPitr);
+ RequestBuilder withIsSmr(boolean smr);
/**
- * Sets isSmrInvoked flag.
+ * Sets pitr flag.
*
- * @param isSmrInvoked isSmrInvoked flag
+ * @param pitr pitr flag
* @return RequestBuilder object
*/
- RequestBuilder withIsSmrInvoked(boolean isSmrInvoked);
+ RequestBuilder withIsPitr(boolean pitr);
+
+ /**
+ * Sets smrInvoked flag.
+ *
+ * @param smrInvoked smrInvoked flag
+ * @return RequestBuilder object
+ */
+ RequestBuilder withIsSmrInvoked(boolean smrInvoked);
/**
* Sets record count.
@@ -186,12 +202,20 @@
RequestBuilder withNonce(long nonce);
/**
+ * Sets source EID address.
+ *
+ * @param sourceEid source EID
+ * @return RequestBuilder object
+ */
+ RequestBuilder withSourceEid(LispAfiAddress sourceEid);
+
+ /**
* Adds ITR RLOC into RLOC collection.
*
* @param itrRloc ITR RLOC
* @return RequestBuilder object
*/
- RequestBuilder withItrRloc(LispAfiAddress itrRloc);
+ RequestBuilder addItrRloc(LispAfiAddress itrRloc);
/**
* Adds EID record into record collection.