yosemite4: fix nic slot number from 0 to 3

Change the NIC slot number from 0 to 3 to meet with system definition.

Change-Id: Ic7f10e8ca81c68ffe410ee2eae9e41b413986519
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/configure-nic-mctp-endpoint.sh b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/configure-nic-mctp-endpoint.sh
index b2036bc..59031b5 100644
--- a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/configure-nic-mctp-endpoint.sh
+++ b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/configure-nic-mctp-endpoint.sh
@@ -4,9 +4,9 @@
 action=$1
 slot=$2
 # NIC bus are 24~27.
-bus=$((23 + slot))
+bus=$((24 + slot))
 # Static EID for NIC are 90~93.
-eid=$((89 + slot))
+eid=$((90 + slot))
 
 sleep 2
 
diff --git a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json
index fc7169f..bfa7ea7 100644
--- a/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json
+++ b/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/yosemite4-phosphor-multi-gpio-monitor.json
@@ -103,11 +103,11 @@
         "GpioNum": 165,
         "EventMon": "BOTH",
         "Targets": {
-            "RISING": ["remove-nic-endpoint-slot@1.service"],
+            "RISING": ["remove-nic-endpoint-slot@0.service"],
             "FALLING": [
                 "obmc-chassis-powercycle@1.target",
                 "obmc-chassis-powercycle@2.target",
-                "setup-nic-endpoint-slot@1.service"
+                "setup-nic-endpoint-slot@0.service"
             ]
         },
         "Continue": true
@@ -118,11 +118,11 @@
         "GpioNum": 32,
         "EventMon": "BOTH",
         "Targets": {
-            "RISING": ["remove-nic-endpoint-slot@2.service"],
+            "RISING": ["remove-nic-endpoint-slot@1.service"],
             "FALLING": [
                 "obmc-chassis-powercycle@3.target",
                 "obmc-chassis-powercycle@4.target",
-                "setup-nic-endpoint-slot@2.service"
+                "setup-nic-endpoint-slot@1.service"
             ]
         },
         "Continue": true
@@ -133,11 +133,11 @@
         "GpioNum": 33,
         "EventMon": "BOTH",
         "Targets": {
-            "RISING": ["remove-nic-endpoint-slot@3.service"],
+            "RISING": ["remove-nic-endpoint-slot@2.service"],
             "FALLING": [
                 "obmc-chassis-powercycle@5.target",
                 "obmc-chassis-powercycle@6.target",
-                "setup-nic-endpoint-slot@3.service"
+                "setup-nic-endpoint-slot@2.service"
             ]
         },
         "Continue": true
@@ -152,7 +152,7 @@
             "FALLING": [
                 "obmc-chassis-powercycle@7.target",
                 "obmc-chassis-powercycle@8.target",
-                "setup-nic-endpoint-slot@4.service"
+                "setup-nic-endpoint-slot@3.service"
             ]
         },
         "Continue": true