Jonathan Hart | ebba1e1 | 2013-10-29 11:37:02 -0700 | [diff] [blame^] | 1 | package net.onrc.onos.ofcontroller.core.config; |
| 2 | |
| 3 | import java.net.InetAddress; |
| 4 | |
| 5 | import net.floodlightcontroller.util.MACAddress; |
| 6 | import net.onrc.onos.ofcontroller.bgproute.Interface; |
| 7 | |
| 8 | import org.openflow.util.HexString; |
| 9 | |
| 10 | public class DefaultConfiguration implements IConfigInfoService { |
| 11 | |
| 12 | @Override |
| 13 | public boolean isInterfaceAddress(InetAddress address) { |
| 14 | return false; |
| 15 | } |
| 16 | |
| 17 | @Override |
| 18 | public boolean inConnectedNetwork(InetAddress address) { |
| 19 | return false; |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | public boolean fromExternalNetwork(long inDpid, short inPort) { |
| 24 | return false; |
| 25 | } |
| 26 | |
| 27 | @Override |
| 28 | public Interface getOutgoingInterface(InetAddress dstIpAddress) { |
| 29 | return null; |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | public boolean hasLayer3Configuration() { |
| 34 | return false; |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public MACAddress getRouterMacAddress() { |
| 39 | return MACAddress.valueOf(HexString.fromHexString("000000000001")); |
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public short getVlan() { |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | } |