GetDomainShaperMerged - Получить суммарный список ограничений для указанного домена и SSID, привязанных к нему

Общая информация

  1. Команда служит для получения суммарного списка ограничений по трафику на ТД в домене и SSID, привязанных к нему

  2. Команда актуальна, начиная с версии 1.7

  3. В версии 1.11 у SSID появился признак Traffic mode (tunnel, local). BRAS должен получать от PCRF только tunnel SSID, потому при выполнении GetDomainShaperMerged local SSID исключаются.

Входные параметры

Параметр Значение Формат значения Расшифровка формата Ссылка

apDomain

Домен

(?=^.{1,235}$)(^((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]{1,63}\.)*((?!-|_|.*(__|--).*)[a-zA-Z0-9_\-]{1,63})$)

Текст длиной до 235 символов, удовлетворяющий правилам FQDN

Domain

Выходные параметры

Параметр Значение Формат значения

code

Код ответа

Целое неотрицательное число

detail

Пояснение к ответу

Текст английскими буквами с пробелами и спецсимволами

profile

Профиль - все ограничения на ТД внутри домена и SSID, привязанные к домену

Объект NbiDomainShaperProfileMerged

Примеры команд и кодов

Код Описание ошибки

0

Успешно (ограничения только на ТД в домене)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>box.mike.root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>0</ax21:code>
                <ax21:detail/>
                <ax222:profile xsi:type="ax222:NbiDomainShaperProfileMerged">
                    <ax222:averageDown>10</ax222:averageDown>
                    <ax222:averageUp>10</ax222:averageUp>
                    <ax222:domain>box.mike.root</ax222:domain>
                    <ax222:peakDown>30</ax222:peakDown>
                    <ax222:peakUp>20</ax222:peakUp>
                </ax222:profile>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

0

Успешно (ограничения на ТД в домене и на SSID, привязанные к домену)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>unbox.mike.root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>0</ax21:code>
                <ax21:detail/>
                <ax222:profile xsi:type="ax222:NbiDomainShaperProfileMerged">
                    <ax222:averageDown>100</ax222:averageDown>
                    <ax222:averageUp>200</ax222:averageUp>
                    <ax222:domain>unbox.mike.root</ax222:domain>
                    <ax222:peakDown>8800</ax222:peakDown>
                    <ax222:peakUp>9900</ax222:peakUp>
                    <ax222:ssid xsi:type="ax222:NbiSsidShaperProfileMerged">
                        <ax222:averageDown>335</ax222:averageDown>
                        <ax222:averageUp>115</ax222:averageUp>
                        <ax222:bridgeLocation>esr1</ax222:bridgeLocation>
                        <ax222:switchCommunity>false</ax222:switchCommunity>
                        <ax222:domain>unbox.mike.root</ax222:domain>
                        <ax222:name>SSIDUNBOX</ax222:name>
                        <ax222:peakDown>4555</ax222:peakDown>
                        <ax222:peakUp>225</ax222:peakUp>
                        <ax222:vlanPriority>3</ax222:vlanid>
                        <ax222:vlanid>1</ax222:vlanid>
                    </ax222:ssid>
                    <ax222:ssid xsi:type="ax222:NbiSsidShaperProfileMerged">
                        <ax222:averageDown>0</ax222:averageDown>
                        <ax222:averageUp>0</ax222:averageUp>
                        <ax222:bridgeLocation>esr2</ax222:bridgeLocation>
                        <ax222:switchCommunity>true</ax222:switchCommunity>
                        <ax222:domain>unbox.mike.root</ax222:domain>
                        <ax222:name>SSIDUNBOX2</ax222:name>
                        <ax222:peakDown>0</ax222:peakDown>
                        <ax222:peakUp>0</ax222:peakUp>
                        <ax222:vlanPriority>3</ax222:vlanid>
                        <ax222:vlanid>2</ax222:vlanid>
                    </ax222:ssid>
                </ax222:profile>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

0

Успешно (ограничения только на SSID)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>empty.mike.root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>0</ax21:code>
                <ax21:detail/>
                <ax29:profile xsi:type="ax29:NbiDomainShaperProfileMerged">
                    <ax29:averageDown>0</ax29:averageDown>
                    <ax29:averageUp>0</ax29:averageUp>
                    <ax29:domain>empty.mike.root</ax29:domain>
                    <ax29:peakDown>0</ax29:peakDown>
                    <ax29:peakUp>0</ax29:peakUp>
                    <ax29:ssid xsi:type="ax29:NbiSsidShaperProfileMerged">
                        <ax29:averageDown>60</ax29:averageDown>
                        <ax29:averageUp>30</ax29:averageUp>
                        <ax29:bridgeLocation>esr</ax29:bridgeLocation>
                        <ax29:domain>root</ax29:domain>
                        <ax29:name>SSID77</ax29:name>
                        <ax29:peakDown>120</ax29:peakDown>
                        <ax29:peakUp>60</ax29:peakUp>
                        <ax29:vlanPriority>3</ax29:vlanid>
                        <ax29:vlanid>1</ax29:vlanid>
                    </ax29:ssid>
                </ax29:profile>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

282

Не заданы ограничения для домена

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>282</ax21:code>
                <ax21:detail>Shaper profile doesn't exist for 'root'</ax21:detail>
                <ax222:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

62

Домен не существует

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>de.root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>62</ax21:code>
                <ax21:detail>Such domain 'de.root' is not registered in ELTEX_EMS.DOMAINS</ax21:detail>
                <ax222:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

281

Не найден обязательный параметр запроса (домен)

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain></nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>281</ax21:code>
                <ax21:detail>Request parameter 'apDomain' has not specified or empty</ax21:detail>
                <ax222:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

280

В файле конфигурации /etc/eltex-radius-nbi/radius_nbi_config.txt отключена MongoDB

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>280</ax21:code>
                <ax21:detail>MongoDB disabled at configuration. Check out 'radius_nbi_config.txt', please.</ax21:detail>
                <ax222:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

Код Описание ошибки

999

Нет доступа до MongoDB Идет под индексом системной ошибки. Отдельного кода не имеет.

Запрос
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:nbi="http://nbi.radius.eltex.org">
    <soapenv:Header/>
    <soapenv:Body>
        <nbi:GetDomainShaperMerged>
            <nbi:apDomain>root</nbi:apDomain>
        </nbi:GetDomainShaperMerged>
    </soapenv:Body>
</soapenv:Envelope>
Ответ
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <ns:GetDomainShaperMergedResponse
            xmlns:ns="http://nbi.radius.eltex.org">
            <ns:return>
                <ax21:code>999</ax21:code>
                <ax21:detail>Timed out after 10000 ms while waiting to connect. Client view of cluster state is {type=Unknown, servers=[{address=192.168.26.233:27017, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.NoRouteToHostException: No route to host}}]</ax21:detail>
                <ax222:profile xsi:nil="true"/>
            </ns:return>
        </ns:GetDomainShaperMergedResponse>
    </soapenv:Body>
</soapenv:Envelope>

См. также

Вернуться к списку команд
Версия 1.26-3053
Дата публикации 31-03-2023 06:03:06