Ray Milkey
Committed by Gerrit Code Review

ONOS-258 - provide feedback in CLI when creating an intent.

Change-Id: Ic8aceccb7cfa241648358e633b49a8ab4cc68537
...@@ -58,6 +58,7 @@ public class AddHostToHostIntentCommand extends ConnectivityIntentCommand { ...@@ -58,6 +58,7 @@ public class AddHostToHostIntentCommand extends ConnectivityIntentCommand {
58 selector, treatment, 58 selector, treatment,
59 constraints); 59 constraints);
60 service.submit(intent); 60 service.submit(intent);
61 + print("Host to Host intent submitted:\n%s", intent.toString());
61 } 62 }
62 63
63 } 64 }
......
...@@ -76,6 +76,7 @@ public class AddMultiPointToSinglePointIntentCommand extends ConnectivityIntentC ...@@ -76,6 +76,7 @@ public class AddMultiPointToSinglePointIntentCommand extends ConnectivityIntentC
76 ingressPoints, egress, 76 ingressPoints, egress,
77 constraints); 77 constraints);
78 service.submit(intent); 78 service.submit(intent);
79 + print("Multipoint to single point intent submitted:\n%s", intent.toString());
79 } 80 }
80 81
81 /** 82 /**
......
...@@ -58,6 +58,7 @@ public class AddOpticalIntentCommand extends ConnectivityIntentCommand { ...@@ -58,6 +58,7 @@ public class AddOpticalIntentCommand extends ConnectivityIntentCommand {
58 58
59 Intent intent = new OpticalConnectivityIntent(appId(), ingress, egress); 59 Intent intent = new OpticalConnectivityIntent(appId(), ingress, egress);
60 service.submit(intent); 60 service.submit(intent);
61 + print("Optical intent submitted:\n%s", intent.toString());
61 } 62 }
62 63
63 /** 64 /**
......
...@@ -70,6 +70,7 @@ public class AddPointToPointIntentCommand extends ConnectivityIntentCommand { ...@@ -70,6 +70,7 @@ public class AddPointToPointIntentCommand extends ConnectivityIntentCommand {
70 Intent intent = new PointToPointIntent(appId(), selector, treatment, 70 Intent intent = new PointToPointIntent(appId(), selector, treatment,
71 ingress, egress, constraints); 71 ingress, egress, constraints);
72 service.submit(intent); 72 service.submit(intent);
73 + print("Point to point intent submitted:\n%s", intent.toString());
73 } 74 }
74 75
75 /** 76 /**
......
...@@ -79,6 +79,7 @@ public class AddSinglePointToMultiPointIntentCommand extends ConnectivityIntentC ...@@ -79,6 +79,7 @@ public class AddSinglePointToMultiPointIntentCommand extends ConnectivityIntentC
79 egressPoints, 79 egressPoints,
80 constraints); 80 constraints);
81 service.submit(intent); 81 service.submit(intent);
82 + print("Single point to multipoint intent submitted:\n%s", intent.toString());
82 } 83 }
83 84
84 /** 85 /**
......