commit | 2efe0c24651eba4d47f07d1def7c315542a3a803 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Wed Sep 21 12:04:45 2016 -0700 |
committer | Jonathan Hart <jono@onlab.us> | Wed Sep 21 12:04:45 2016 -0700 |
tree | c262a28494069b33312ae55218b690f23843b3b6 | |
parent | dd19371d6d00dc7400d32558bb221a0c5beb4d46 [diff] |
NeighbourMessageContext: Change the name of the proxy API to forward. Change-Id: Ica58c55d03c7e86ae259cc52a6c16ab9982d004f
diff --git a/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/DefaultNeighbourMessageHandler.java b/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/DefaultNeighbourMessageHandler.java index 86fb848..cb4814a 100644 --- a/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/DefaultNeighbourMessageHandler.java +++ b/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/DefaultNeighbourMessageHandler.java
@@ -39,7 +39,7 @@ if (h == null) { context.flood(); } else { - context.proxy(h.location()); + context.forward(h.location()); } break; case REQUEST:
diff --git a/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/NeighbourMessageContext.java b/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/NeighbourMessageContext.java index 0c609ae..620bbad 100644 --- a/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/NeighbourMessageContext.java +++ b/incubator/api/src/main/java/org/onosproject/incubator/net/neighbour/NeighbourMessageContext.java
@@ -100,18 +100,22 @@ IpAddress sender(); /** - * Proxies the message to a given output port. + * Forwards the message to a given output port. * * @param outPort output port */ - void proxy(ConnectPoint outPort); + void forward(ConnectPoint outPort); /** - * Proxies the message to a given interface. - * + * Forwards the message to a given interface. + * <p> + * The message will be modified to fit the parameters of the outgoing + * interface. For example, if the interface has a VLAN configured, the + * outgoing packet will have that VLAN tag added. + * </p> * @param outIntf output interface */ - void proxy(Interface outIntf); + void forward(Interface outIntf); /** * Replies to the request message with a given MAC address.