Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-andersson-at-westermo committed Jun 5, 2024
1 parent 0b2a0ea commit ef66199
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
29 changes: 1 addition & 28 deletions TestData/YangSource/ExampleYangServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace YangSource;

public class ExampleYangServer : IYangServer
{
YangNode.AlarmsContainer.AlarmListContainer.AlarmEntry.SetOperatorStateInput m_operatorState;
YangNode.AlarmsContainer.AlarmListContainer.AlarmEntry.SetOperatorStateInput? m_operatorState;
public Task OnSetOperatorState(YangNode.AlarmsContainer.AlarmListContainer.AlarmEntry.SetOperatorStateInput input)
{
m_operatorState = input;
Expand Down Expand Up @@ -50,21 +50,6 @@ public Task OnAlarmInventoryChanged(YangNode.AlarmInventoryChanged notification,
throw new NotImplementedException();
}

public Task OnOperatorAction(YangNode.AlarmsContainer.AlarmListContainer.AlarmEntry.OperatorAction notification)
{
throw new NotImplementedException();
}

public Task OnAlarmNotification(YangNode.AlarmNotification notification)
{
throw new NotImplementedException();
}

public Task OnAlarmInventoryChanged(YangNode.AlarmInventoryChanged notification)
{
throw new NotImplementedException();
}

public Task OnL2TerminationPointEvent(Ietf.L2.Topology.State.YangNode.L2TerminationPointEvent notification, DateTime eventTime)
{
throw new NotImplementedException();
Expand Down Expand Up @@ -254,18 +239,6 @@ public Task OnSoftwireAlgorithmInstanceEvent(Ietf.Softwire.Br.YangNode.SoftwireA
throw new NotImplementedException();
}

public Task OnDefectConditionNotification(
Ietf.Connection.Oriented.Oam.YangNode.DefectConditionNotification notification)
{
throw new NotImplementedException();
}

public Task OnDefectClearedNotification(
Ietf.Connection.Oriented.Oam.YangNode.DefectClearedNotification notification)
{
throw new NotImplementedException();
}

public Task<Ietf.Routing.YangNode.RoutingContainer.RibsContainer.RibEntry.ActiveRouteOutput> OnActiveRoute(
Ietf.Routing.YangNode.RoutingContainer.RibsContainer.RibEntry target)
{
Expand Down
6 changes: 4 additions & 2 deletions YangSourceTests/RpcTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public async Task<Stream> Send(string xml)
[Fact]
public async Task RpcSend()
{
var channel = new TestChannel();
channel.MessageID = Random.Shared.Next();
var channel = new TestChannel
{
MessageID = Random.Shared.Next()
};
var reply = await Ietf.Connection.Oriented.Oam.YangNode.Traceroute(channel, channel.MessageID,
new Ietf.Connection.Oriented.Oam.YangNode.TracerouteInput
{
Expand Down

0 comments on commit ef66199

Please sign in to comment.