mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 12:16:13 +02:00
[ONOS-6142] Add skeleton code for LISP extension addresses
Change-Id: I692c09c28d561a13df5de6db79b979a2e820ff09
This commit is contained in:
parent
f0af7aa018
commit
3ff327af1f
@ -1,6 +1,7 @@
|
||||
COMPILE_DEPS = [
|
||||
'//lib:CORE_DEPS',
|
||||
'//protocols/lisp/api:onos-protocols-lisp-api',
|
||||
'//apps/mappingmanagement/api:onos-apps-mappingmanagement-api',
|
||||
]
|
||||
|
||||
TEST_DEPS = [
|
||||
|
||||
@ -47,6 +47,11 @@
|
||||
<artifactId>onos-lisp-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.onosproject</groupId>
|
||||
<artifactId>onos-mapping-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP application data address.
|
||||
*/
|
||||
public class LispAppDataAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP Autonomous System (AS) address.
|
||||
*/
|
||||
public class LispAsAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP Geo Coordinate (GC) address.
|
||||
*/
|
||||
public class LispGcAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP list address.
|
||||
*/
|
||||
public class LispListAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP multicast address.
|
||||
*/
|
||||
public class LispMulticastAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP Network Address Translation (NAT) address.
|
||||
*/
|
||||
public class LispNatAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP nonce address.
|
||||
*/
|
||||
public class LispNonceAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation LISP security address.
|
||||
*/
|
||||
public class LispSecurityAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP segment address.
|
||||
*/
|
||||
public class LispSegmentAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP source and detination address.
|
||||
*/
|
||||
public class LispSrcDstAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddress;
|
||||
import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
|
||||
import org.onosproject.net.flow.AbstractExtension;
|
||||
|
||||
/**
|
||||
* Implementation of LISP traffic engineering address.
|
||||
*/
|
||||
public final class LispTeAddress extends AbstractExtension
|
||||
implements ExtensionMappingAddress {
|
||||
@Override
|
||||
public ExtensionMappingAddressType type() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] serialize() {
|
||||
return new byte[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(byte[] data) {
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2017-present Open Networking Laboratory
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Created by guni on 2017. 3. 14..
|
||||
*/
|
||||
package org.onosproject.drivers.lisp.extensions;
|
||||
Loading…
x
Reference in New Issue
Block a user