1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
|
"""
SoftLayer.tests.managers.network_tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:license: MIT, see LICENSE for more details.
"""
import sys
import unittest
from unittest import mock as mock
import SoftLayer
from SoftLayer import fixtures
from SoftLayer.managers import network
from SoftLayer import testing
class NetworkTests(testing.TestCase):
def set_up(self):
self.network = SoftLayer.NetworkManager(self.client)
def test_ip_lookup(self):
result = self.network.ip_lookup('10.0.1.37')
expected = fixtures.SoftLayer_Network_Subnet_IpAddress.getByIpAddress
self.assertEqual(result, expected)
self.assert_called_with('SoftLayer_Network_Subnet_IpAddress',
'getByIpAddress',
args=('10.0.1.37',))
def test_add_global_ip(self):
# Test a global IPv4 order
result = self.network.add_global_ip(test_order=True)
self.assertEqual(fixtures.SoftLayer_Product_Order.verifyOrder, result)
def test_add_securitygroup_rule(self):
result = self.network.add_securitygroup_rule(100,
remote_ip='10.0.0.0/24',
direction='ingress',
ethertype='IPv4',
port_min=95,
port_max=100,
protocol='tcp')
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'addRules', identifier=100,
args=([{'remoteIp': '10.0.0.0/24',
'direction': 'ingress',
'ethertype': 'IPv4',
'portRangeMin': 95,
'portRangeMax': 100,
'protocol': 'tcp'}],))
def test_add_securitygroup_rules(self):
rule1 = {'remoteIp': '10.0.0.0/24',
'direction': 'ingress',
'ethertype': 'IPv4',
'portRangeMin': 95,
'portRangeMax': 100,
'protocol': 'tcp'}
rule2 = {'remoteGroupId': 102,
'direction': 'egress',
'ethertype': 'IPv4'}
result = self.network.add_securitygroup_rules(100, [rule1, rule2])
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'addRules', identifier=100,
args=([rule1, rule2],))
def test_add_securitygroup_rules_with_dict_error(self):
rule = {'remoteIp': '10.0.0.0/24',
'direction': 'ingress'}
self.assertRaises(TypeError, self.network.add_securitygroup_rules,
rule)
def test_add_subnet_for_ipv4(self):
# Test a four public address IPv4 order
result = self.network.add_subnet('public',
quantity=4,
endpoint_id=1234,
version=4,
test_order=True)
self.assertEqual(fixtures.SoftLayer_Product_Order.verifyOrder, result)
result = self.network.add_subnet('public',
quantity=4,
endpoint_id=1234,
version=4,
test_order=False)
self.assertEqual(fixtures.SoftLayer_Product_Order.placeOrder, result)
result = self.network.add_subnet('global',
test_order=True)
self.assertEqual(fixtures.SoftLayer_Product_Order.verifyOrder, result)
result = self.network.add_subnet('static',
quantity=8,
endpoint_id=1234,
version=4,
test_order=True)
self.assertEqual(fixtures.SoftLayer_Product_Order.verifyOrder, result)
def test_add_subnet_for_ipv6(self):
# Test a public IPv6 order
result = self.network.add_subnet('public',
quantity=64,
endpoint_id=45678,
version=6,
test_order=True)
self.assertEqual(fixtures.SoftLayer_Product_Order.verifyOrder, result)
# Test a global IPv6 order
result = self.network.add_subnet('global',
version=6,
test_order=True)
self.assertEqual(fixtures.SoftLayer_Product_Order.verifyOrder, result)
def test_assign_global_ip(self):
result = self.network.assign_global_ip(9876, '172.16.24.76')
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Network_Subnet_IpAddress_Global',
'route',
identifier=9876,
args=('172.16.24.76',))
def test_attach_securitygroup_component(self):
result = self.network.attach_securitygroup_component(100, 500)
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'attachNetworkComponents',
identifier=100,
args=([500],))
def test_attach_securitygroup_components(self):
result = self.network.attach_securitygroup_components(100, [500, 600])
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'attachNetworkComponents',
identifier=100,
args=([500, 600],))
def test_cancel_global_ip(self):
result = self.network.cancel_global_ip(1234)
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Billing_Item', 'cancelService',
identifier=1234)
def test_cancel_subnet(self):
result = self.network.cancel_subnet(1234)
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Billing_Item', 'cancelService',
identifier=1056)
def test_set_tags_subnet(self):
subnet_id = 1234
tags = 'tags1,tag2'
result = self.network.set_tags_subnet(subnet_id, tags)
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Network_Subnet', 'setTags',
identifier=subnet_id,
args=(tags,))
def test_edit_note_subnet(self):
subnet_id = 1234
note = 'test note'
result = self.network.edit_note_subnet(subnet_id, note)
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Network_Subnet', 'editNote',
identifier=subnet_id,
args=(note,))
def test_create_securitygroup(self):
result = self.network.create_securitygroup(name='foo',
description='bar')
sg_fixture = fixtures.SoftLayer_Network_SecurityGroup
self.assertEqual(sg_fixture.createObject, result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'createObject',
args=({'name': 'foo',
'description': 'bar'},))
def test_delete_securitygroup(self):
result = self.network.delete_securitygroup(100)
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'deleteObject',
identifier=100)
def test_detach_securitygroup_component(self):
result = self.network.detach_securitygroup_component(100, 500)
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'detachNetworkComponents',
identifier=100, args=([500],))
def test_detach_securitygroup_components(self):
result = self.network.detach_securitygroup_components(100,
[500, 600])
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'detachNetworkComponents',
identifier=100, args=([500, 600],))
def test_edit_securitygroup(self):
result = self.network.edit_securitygroup(100, name='foobar')
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'editObject', identifier=100,
args=({'name': 'foobar'},))
def test_edit_securitygroup_rule(self):
result = self.network.edit_securitygroup_rule(100, 500,
direction='ingress')
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'editRules', identifier=100,
args=([{'id': 500,
'direction': 'ingress'}],))
def test_edit_securitygroup_rule_unset(self):
# Test calling edit rule with falsy values, which are used
# to unset those values in the API
result = self.network.edit_securitygroup_rule(100, 500,
protocol='',
port_min=-1,
port_max=-1,
ethertype='',
remote_ip='')
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'editRules', identifier=100,
args=([{'id': 500, 'protocol': '',
'portRangeMin': -1, 'portRangeMax': -1,
'ethertype': '', 'remoteIp': ''}],))
def test_get_securitygroup(self):
result = self.network.get_securitygroup(100)
sg_fixture = fixtures.SoftLayer_Network_SecurityGroup
self.assertEqual(sg_fixture.getObject, result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'getObject', identifier=100)
def test_get_subnet(self):
result = self.network.get_subnet(9876)
self.assertEqual(result, fixtures.SoftLayer_Network_Subnet.getObject)
self.assert_called_with('SoftLayer_Network_Subnet', 'getObject',
identifier=9876)
def test_get_vlan(self):
result = self.network.get_vlan(1234)
self.assertEqual(result, fixtures.SoftLayer_Network_Vlan.getObject)
self.assert_called_with('SoftLayer_Network_Vlan', 'getObject',
identifier=1234)
def test_list_global_ips_default(self):
result = self.network.list_global_ips()
self.assertEqual(result,
fixtures.SoftLayer_Account.getGlobalIpRecords)
mask = 'mask[destinationIpAddress[hardware, virtualGuest],ipAddress]'
self.assert_called_with('SoftLayer_Account', 'getGlobalIpRecords',
mask=mask)
def test_list_global_ips_with_filter(self):
result = self.network.list_global_ips(version=4)
self.assertEqual(result,
fixtures.SoftLayer_Account.getGlobalIpRecords)
mask = 'mask[destinationIpAddress[hardware, virtualGuest],ipAddress]'
_filter = {
'globalIpRecords': {
'ipAddress': {
'subnet': {
'version': {'operation': 4},
}
}
}
}
mask = 'mask[destinationIpAddress[hardware, virtualGuest],ipAddress]'
self.assert_called_with('SoftLayer_Account', 'getGlobalIpRecords',
mask=mask,
filter=_filter)
def test_list_subnets_default(self):
result = self.network.list_subnets(
identifier='10.0.0.1',
datacenter='dal00',
version=4,
subnet_type='PRIMARY',
network_space='PUBLIC',
)
self.assertEqual(result, fixtures.SoftLayer_Account.getSubnets)
_filter = {
'subnets': {
'networkIdentifier': {'operation': '_= 10.0.0.1'},
'datacenter': {
'name': {'operation': '_= dal00'}
},
'version': {'operation': 4},
'subnetType': {'operation': '_= PRIMARY'},
'networkVlan': {'networkSpace': {'operation': '_= PUBLIC'}},
}
}
self.assert_called_with('SoftLayer_Account', 'getSubnets',
mask='mask[%s]' % network.DEFAULT_SUBNET_MASK,
filter=_filter)
def test_list_subnets_with_filters(self):
result = self.network.list_subnets()
self.assertEqual(result, fixtures.SoftLayer_Account.getSubnets)
self.assert_called_with('SoftLayer_Account', 'getSubnets',
mask='mask[%s]' % network.DEFAULT_SUBNET_MASK)
def test_list_vlans_default(self):
result = self.network.list_vlans()
self.assertEqual(result, fixtures.SoftLayer_Account.getNetworkVlans)
self.assert_called_with('SoftLayer_Account', 'getNetworkVlans')
def test_list_vlans_with_filters(self):
result = self.network.list_vlans(
vlan_number=5,
datacenter='dal00',
name='primary-vlan',
)
self.assertEqual(result, fixtures.SoftLayer_Account.getNetworkVlans)
_filter = {
'networkVlans': {
'id': {
'operation': 'orderBy',
'options': [
{'name': 'sort', 'value': ['ASC']}]},
'vlanNumber': {'operation': 5},
'name': {'operation': '_= primary-vlan'},
'primaryRouter': {
'datacenter': {'name': {'operation': '_= dal00'}}}}
}
self.assert_called_with('SoftLayer_Account', 'getNetworkVlans',
filter=_filter)
def test_list_securitygroups(self):
result = self.network.list_securitygroups()
sg_fixture = fixtures.SoftLayer_Network_SecurityGroup
self.assertEqual(sg_fixture.getAllObjects, result)
def test_list_securitygroup_rules(self):
result = self.network.list_securitygroup_rules(100)
sg_fixture = fixtures.SoftLayer_Network_SecurityGroup
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'getRules', identifier=100)
self.assertEqual(sg_fixture.getRules, result)
def test_remove_securitygroup_rule(self):
result = self.network.remove_securitygroup_rule(100, 500)
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'removeRules', identifier=100,
args=([500],))
def test_remove_securitygroup_rules(self):
result = self.network.remove_securitygroup_rules(100, [500, 600])
self.assertTrue(result)
self.assert_called_with('SoftLayer_Network_SecurityGroup',
'removeRules', identifier=100,
args=([500, 600],))
def test_summary_by_datacenter(self):
result = self.network.summary_by_datacenter()
expected = {'dal00': {'hardware_count': 1,
'virtual_guest_count': 1,
'subnet_count': 0,
'public_ip_count': 6,
'vlan_count': 3}}
self.assertEqual(expected, result)
def test_resolve_global_ip_ids(self):
_id = self.network.resolve_global_ip_ids('10.0.0.1')
self.assertEqual(_id, ['200', '201'])
def test_resolve_global_ip_ids_no_results(self):
mock = self.set_mock('SoftLayer_Account', 'getGlobalIpRecords')
mock.return_value = []
_id = self.network.resolve_global_ip_ids('nope')
self.assertEqual(_id, [])
def test_resolve_subnet_ids(self):
_id = self.network.resolve_subnet_ids('10.0.0.1/29')
self.assertEqual(_id, ['100', '111'])
def test_resolve_subnet_ids_no_results(self):
mock = self.set_mock('SoftLayer_Account', 'getSubnets')
mock.return_value = []
_id = self.network.resolve_subnet_ids('nope')
self.assertEqual(_id, [])
def test_resolve_vlan_ids(self):
mock = self.set_mock('SoftLayer_Account', 'getNetworkVlans')
mock.return_value = [{'id': '100'}]
_id = self.network.resolve_vlan_ids('vlan_name')
self.assertEqual(_id, ['100'])
def test_resolve_vlan_ids_no_results(self):
mock = self.set_mock('SoftLayer_Account', 'getNetworkVlans')
mock.return_value = []
_id = self.network.resolve_vlan_ids('nope')
self.assertEqual(_id, [])
def test_unassign_global_ip(self):
result = self.network.unassign_global_ip(9876)
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Network_Subnet_IpAddress_Global',
'unroute',
identifier=9876)
def test_get_event_logs_by_request_id(self):
expected = [
{
'accountId': 100,
'eventCreateDate': '2017-10-18T09:40:32.238869-05:00',
'eventName': 'Security Group Added',
'ipAddress': '192.168.0.1',
'label': 'test.softlayer.com',
'metaData': '{"securityGroupId":"200",'
'"securityGroupName":"test_SG",'
'"networkComponentId":"100",'
'"networkInterfaceType":"public",'
'"requestId":"96c9b47b9e102d2e1d81fba"}',
'objectId': 300,
'objectName': 'CCI',
'traceId': '59e767e03a57e',
'userId': 400,
'userType': 'CUSTOMER',
'username': 'user'
},
{
'accountId': 100,
'eventCreateDate': '2017-10-18T10:42:13.089536-05:00',
'eventName': 'Security Group Rule(s) Removed',
'ipAddress': '192.168.0.1',
'label': 'test_SG',
'metaData': '{"requestId":"96c9b47b9e102d2e1d81fba",'
'"rules":[{"ruleId":"800",'
'"remoteIp":null,"remoteGroupId":null,"direction":"ingress",'
'"ethertype":"IPv4",'
'"portRangeMin":2000,"portRangeMax":2001,"protocol":"tcp"}]}',
'objectId': 700,
'objectName': 'Security Group',
'traceId': '59e7765515e28',
'userId': 400,
'userType': 'CUSTOMER',
'username': 'user'
}
]
with mock.patch.object(self.network, '_get_cci_event_logs') as cci_mock:
with mock.patch.object(self.network, '_get_security_group_event_logs') as sg_mock:
cci_mock.return_value = [
{
'accountId': 100,
'eventCreateDate': '2017-10-18T09:40:32.238869-05:00',
'eventName': 'Security Group Added',
'ipAddress': '192.168.0.1',
'label': 'test.softlayer.com',
'metaData': '{"securityGroupId":"200",'
'"securityGroupName":"test_SG",'
'"networkComponentId":"100",'
'"networkInterfaceType":"public",'
'"requestId":"96c9b47b9e102d2e1d81fba"}',
'objectId': 300,
'objectName': 'CCI',
'traceId': '59e767e03a57e',
'userId': 400,
'userType': 'CUSTOMER',
'username': 'user'
},
{
'accountId': 100,
'eventCreateDate': '2017-10-23T14:22:36.221541-05:00',
'eventName': 'Disable Port',
'ipAddress': '192.168.0.1',
'label': 'test.softlayer.com',
'metaData': '',
'objectId': 300,
'objectName': 'CCI',
'traceId': '100',
'userId': '',
'userType': 'SYSTEM'
},
{
'accountId': 100,
'eventCreateDate': '2017-10-18T09:40:41.830338-05:00',
'eventName': 'Security Group Rule Added',
'ipAddress': '192.168.0.1',
'label': 'test.softlayer.com',
'metaData': '{"securityGroupId":"200",'
'"securityGroupName":"test_SG",'
'"networkComponentId":"100",'
'"networkInterfaceType":"public",'
'"requestId":"53d0b91d392864e062f4958",'
'"rules":[{"ruleId":"100",'
'"remoteIp":null,"remoteGroupId":null,"direction":"ingress",'
'"ethertype":"IPv4",'
'"portRangeMin":2000,"portRangeMax":2001,"protocol":"tcp"}]}',
'objectId': 300,
'objectName': 'CCI',
'traceId': '59e767e9c2184',
'userId': 400,
'userType': 'CUSTOMER',
'username': 'user'
}
]
sg_mock.return_value = [
{
'accountId': 100,
'eventCreateDate': '2017-10-18T10:42:13.089536-05:00',
'eventName': 'Security Group Rule(s) Removed',
'ipAddress': '192.168.0.1',
'label': 'test_SG',
'metaData': '{"requestId":"96c9b47b9e102d2e1d81fba",'
'"rules":[{"ruleId":"800",'
'"remoteIp":null,"remoteGroupId":null,"direction":"ingress",'
'"ethertype":"IPv4",'
'"portRangeMin":2000,"portRangeMax":2001,"protocol":"tcp"}]}',
'objectId': 700,
'objectName': 'Security Group',
'traceId': '59e7765515e28',
'userId': 400,
'userType': 'CUSTOMER',
'username': 'user'
},
{
'accountId': 100,
'eventCreateDate': '2017-10-18T10:42:11.679736-05:00',
'eventName': 'Network Component Removed from Security Group',
'ipAddress': '192.168.0.1',
'label': 'test_SG',
'metaData': '{"requestId":"6b9a87a9ab8ac9a22e87a00",'
'"fullyQualifiedDomainName":"test.softlayer.com",'
'"networkComponentId":"100",'
'"networkInterfaceType":"public"}',
'objectId': 700,
'objectName': 'Security Group',
'traceId': '59e77653a1e5f',
'userId': 400,
'userType': 'CUSTOMER',
'username': 'user'
}
]
result = self.network.get_event_logs_by_request_id('96c9b47b9e102d2e1d81fba')
self.assertEqual(expected, result)
@unittest.skipIf(sys.version_info < (3, 6), "__next__ doesn't work in python 2")
def test_get_security_group_event_logs(self):
result = self.network._get_security_group_event_logs()
# Event log now returns a generator, so you have to get a result for it to make an API call
log = result.__next__()
_filter = {'objectName': {'operation': 'Security Group'}}
self.assert_called_with('SoftLayer_Event_Log', 'getAllObjects', filter=_filter)
self.assertEqual(100, log['accountId'])
@unittest.skipIf(sys.version_info < (3, 6), "__next__ doesn't work in python 2")
def test_get_cci_event_logs(self):
result = self.network._get_cci_event_logs()
# Event log now returns a generator, so you have to get a result for it to make an API call
log = result.__next__()
_filter = {'objectName': {'operation': 'CCI'}}
self.assert_called_with('SoftLayer_Event_Log', 'getAllObjects', filter=_filter)
self.assertEqual(100, log['accountId'])
def test_vlan_edit(self):
vlan_id = 100
name = "test"
note = "test note"
tags = "tag1,tag2"
self.network.edit(vlan_id, name, note, tags)
self.assert_called_with('SoftLayer_Network_Vlan', 'editObject')
def test_get_all_pods(self):
self.network.get_pods()
self.assert_called_with('SoftLayer_Network_Pod', 'getAllObjects')
def test_route(self):
self.network.route('SoftLayer_Hardware_Server', 123456, 100)
self.assert_called_with('SoftLayer_Network_Subnet', 'route')
def test_get_all_datacenter(self):
self.network.get_datacenter()
self.assert_called_with('SoftLayer_Location', 'getDatacenters')
self.network.get_datacenter(datacenter="dal11")
expected_filter = {"name": {"operation": "dal11"}}
self.assert_called_with('SoftLayer_Location', 'getDatacenters', filter=expected_filter)
def test_get_datacenter_by_keyname(self):
# normal operation
result = self.network.get_datacenter_by_keyname("TEST01")
expected_filter = {"regions": {"keyname": {"operation": "TEST01"}}}
self.assert_called_with('SoftLayer_Location', 'getDatacenters', filter=expected_filter)
self.assertEqual(result.get('name'), 'dal13')
# an "empty" result
SoftLayer_Location = self.set_mock('SoftLayer_Location', 'getDatacenters')
SoftLayer_Location.return_value = []
result = self.network.get_datacenter_by_keyname("TEST01")
self.assertEqual(result, {})
def test_clear_route(self):
result = self.network.clear_route(1234)
self.assertEqual(result, True)
self.assert_called_with('SoftLayer_Network_Subnet', 'clearRoute')
|