Use DPID format like "00:00:00:00:00:00:00:00" to set the switch DPID
instead of an integer when pusing an intent via the REST api.
Change-Id: Ie58a774762f201e64f85ec811ca0aa0b2c51d6b1
diff --git a/scripts/intent-installer.rb b/scripts/intent-installer.rb
index 41361be..3112a98 100755
--- a/scripts/intent-installer.rb
+++ b/scripts/intent-installer.rb
@@ -187,11 +187,11 @@
:intent_id => "#{@freeze}#{@intent_id}",
:intent_type => @intent_type,
:intent_op => @intent_op,
- :srcSwitch => "258".to_s,
- :srcPort => 65534,
+ :srcSwitch => "00:00:00:00:00:00:02:02".to_s,
+ :srcPort => 1,
:srcMac => "00:00:c0:#{mac_format(idx)}",
- :dstSwitch => "514".to_s,
- :dstPort => 65534,
+ :dstSwitch => "00:00:00:00:00:00:04:02".to_s,
+ :dstPort => 1,
:dstMac => "00:00:c1:#{mac_format(idx)}"
}
puts intent.inspect