XR Driver

Infinera XR Optics Teraflow Controller Device Driver.

Initial version.

This PR is a rebased version of https://gitlab.com/teraflow-h2020/controller/-/merge_requests/194 .

Merge request reports

Loading
+1 −0
Changes for proto/context.proto: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ enum DeviceDriverEnum {
  DEVICEDRIVER_P4 = 3;
  DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4;
  DEVICEDRIVER_ONF_TR_352 = 5;
  DEVICEDRIVER_XR = 6;
}

enum DeviceOperationalStatusEnum {
+2 −1
Changes for src/automation/src/main/java/eu/teraflow/automation/context/model/DeviceDriverEnum.java: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -22,5 +22,6 @@ public enum DeviceDriverEnum {
    TRANSPORT_API,
    P4,
    IETF_NETWORK_TOPOLOGY,
    ONF_TR_352
    ONF_TR_352,
    XR
}
+4 −0
Changes for src/automation/src/main/java/eu/teraflow/automation/Serializer.java: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -851,6 +851,8 @@ public class Serializer {
                return ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_IETF_NETWORK_TOPOLOGY;
            case ONF_TR_352:
                return ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_ONF_TR_352;
            case XR:
                return ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_XR;
            case UNDEFINED:
            default:
                return ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_UNDEFINED;
@@ -870,6 +872,8 @@ public class Serializer {
                return DeviceDriverEnum.IETF_NETWORK_TOPOLOGY;
            case DEVICEDRIVER_ONF_TR_352:
                return DeviceDriverEnum.ONF_TR_352;
            case DEVICEDRIVER_XR:
                return DeviceDriverEnum.XR;
            case DEVICEDRIVER_UNDEFINED:
            case UNRECOGNIZED:
            default:
+1 −0
Changes for src/automation/src/test/java/eu/teraflow/automation/SerializerTest.java: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -1214,6 +1214,7 @@ class SerializerTest {
                Arguments.of(
                        DeviceDriverEnum.ONF_TR_352,
                        ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_ONF_TR_352),
                Arguments.of(DeviceDriverEnum.XR, ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_XR),
                Arguments.of(
                        DeviceDriverEnum.UNDEFINED, ContextOuterClass.DeviceDriverEnum.DEVICEDRIVER_UNDEFINED));
    }
+99 −90

File changed.

Generated files are collapsed by default. To change this behavior, edit the .gitattributes file. Learn more.

Loading
Loading