-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protect config_db.json from minigraph misconfig #1727
Changes from all commits
b9f2080
696e791
b5e43d6
f3c97e0
6518266
097f1e9
1f293e2
6db9a0a
987bc92
9021233
d604685
c9f22b3
955e4be
1e79656
f545f41
6c3026a
8caa011
37f1f81
472c499
8efa34d
c3c46ba
75a35fa
293ac1a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,11 @@ | |
<AttachTo>fortyGigE0/4</AttachTo> | ||
<SubInterface/> | ||
</PortChannel> | ||
<PortChannel> | ||
<Name>PortChannel1001</Name> | ||
<AttachTo>fortyGigE0/1;fortyGigE0/2</AttachTo> | ||
<SubInterface/> | ||
</PortChannel> | ||
</PortChannelInterfaces> | ||
<VlanInterfaces> | ||
<VlanInterface> | ||
|
@@ -147,6 +152,16 @@ | |
<AttachTo>PortChannel01</AttachTo> | ||
<Prefix>FC00::71/126</Prefix> | ||
</IPInterface> | ||
<IPInterface> | ||
<Name i:nil="true"/> | ||
<AttachTo>PortChannel1001</AttachTo> | ||
<Prefix>10.0.0.57/31</Prefix> | ||
</IPInterface> | ||
<IPInterface> | ||
<Name i:Name="true"/> | ||
<AttachTo>PortChannel1001</AttachTo> | ||
<Prefix>FC00::72/126</Prefix> | ||
</IPInterface> | ||
<IPInterface> | ||
<Name i:nil="true"/> | ||
<AttachTo>fortyGigE0/0</AttachTo> | ||
|
@@ -193,6 +208,28 @@ | |
<StartPort>fortyGigE0/8</StartPort> | ||
<Validate>true</Validate> | ||
</DeviceLinkBase> | ||
<DeviceLinkBase i:type="DeviceInterfaceLink"> | ||
<ElementType>DeviceInterfaceLink</ElementType> | ||
<AutoNegotiation>true</AutoNegotiation> | ||
<Bandwidth>10000</Bandwidth> | ||
<EndDevice>switch-t0</EndDevice> | ||
<EndPort>fortyGigE0/1</EndPort> | ||
<FlowControl>true</FlowControl> | ||
<StartDevice>ARISTA05T1</StartDevice> | ||
<StartPort>Ethernet1/32</StartPort> | ||
<Validate>true</Validate> | ||
</DeviceLinkBase> | ||
<DeviceLinkBase i:type="DeviceInterfaceLink"> | ||
<ElementType>DeviceInterfaceLink</ElementType> | ||
<AutoNegotiation>true</AutoNegotiation> | ||
<Bandwidth>10000</Bandwidth> | ||
<EndDevice>switch-t0</EndDevice> | ||
<EndPort>fortyGigE0/2</EndPort> | ||
<FlowControl>true</FlowControl> | ||
<StartDevice>ARISTA06T1</StartDevice> | ||
<StartPort>Ethernet1/33</StartPort> | ||
<Validate>true</Validate> | ||
</DeviceLinkBase> | ||
</DeviceInterfaceLinks> | ||
<Devices> | ||
<Device i:type="ToRRouter"> | ||
|
@@ -240,7 +277,20 @@ | |
<EnableAutoNegotiation>true</EnableAutoNegotiation> | ||
<EnableFlowControl>true</EnableFlowControl> | ||
<Index>1</Index> | ||
<InterfaceName>fortyGigE0/1</InterfaceName> | ||
<InterfaceName>Ethernet1</InterfaceName> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be fortyGigE0/1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we use fortyGigE0/1 and fortyGigE0/2, even without your patch, it does not introduce extra port into PORT but only change the order listed in PORT. Because of this bad test case in the first place, it does not catch the extra port that can be introduced in later commit 0e7a7dfa. I will confirm with other places. But here we should use Ethernet1 and Ethernet2. |
||
<InterfaceType i:nil="true"/> | ||
<MultiPortsInterface>false</MultiPortsInterface> | ||
<PortName>0</PortName> | ||
<Priority>0</Priority> | ||
<Speed>10000</Speed> | ||
</a:EthernetInterface> | ||
<a:EthernetInterface> | ||
<ElementType>DeviceInterface</ElementType> | ||
<AlternateSpeeds i:nil="true"/> | ||
<EnableAutoNegotiation>true</EnableAutoNegotiation> | ||
<EnableFlowControl>true</EnableFlowControl> | ||
<Index>1</Index> | ||
<InterfaceName>Ethernet2</InterfaceName> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. -> fortyGigE0/2 |
||
<InterfaceType i:nil="true"/> | ||
<MultiPortsInterface>false</MultiPortsInterface> | ||
<PortName>0</PortName> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we treat this as a minigraph generator's bug instead of parser's bug? #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we can mitigate that in minigraph, it should be ideal #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed with Guohan, this is the good.
In reply to: 189410214 [](ancestors = 189410214)