blob: 77257686c63a678b96b1142f51570b90ac021b99 [file] [log] [blame]
shahshreyaa47ebf42015-05-20 13:29:18 -07001
2 ptpIntentResult = main.ONOScli1.addPointIntent(
3 "of:0000000000003008/1",
4 "of:0000000000006018/1",
5 ethType='IPV4',
6 ethSrc=macsDict.get( 'h8' ))
7 if ptpIntentResult == main.TRUE:
8 getIntentResult = main.ONOScli1.intents()
9 main.log.info( "Point to point intent install successful" )
10 # main.log.info( getIntentResult )
11
12 ptpIntentResult = main.ONOScli1.addPointIntent(
13 "of:0000000000006018/1",
14 "of:0000000000003008/1",
15 ethType='IPV4',
16 ethSrc=macsDict.get( 'h18' ))
17
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 main.step(
24 "Add point-to-point intents for mininet hosts" +
25 " h9 and h19 or ONOS hosts h9 and h13" )
26 ptpIntentResult = main.ONOScli1.addPointIntent(
27 "of:0000000000003009/1",
28 "of:0000000000006019/1", )
29 if ptpIntentResult == main.TRUE:
30 getIntentResult = main.ONOScli1.intents()
31 main.log.info( "Point to point intent install successful" )
32 # main.log.info( getIntentResult )
33
34 ptpIntentResult = main.ONOScli1.addPointIntent(
35 "of:0000000000006019/1",
36 "of:0000000000003009/1" )
37 if ptpIntentResult == main.TRUE:
38 getIntentResult = main.ONOScli1.intents()
39 main.log.info( "Point to point intent install successful" )
40 # main.log.info( getIntentResult )
41
42 main.step(
43 "Add point-to-point intents for mininet" +
44 " hosts h10 and h20 or ONOS hosts hA and h14" )
45 ptpIntentResult = main.ONOScli1.addPointIntent(
46 "of:0000000000003010/1",
47 "of:0000000000006020/1" )
48 if ptpIntentResult == main.TRUE:
49 getIntentResult = main.ONOScli1.intents()
50 main.log.info( "Point to point intent install successful" )
51 # main.log.info( getIntentResult )
52
53 ptpIntentResult = main.ONOScli1.addPointIntent(
54 "of:0000000000006020/1",
55 "of:0000000000003010/1" )
56 if ptpIntentResult == main.TRUE:
57 getIntentResult = main.ONOScli1.intents()
58 main.log.info( "Point to point intent install successful" )
59 # main.log.info( getIntentResult )
60
61 main.step(
62 "Add point-to-point intents for mininet" +
63 " hosts h11 and h21 or ONOS hosts hB and h15" )
64 ptpIntentResult = main.ONOScli1.addPointIntent(
65 "of:0000000000003011/1",
66 "of:0000000000006021/1" )
67 if ptpIntentResult == main.TRUE:
68 getIntentResult = main.ONOScli1.intents()
69 main.log.info( "Point to point intent install successful" )
70 # main.log.info( getIntentResult )
71
72 ptpIntentResult = main.ONOScli1.addPointIntent(
73 "of:0000000000006021/1",
74 "of:0000000000003011/1" )
75 if ptpIntentResult == main.TRUE:
76 getIntentResult = main.ONOScli1.intents()
77 main.log.info( "Point to point intent install successful" )
78 # main.log.info( getIntentResult )
79
80 main.step(
81 "Add point-to-point intents for mininet" +
82 " hosts h12 and h22 or ONOS hosts hC and h16" )
83 ptpIntentResult = main.ONOScli1.addPointIntent(
84 "of:0000000000003012/1",
85 "of:0000000000006022/1" )
86 if ptpIntentResult == main.TRUE:
87 getIntentResult = main.ONOScli1.intents()
88 main.log.info( "Point to point intent install successful" )
89 # main.log.info( getIntentResult )
90
91 ptpIntentResult = main.ONOScli1.addPointIntent(
92 "of:0000000000006022/1",
93 "of:0000000000003012/1" )
94 if ptpIntentResult == main.TRUE:
95 getIntentResult = main.ONOScli1.intents()
96 main.log.info( "Point to point intent install successful" )
97 # main.log.info( getIntentResult )
98
99 main.step(
100 "Add point-to-point intents for mininet " +
101 "hosts h13 and h23 or ONOS hosts hD and h17" )
102 ptpIntentResult = main.ONOScli1.addPointIntent(
103 "of:0000000000003013/1",
104 "of:0000000000006023/1" )
105 if ptpIntentResult == main.TRUE:
106 getIntentResult = main.ONOScli1.intents()
107 main.log.info( "Point to point intent install successful" )
108 # main.log.info( getIntentResult )
109
110 ptpIntentResult = main.ONOScli1.addPointIntent(
111 "of:0000000000006023/1",
112 "of:0000000000003013/1" )
113 if ptpIntentResult == main.TRUE:
114 getIntentResult = main.ONOScli1.intents()
115 main.log.info( "Point to point intent install successful" )
116 # main.log.info( getIntentResult )
117
118 main.step(
119 "Add point-to-point intents for mininet hosts" +
120 " h14 and h24 or ONOS hosts hE and h18" )
121 ptpIntentResult = main.ONOScli1.addPointIntent(
122 "of:0000000000003014/1",
123 "of:0000000000006024/1" )
124 if ptpIntentResult == main.TRUE:
125 getIntentResult = main.ONOScli1.intents()
126 main.log.info( "Point to point intent install successful" )
127 # main.log.info( getIntentResult )
128
129 ptpIntentResult = main.ONOScli1.addPointIntent(
130 "of:0000000000006024/1",
131 "of:0000000000003014/1" )
132 if ptpIntentResult == main.TRUE:
133 getIntentResult = main.ONOScli1.intents()
134 main.log.info( "Point to point intent install successful" )
135 # main.log.info( getIntentResult )
136
137 main.step(
138 "Add point-to-point intents for mininet hosts" +
139 " h15 and h25 or ONOS hosts hF and h19" )
140 ptpIntentResult = main.ONOScli1.addPointIntent(
141 "of:0000000000003015/1",
142 "of:0000000000006025/1" )
143 if ptpIntentResult == main.TRUE:
144 getIntentResult = main.ONOScli1.intents()
145 main.log.info( "Point to point intent install successful" )
146 # main.log.info( getIntentResult )
147
148 ptpIntentResult = main.ONOScli1.addPointIntent(
149 "of:0000000000006025/1",
150 "of:0000000000003015/1" )
151 if ptpIntentResult == main.TRUE:
152 getIntentResult = main.ONOScli1.intents()
153 main.log.info( "Point to point intent install successful" )
154 # main.log.info( getIntentResult )
155
156 main.step(
157 "Add point-to-point intents for mininet hosts" +
158 " h16 and h26 or ONOS hosts h10 and h1A" )
159 ptpIntentResult = main.ONOScli1.addPointIntent(
160 "of:0000000000003016/1",
161 "of:0000000000006026/1" )
162 if ptpIntentResult == main.TRUE:
163 getIntentResult = main.ONOScli1.intents()
164 main.log.info( "Point to point intent install successful" )
165 # main.log.info( getIntentResult )
166
167 ptpIntentResult = main.ONOScli1.addPointIntent(
168 "of:0000000000006026/1",
169 "of:0000000000003016/1" )
170 if ptpIntentResult == main.TRUE:
171 getIntentResult = main.ONOScli1.intents()
172 main.log.info( "Point to point intent install successful" )
173 # main.log.info( getIntentResult )
174
175 main.step(
176 "Add point-to-point intents for mininet hosts h17" +
177 " and h27 or ONOS hosts h11 and h1B" )
178 ptpIntentResult = main.ONOScli1.addPointIntent(
179 "of:0000000000003017/1",
180 "of:0000000000006027/1" )
181 if ptpIntentResult == main.TRUE:
182 getIntentResult = main.ONOScli1.intents()
183 main.log.info( "Point to point intent install successful" )
184 # main.log.info( getIntentResult )
185
186 ptpIntentResult = main.ONOScli1.addPointIntent(
187 "of:0000000000006027/1",
188 "of:0000000000003017/1" )
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 )