shahshreya | a47ebf4 | 2015-05-20 13:29:18 -0700 | [diff] [blame^] | 1 | |
| 2 | # main.step(var1) |
| 3 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 4 | ingressDevice="of:0000000000003008/1", |
| 5 | egressDevice="of:0000000000006018/1", |
| 6 | ethType='IPV4', |
| 7 | ethSrc=macsDict.get( 'h8' )) |
| 8 | if ptpIntentResult == main.TRUE: |
| 9 | getIntentResult = main.ONOScli1.intents() |
| 10 | main.log.info( "Point to point intent install successful" ) |
| 11 | # main.log.info( getIntentResult ) |
| 12 | |
| 13 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 14 | ingressDevice="of:0000000000006018/1", |
| 15 | egressDevice="of:0000000000003008/1", |
| 16 | ethType='IPV4', |
| 17 | ethSrc=macsDict.get( 'h18' )) |
| 18 | if ptpIntentResult == main.TRUE: |
| 19 | getIntentResult = main.ONOScli1.intents() |
| 20 | main.log.info( "Point to point intent install successful" ) |
| 21 | # main.log.info( getIntentResult ) |
| 22 | |
| 23 | var2 = "Add point intents for mn hosts h9&h19 or ONOS hosts h9&h13" |
| 24 | main.step(var2) |
| 25 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 26 | "of:0000000000003009/1", |
| 27 | "of:0000000000006019/1", |
| 28 | ethType='IPV4', |
| 29 | ethSrc=macsDict.get( 'h9' )) |
| 30 | if ptpIntentResult == main.TRUE: |
| 31 | getIntentResult = main.ONOScli1.intents() |
| 32 | main.log.info( "Point to point intent install successful" ) |
| 33 | # main.log.info( getIntentResult ) |
| 34 | |
| 35 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 36 | "of:0000000000006019/1", |
| 37 | "of:0000000000003009/1", |
| 38 | ethType='IPV4', |
| 39 | ethSrc=macsDict.get( 'h19' )) |
| 40 | if ptpIntentResult == main.TRUE: |
| 41 | getIntentResult = main.ONOScli1.intents() |
| 42 | main.log.info( "Point to point intent install successful" ) |
| 43 | # main.log.info( getIntentResult ) |
| 44 | |
| 45 | var3 = "Add point intents for MN hosts h10&h20 or ONOS hosts hA&h14" |
| 46 | main.step(var3) |
| 47 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 48 | "of:0000000000003010/1", |
| 49 | "of:0000000000006020/1", |
| 50 | ethType='IPV4', |
| 51 | ethSrc=macsDict.get( 'h10' )) |
| 52 | |
| 53 | if ptpIntentResult == main.TRUE: |
| 54 | getIntentResult = main.ONOScli1.intents() |
| 55 | main.log.info( "Point to point intent install successful" ) |
| 56 | # main.log.info( getIntentResult ) |
| 57 | |
| 58 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 59 | "of:0000000000006020/1", |
| 60 | "of:0000000000003010/1", |
| 61 | ethType='IPV4', |
| 62 | ethSrc=macsDict.get( 'h20' )) |
| 63 | |
| 64 | if ptpIntentResult == main.TRUE: |
| 65 | getIntentResult = main.ONOScli1.intents() |
| 66 | main.log.info( "Point to point intent install successful" ) |
| 67 | # main.log.info( getIntentResult ) |
| 68 | |
| 69 | var4 = "Add point intents for mininet hosts h11 and h21 or" +\ |
| 70 | " ONOS hosts hB and h15" |
| 71 | main.case(var4) |
| 72 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 73 | "of:0000000000003011/1", |
| 74 | "of:0000000000006021/1", |
| 75 | ethType='IPV4', |
| 76 | ethSrc=macsDict.get( 'h11' )) |
| 77 | |
| 78 | if ptpIntentResult == main.TRUE: |
| 79 | getIntentResult = main.ONOScli1.intents() |
| 80 | main.log.info( "Point to point intent install successful" ) |
| 81 | # main.log.info( getIntentResult ) |
| 82 | |
| 83 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 84 | "of:0000000000006021/1", |
| 85 | "of:0000000000003011/1", |
| 86 | ethType='IPV4', |
| 87 | ethSrc=macsDict.get( 'h21' )) |
| 88 | |
| 89 | if ptpIntentResult == main.TRUE: |
| 90 | getIntentResult = main.ONOScli1.intents() |
| 91 | main.log.info( "Point to point intent install successful" ) |
| 92 | # main.log.info( getIntentResult ) |
| 93 | |
| 94 | var5 = "Add point intents for mininet hosts h12 and h22 " +\ |
| 95 | "ONOS hosts hC and h16" |
| 96 | main.case(var5) |
| 97 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 98 | "of:0000000000003012/1", |
| 99 | "of:0000000000006022/1", |
| 100 | ethType='IPV4', |
| 101 | ethSrc=macsDict.get( 'h12' )) |
| 102 | |
| 103 | if ptpIntentResult == main.TRUE: |
| 104 | getIntentResult = main.ONOScli1.intents() |
| 105 | main.log.info( "Point to point intent install successful" ) |
| 106 | # main.log.info( getIntentResult ) |
| 107 | |
| 108 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 109 | "of:0000000000006022/1", |
| 110 | "of:0000000000003012/1", |
| 111 | ethType='IPV4', |
| 112 | ethSrc=macsDict.get( 'h22' )) |
| 113 | |
| 114 | if ptpIntentResult == main.TRUE: |
| 115 | getIntentResult = main.ONOScli1.intents() |
| 116 | main.log.info( "Point to point intent install successful" ) |
| 117 | # main.log.info( getIntentResult ) |
| 118 | |
| 119 | var6 = "Add point intents for mininet hosts h13 and h23 or" +\ |
| 120 | " ONOS hosts hD and h17" |
| 121 | main.case(var6) |
| 122 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 123 | "of:0000000000003013/1", |
| 124 | "of:0000000000006023/1", |
| 125 | ethType='IPV4', |
| 126 | ethSrc=macsDict.get( 'h13' )) |
| 127 | |
| 128 | if ptpIntentResult == main.TRUE: |
| 129 | getIntentResult = main.ONOScli1.intents() |
| 130 | main.log.info( "Point to point intent install successful" ) |
| 131 | # main.log.info( getIntentResult ) |
| 132 | |
| 133 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 134 | "of:0000000000006023/1", |
| 135 | "of:0000000000003013/1", |
| 136 | ethType='IPV4', |
| 137 | ethSrc=macsDict.get( 'h23' )) |
| 138 | |
| 139 | if ptpIntentResult == main.TRUE: |
| 140 | getIntentResult = main.ONOScli1.intents() |
| 141 | main.log.info( "Point to point intent install successful" ) |
| 142 | # main.log.info( getIntentResult ) |
| 143 | |
| 144 | var7 = "Add point intents for mininet hosts h14 and h24 or" +\ |
| 145 | " ONOS hosts hE and h18" |
| 146 | main.case(var7) |
| 147 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 148 | "of:0000000000003014/1", |
| 149 | "of:0000000000006024/1", |
| 150 | ethType='IPV4', |
| 151 | ethSrc=macsDict.get( 'h14' )) |
| 152 | |
| 153 | if ptpIntentResult == main.TRUE: |
| 154 | getIntentResult = main.ONOScli1.intents() |
| 155 | main.log.info( "Point to point intent install successful" ) |
| 156 | # main.log.info( getIntentResult ) |
| 157 | |
| 158 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 159 | "of:0000000000006024/1", |
| 160 | "of:0000000000003014/1", |
| 161 | ethType='IPV4', |
| 162 | ethSrc=macsDict.get( 'h24' )) |
| 163 | |
| 164 | if ptpIntentResult == main.TRUE: |
| 165 | getIntentResult = main.ONOScli1.intents() |
| 166 | main.log.info( "Point to point intent install successful" ) |
| 167 | # main.log.info( getIntentResult ) |
| 168 | |
| 169 | var8 = "Add point intents for mininet hosts h15 and h25 or" +\ |
| 170 | " ONOS hosts hF and h19" |
| 171 | main.case(var8) |
| 172 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 173 | "of:0000000000003015/1", |
| 174 | "of:0000000000006025/1", |
| 175 | ethType='IPV4', |
| 176 | ethSrc=macsDict.get( 'h15' )) |
| 177 | |
| 178 | if ptpIntentResult == main.TRUE: |
| 179 | getIntentResult = main.ONOScli1.intents() |
| 180 | main.log.info( "Point to point intent install successful" ) |
| 181 | # main.log.info( getIntentResult ) |
| 182 | |
| 183 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 184 | "of:0000000000006025/1", |
| 185 | "of:0000000000003015/1", |
| 186 | ethType='IPV4', |
| 187 | ethSrc=macsDict.get( 'h25' )) |
| 188 | |
| 189 | if ptpIntentResult == main.TRUE: |
| 190 | getIntentResult = main.ONOScli1.intents() |
| 191 | main.log.info( "Point to point intent install successful" ) |
| 192 | # main.log.info( getIntentResult ) |
| 193 | |
| 194 | var9 = "Add intents for mininet hosts h16 and h26 or" +\ |
| 195 | " ONOS hosts h10 and h1A" |
| 196 | main.case(var9) |
| 197 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 198 | "of:0000000000003016/1", |
| 199 | "of:0000000000006026/1", |
| 200 | ethType='IPV4', |
| 201 | ethSrc=macsDict.get( 'h16' )) |
| 202 | |
| 203 | if ptpIntentResult == main.TRUE: |
| 204 | getIntentResult = main.ONOScli1.intents() |
| 205 | main.log.info( "Point to point intent install successful" ) |
| 206 | # main.log.info( getIntentResult ) |
| 207 | |
| 208 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 209 | "of:0000000000006026/1", |
| 210 | "of:0000000000003016/1", |
| 211 | ethType='IPV4', |
| 212 | ethSrc=macsDict.get( 'h26' )) |
| 213 | |
| 214 | if ptpIntentResult == main.TRUE: |
| 215 | getIntentResult = main.ONOScli1.intents() |
| 216 | main.log.info( "Point to point intent install successful" ) |
| 217 | # main.log.info( getIntentResult ) |
| 218 | |
| 219 | var10 = "Add point intents for mininet hosts h17 and h27 or" +\ |
| 220 | " ONOS hosts h11 and h1B" |
| 221 | main.case(var10) |
| 222 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 223 | "of:0000000000003017/1", |
| 224 | "of:0000000000006027/1", |
| 225 | ethType='IPV4', |
| 226 | ethSrc=macsDict.get( 'h17' )) |
| 227 | |
| 228 | if ptpIntentResult == main.TRUE: |
| 229 | getIntentResult = main.ONOScli1.intents() |
| 230 | main.log.info( "Point to point intent install successful" ) |
| 231 | #main.log.info( getIntentResult ) |
| 232 | |
| 233 | ptpIntentResult = main.ONOScli1.addPointIntent( |
| 234 | "of:0000000000006027/1", |
| 235 | "of:0000000000003017/1", |
| 236 | ethType='IPV4', |
| 237 | ethSrc=macsDict.get( 'h27' )) |