basepython = python3.8
deps =
-r{toxinidir}/requirements-docs.txt
- -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
+ -chttps://releases.openstack.org/constraints/upper/yoga
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
commands =
sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
basepython = python3.8
deps =
-r{toxinidir}/requirements-docs.txt
- -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
+ -chttps://releases.openstack.org/constraints/upper/yoga
-chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
commands =
sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/linkcheck
faultAlarm.setId(ORanDMDOMUtility.getLeafValue(cn, oranfm.getFaultIdQName()));
faultAlarm.setSourceType(SourceType.Netconf);
faultAlarm.setTimestamp(NetconfTimeStampImpl.getConverter()
- .getTimeStamp(ORanDMDOMUtility.getNotificationInstant(notification).toString()));
+ .getTimeStamp(ORanDMDOMUtility.getLeafValue(cn, oranfm.getFaultEventTimeQName())));
return faultAlarm.build();
}
faultAlarm.setSeverity(getSeverityType(
ORanDMDOMUtility.getLeafValue(activeAlarmEntry, oranfm.getFaultSeverityQName()),
ORanDMDOMUtility.getLeafValue(activeAlarmEntry, oranfm.getFaultIsClearedQName()).equals("true")));
- faultAlarm.setCounter(Integer.parseInt(ORanDMDOMUtility.getLeafValue(activeAlarmEntry, oranfm.getFaultIdQName())));
+ faultAlarm.setCounter(
+ Integer.parseInt(ORanDMDOMUtility.getLeafValue(activeAlarmEntry, oranfm.getFaultIdQName())));
faultAlarm.setId(ORanDMDOMUtility.getLeafValue(activeAlarmEntry, oranfm.getFaultIdQName()));
faultAlarm.setSourceType(SourceType.Netconf);
faultAlarm.setTimestamp(NetconfTimeStampImpl.getConverter()
public static final QNameModule ORANFM_2022_08_15 =
QNameModule.create(XMLNamespace.of(NAMESPACE), Revision.of("2022-08-15"));
private static final List<QNameModule> MODULES = Arrays.asList(ORANFM_2019_02_04, ORANFM_2022_08_15);
-// private final QName ORAN_FM_ALARM_NOTIF;
-// private final QName ORAN_FM_FAULT_ID;
-// private final QName ORAN_FM_FAULT_SOURCE;
-// private final QName ORAN_FM_FAULT_SEVERITY;
-// private final QName ORAN_FM_FAULT_TEXT;
-// private final QName ORAN_FM_FAULT_IS_CLEARED;
-
-
ORANFM(NetconfDomAccessor netconfDomAccessor, QNameModule module) {
super(netconfDomAccessor, module);
-// ORAN_FM_ALARM_NOTIF = QName.create(module, "alarm-notif");
-// ORAN_FM_FAULT_ID = QName.create(module, "fault-id");
-// ORAN_FM_FAULT_SOURCE = QName.create(module, "fault-source");
-// ORAN_FM_FAULT_SEVERITY = QName.create(module, "fault-severity");
-// ORAN_FM_FAULT_TEXT = QName.create(module, "fault-text");
-// ORAN_FM_FAULT_IS_CLEARED = QName.create(module, "is-cleared");
}
public QName getFaultSourceQName() {
}
public QName getFaultEventTimeQName() {
- return getQName("event-time");
+ return getQName("event-time");
}
-
+
public QName getFaultActiveAlarmListQName() {
- return getQName("active-alarm-list");
+ return getQName("active-alarm-list");
}
-
+
public QName getFaultActiveAlarmsQName() {
- return getQName("active-alarms");
+ return getQName("active-alarms");
}
-
+
/**
* Get specific instance, depending on capabilities
*
.withChild(ImmutableNodes.leafNode(oranfm.get().getFaultSourceQName(), "Slot-2-Port-B"))
.withChild(ImmutableNodes.leafNode(oranfm.get().getFaultSeverityQName(), "MAJOR"))
.withChild(ImmutableNodes.leafNode(oranfm.get().getFaultIsClearedQName(), "true"))
- .withChild(ImmutableNodes.leafNode(oranfm.get().getFaultTextQName(), "CPRI Port Down")).build();
+ .withChild(ImmutableNodes.leafNode(oranfm.get().getFaultTextQName(), "CPRI Port Down"))
+ .withChild(
+ ImmutableNodes.leafNode(oranfm.get().getFaultEventTimeQName(), "2024-02-29T09:33:31.000+00:00"))
+ .build();
}
public static class NetconfDeviceNotification implements DOMNotification, DOMEvent {
.withChild(ImmutableNodes.leafNode(oranfm.get().getFaultSourceQName(), "Slot-2-Port-B"))
.withChild(ImmutableNodes.leafNode(oranfm.get().getFaultSeverityQName(), "MAJOR"))
.withChild(ImmutableNodes.leafNode(oranfm.get().getFaultIsClearedQName(), "true"))
- .withChild(ImmutableNodes.leafNode(oranfm.get().getFaultTextQName(), "CPRI Port Down")).build();
+ .withChild(ImmutableNodes.leafNode(oranfm.get().getFaultTextQName(), "CPRI Port Down"))
+ .withChild(
+ ImmutableNodes.leafNode(oranfm.get().getFaultEventTimeQName(), "2024-02-29T09:33:31.000+00:00"))
+ .build();
}
public static class NetconfDeviceNotification implements DOMNotification, DOMEvent {