mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 02:41:49 +02:00
ONOS-258 - provide feedback in CLI when creating an intent.
Change-Id: Ic8aceccb7cfa241648358e633b49a8ab4cc68537
This commit is contained in:
parent
f195b02624
commit
cb33a1350f
@ -58,6 +58,7 @@ public class AddHostToHostIntentCommand extends ConnectivityIntentCommand {
|
|||||||
selector, treatment,
|
selector, treatment,
|
||||||
constraints);
|
constraints);
|
||||||
service.submit(intent);
|
service.submit(intent);
|
||||||
|
print("Host to Host intent submitted:\n%s", intent.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,7 @@ public class AddMultiPointToSinglePointIntentCommand extends ConnectivityIntentC
|
|||||||
ingressPoints, egress,
|
ingressPoints, egress,
|
||||||
constraints);
|
constraints);
|
||||||
service.submit(intent);
|
service.submit(intent);
|
||||||
|
print("Multipoint to single point intent submitted:\n%s", intent.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,6 +58,7 @@ public class AddOpticalIntentCommand extends ConnectivityIntentCommand {
|
|||||||
|
|
||||||
Intent intent = new OpticalConnectivityIntent(appId(), ingress, egress);
|
Intent intent = new OpticalConnectivityIntent(appId(), ingress, egress);
|
||||||
service.submit(intent);
|
service.submit(intent);
|
||||||
|
print("Optical intent submitted:\n%s", intent.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -70,6 +70,7 @@ public class AddPointToPointIntentCommand extends ConnectivityIntentCommand {
|
|||||||
Intent intent = new PointToPointIntent(appId(), selector, treatment,
|
Intent intent = new PointToPointIntent(appId(), selector, treatment,
|
||||||
ingress, egress, constraints);
|
ingress, egress, constraints);
|
||||||
service.submit(intent);
|
service.submit(intent);
|
||||||
|
print("Point to point intent submitted:\n%s", intent.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,6 +79,7 @@ public class AddSinglePointToMultiPointIntentCommand extends ConnectivityIntentC
|
|||||||
egressPoints,
|
egressPoints,
|
||||||
constraints);
|
constraints);
|
||||||
service.submit(intent);
|
service.submit(intent);
|
||||||
|
print("Single point to multipoint intent submitted:\n%s", intent.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user