Comment 6 for bug 1724729

Revision history for this message
Rong.Wang (stormflying) wrote :

@ Slawek Kaplonski
I also have another question about the name of "_set_egress_bw_limit_for_port",
while the method is for "ingress_policing", why its name is "egress"?
thanks a lot.

    def _set_egress_bw_limit_for_port(self, port_name, max_kbps,
                                      max_burst_kbps):
        with self.ovsdb.transaction(check_error=True) as txn:
            txn.add(self.ovsdb.db_set('Interface', port_name,
                                      ('ingress_policing_rate', max_kbps)))
            txn.add(self.ovsdb.db_set('Interface', port_name,
                                      ('ingress_policing_burst',
                                       max_burst_kbps)))