blob: 7ade1895963150b32d033fa8dd2cdfeb1b4f8b4b [file] [log] [blame]
sunish vk30637eb2016-02-16 15:19:32 +05301/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.ospf.controller;
17
18import org.onlab.packet.Ip4Address;
19
20/**
21 * Represents the collection of IP addresses contained in the address range.
22 */
23public interface OspfAreaAddressRange {
24
25 /**
26 * Gets the IP address.
27 *
28 * @return IP address
29 */
30 public Ip4Address ipAddress();
31
32 /**
33 * Sets the IP address.
34 *
35 * @param ipAddress IPv4 address
36 */
37 public void setIpAddress(Ip4Address ipAddress);
38
39 /**
40 * Gets the network mask.
41 *
42 * @return network mask
43 */
44 public String mask();
45
46 /**
47 * Sets the network mask.
48 *
49 * @param mask network mask
50 */
51 public void setMask(String mask);
52
53 /**
54 * Gets the advertise value, which indicates routing information is condensed at area boundaries.
55 *
56 * @return advertise true if advertise flag is set else false
57 */
58 public boolean isAdvertise();
59
60 /**
61 * Sets the advertise value, which indicates routing information is condensed at area boundaries.
62 *
63 * @param advertise true if advertise flag to set else false
64 */
65 public void setAdvertise(boolean advertise);
66}