Apply feedback from @grossmj

pull/1104/head
Julien Duponchelle 7 years ago
parent 08423eff96
commit 4097bab565
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -602,11 +602,11 @@ class BaseNode:
"""
yield from self._ubridge_send('bridge reset_packet_filters ' + bridge_name)
i = 0
for (type, values) in filters.items():
for (filter_type, values) in filters.items():
cmd = "bridge add_packet_filter {bridge_name} {filter_name} {filter_type} {filter_value}".format(
bridge_name=bridge_name,
filter_name="filter" + str(i),
filter_type=type,
filter_type=filter_type,
filter_value=" ".join([str(v) for v in values]))
yield from self._ubridge_send(cmd)
i += 1

@ -381,7 +381,7 @@ class VPCSVM(BaseNode):
if self.ubridge:
yield from self._add_ubridge_udp_connection("VPCS-{}".format(self._id), self._local_udp_tunnel[1], nio)
elif self.is_running():
raise VPCSError("Sorry, adding a link to a started VPCS instance is not supported without using uBridge.")
raise VPCSError("Sorry, updating a link to a started VPCS instance is not supported without using uBridge.")
self._ethernet_adapter.add_nio(port_number, nio)
log.info('VPCS "{name}" [{id}]: {nio} added to port {port_number}'.format(name=self._name,

@ -75,7 +75,7 @@ FILTERS = [
{
"type": "corrupt",
"name": "Corrupt",
"description": "The percentage represents the chance for a packet to be corrupt",
"description": "The percentage represents the chance for a packet to be corrupted",
"parameters": [
{
"name": "Frequency",

Loading…
Cancel
Save