#!/usr/bin/python

from config import INTERFACES
from built_in_classes import RootHTBClass
from .upload import Interactive, TCPACK, SSH, HTTP, Default


def apply_qos():
    public_if = INTERFACES["public_if"]
    root_class = RootHTBClass(
        interface=public_if["name"],
        rate=public_if["speed"],
        burst=public_if["speed"]/8,
        qdisc_prefix_id="1:",
        default=1500
    )
    # root_class.add_child(Interactive())
    # root_class.add_child(TCPACK())
    # root_class.add_child(SSH())
    # root_class.add_child(HTTP())
    root_class.add_child(Default())

    root_class.apply_qos()

#!/usr/bin/python

from config import INTERFACES
from built_in_classes import RootHTBClass
from .upload import Interactive, TCPACK, SSH, HTTP, Default


def apply_qos():
    public_if = INTERFACES["public_if"]
    root_class = RootHTBClass(
        interface=public_if["name"],
        rate=public_if["speed"],
        burst=public_if["speed"]/8,
        qdisc_prefix_id="1:",
        default=1500
    )
    root_class.add_child(Interactive())
    root_class.add_child(TCPACK())
    root_class.add_child(SSH())
    root_class.add_child(HTTP())
    root_class.add_child(Default())

    root_class.apply_qos()

Enable all rules in pythonic_rules
Enable all rules in pythonic_rules

Has been disabled to avoid errors until the new design was nos finished.
