self.assertRegex(output, routable_map[carrier])
def check_routing_policy_rule_test1(self):
+ print('### Checking routing policy rules requested by test1')
+
output = check_output('ip rule list iif test1 priority 111')
print(output)
self.assertRegex(output, r'111: from 192.168.100.18 tos (0x08|throughput) iif test1 oif test1 lookup 7')
self.assertIn('104: from 10.1.0.0/16 iif test1 lookup 12 nop', output)
def check_routing_policy_rule_dummy98(self):
- output = check_output('ip rule list table 8')
+ print('### Checking routing policy rules requested by dummy98')
+
+ output = check_output('ip rule list priority 112')
print(output)
self.assertRegex(output, r'112: from 192.168.101.18 tos (0x08|throughput) iif dummy98 oif dummy98 lookup 8')